The model can be released together with Java, usually packaged into a jar file.
A .dml file is set in the root directory of the jar file, and the name of the model library is set in the .dml file.
The workingSet attribute is optional, and it is used in the model editor to put the model library under the working group by default.
Optional. If this file exists in the root directory of the jar, the zip will be decompressed to the root directory of xworker when XWorker is initialized (XWorkerUtils.setup()).
Optional. The file is text, and one line is the path to an action model. If the file exists, related actions will be performed when XWorker is initialized (XWorkerUtils.setup()).
The model library is also an ordinary Java library, which can be directly used after being imported into the project.
Because the model is generally the encapsulation of the interface of the functional module, which requires rich experience in the use of the corresponding functional module, XWorker hopes that you who have experience can write and improve the model library together.
The source code of XWorker was published on Gitee, https://gitee.com /xworker/.
The official version of the XWorker model library can be viewed on the Maven warehouse, see https://mvnrepository.com/ search?q=xworker.
XWorker's SNAPSHOT version of the model library is published on Sonatype. If you want to use the SNAPSHOT version of the dependency, you can add the following settings to maven.
<repositories> <repository> <id>sonatype</id> <name>sonatype Repository</name> <url>https://oss.sonatype.org/content/groups/public/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> <layout>default</layout> </repository> </repositories>
You can open XWorker's Online Model Library Dependency Tool, which may not be updated in time ,for reference only.