Sharing model

1.Sharing model

    From a single model to a functional framework composed of multiple models, from API models to application models, to documents, templates and auxiliary tools, etc., can be shared.

2.Method of Sharing Models

2.1.Sharing model through Jar

    The model can be packaged into Jar with Java classes and shared by copying Jar into the Lib directory of XWorker.

    If you want to browse the model in the event manager, create a dml. properties file in Jar's root directory with the content name=<project name>, such as the project name of the model xworker_test.

name=xworker_test

    The dml.properties file is used to identify the Jar as a project.

2.2.Sharing model through folders

    The model shared through Jar can not be modified, if you can modify the model shared, then you can consider sharing through folders. The method is to copy the folder containing the model to the project directory of XWorker. Note that you need to create the dml. properties file under the folder.

    For example, to share a folder xworker_test as a model project, the directory structure is as follows.

<xworker>/projects/xworker_test/
<xworker>/projects/xworker_test/dml.properties

2.3.Sharing through web pages

    The model can be expressed in XML, and the XML model on the web page can be copied and pasted in the model editor.

    For example, the following video demonstrates copying and pasting a model from a web page.

 

 

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