JBoss.orgCommunity Documentation
This plugin is used to import the predefined processes into the system.
To use the plugin in the component configuration, you must use the following target-component:
<target-component>org.exoplatform.services.workflow.WorkflowServiceContainer</target-component>
The configuration is applied mainly in packaging/workflow/webapp/src/main/webapp/WEB-INF/workflow-extension/workflow/bonita-configuration.xml.
Sample configuration:
<external-component-plugins>
<target-component>org.exoplatform.services.workflow.WorkflowServiceContainer</target-component>
<component-plugin>
<name>deploy.predefined.processes</name>
<set-method>addPlugin</set-method>
<type>org.exoplatform.services.workflow.PredefinedProcessesPlugin</type>
<init-params>
<object-param>
<name>predefined.processes</name>
<description>load of default business processes</description>
<object type="org.exoplatform.services.workflow.ProcessesConfig">
<field name="processLocation">
<string>war:/conf/bp</string>
</field>
<field name="predefinedProcess">
<collection type="java.util.HashSet">
<value>
<string>/exo-ecms-ext-workflow-bp-bonita-content-2.3.8-SNAPSHOT.jar</string>
</value>
<value>
<string>/exo-ecms-ext-workflow-bp-bonita-payraise-2.3.8-SNAPSHOT.jar</string>
</value>
<value>
<string>/exo-ecms-ext-workflow-bp-bonita-holiday-2.3.8-SNAPSHOT.jar</string>
</value>
</collection>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>
In which:
name: deploy.predefined.processes
set-method: addPlugin
type: org.exoplatform.services.workflow.PredefinedProcessesPlugin
Object type: org.exoplatform.services.workflow.ProcessesConfig
Field | Type | Value | Description |
---|---|---|---|
processLocation | string | war:/conf/bp | The path to the process. |
predefinedProcess | HashSet | java.util.HashSet | The list of the processes. |