Write model library

1. Package the model library

1.1.Jar file

    Models can be distributed with Java, usually packaged as jar files.

1.2.dml file

    Set a .dml file in the root directory of the jar file, and set the name of the model library in the .dml file.

    eg:

name=xworker_core
workingSet=systemLib

    The workingSet property is optional and is used in the model editor to place the model library under that working group by default.

1.3.xworker_resources.zip

    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 initialization (XWorkerUtils.setup()) is executed.

1.4.xworker_init.conf

    Optional. The file is text, and one line is a path to an action model. If the file exists, the relevant actions will be performed when the XWorker initialization (XWorkerUtils.setup()) is performed.

2. Import the model library

     The model library is also a common Java library, which can be used directly after importing it into the project.

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