Hello World

 1. Edit and run the model

    Dynamic models are programmed using models, which can be expressed using XML and JSON. In XWorker, the model manager is generally used to edit the model.

    The 50-second video below demonstrates opening the XWorker model manager, creating, editing, and running a model.

2. Use models in code

    Models can be used in code, as shown below.

import org.xmeta.Thing;
import org.xmeta.ActionContext;
import org.xmeta.World;

//Engine instance
World world = World.getInstance();

//Get the HelloWorld model
Thing helloWorld = world.getThing("HelloWorld");

//Run the model
helloWorld.doAction("run", new ActionContext());


Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号