Models can be distributed with Java, usually packaged as jar files.
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.
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.
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.
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号