Model Library

1. Package model library

1.1.Jar file

    The model can be released together with Java, usually packaged into a jar file.

1.2.dml 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.

    Such as:

name=xworker_core
workingSet=systemLib

    The workingSet attribute is optional, and it is used in the model editor to put the model library under the 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 is initialized (XWorkerUtils.setup()).

1.4.xworker_init.conf

    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()).

2. Import model library

     The model library is also an ordinary Java library, which can be directly used after being imported into the project.

3.XWorker model library

3.1. Source code

    The source code of XWorker was published on Gitee,  https://gitee.com /xworker/.

3.2. Maven

    The official version of the XWorker model library can be viewed on the Maven warehouse, see https://mvnrepository.com/ search?q=xworker.

3.3.SNAPSHOT

    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>

4. Model library dependency tools

    You can open XWorker's Online Model Library Dependency Tool, which may not be updated in time ,for reference only.

 

 

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