You are here

Deploying the task model

You deploy your workflow task model using the Spring "Workflow Deployer" bean. The bean may be used in conjunction with Alfresco's configuration extension mechanism to deploy custom made workflows and models.

In the following example configuration we are deploying a process definition adHocModel.bpmn2.0.xml) and a workflow content model adHocModel.bpmn2.0.xml. In both properties, the “location” is the classpath location of the XML file.

   <bean id="myworkflows.workflowBootstrap" parent="workflowDeployer">
   <property name="models">
         <-- Task Model associated with above process definition -->
   <property name="workflowDefinitions">
         <prop key="engineId">activiti</prop>     
         <prop key="location">alfresco/extension/adHocModel.bpmn2.0.xml</prop>     
         <prop key="mimetype">text/xml</prop>     
         <prop key="redeploy">false</prop>