When setting XWorker as the global engine of the system , the model can be executed directly as an application. Here are mainly some models directly used as examples and demonstrations of applications.
Among them, the model application is set in the Model Library. See the settings of the application template in the model library.
2.dml command
The dml command will be used when applying models to wounds. The following are some common uses of the dml command.
Run the model
dml <modelPath> <method> <... params>, where method and params are optional.
Create Project
dml --project, creates a file named .dml in the current directory to mark the current directory as a model project.
Create WEB applications
dml --web, creates a WEB-INF/web.xml file in the current directory. The current directory can be used as a WEB application.
Copy WEB resources
dml --js, copy XWorker's webroot/js directory to the current directory.
List application templates
dml --list <filter>, lists the application template list, which can quickly create applications. Where filter is used for filtering, optional.
Create an app
dml --create <app template> <app name> creates an application model through a template. The app name is optional, and the default is the name of the template.
3 Edit model
Some model applications do not have the ability to edit themselves. At this time, you can start XWorker's model manager to edit it. The method to start XWorker's model manager is to run swt.cmd or swt.sh in the model project directory.