Dynamic workflow deployment
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2014 11:39 AM
I have a few doubts about how use the dynamic custom workflow. I have created a workflow and I dropped it in the Custom workflow folder (notesFlow.bpmn20.xml).
I have created a custom workflow model and dropped it in the model folder (notesModel.xml). I don't know if it's right.
- Do I have to configure something in the bootstrap-context ? If yes, what should be the location ?
and the notesModel.xml path ?
- Do I have to deploy the workflow in the console or is it automatic ?
I'm a bit confused about how to use these dynamic workflows. Could anyone help me ?
Regards,
Vincent
I have created a custom workflow model and dropped it in the model folder (notesModel.xml). I don't know if it's right.
- Do I have to configure something in the bootstrap-context ? If yes, what should be the location ?
<prop key="location">alfresco/workflow/notesFlow.bpmn20.xml</prop>
?and the notesModel.xml path ?
- Do I have to deploy the workflow in the console or is it automatic ?
I'm a bit confused about how to use these dynamic workflows. Could anyone help me ?
Regards,
Vincent
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2014 05:17 AM
Hello Vincent,
Yes, you do need to configure in the bootstrap-context.xml.
Since you are using Activiti, define a bean(see below) in you context file and configure your workflow definitions, workflow models and labels(if any) in the property list. See below code for reference.
*******************Start************************
<bean id="parallel.workflowBootstrap.cs" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/extension/workflow/processdef/review_pooled.bpmn20.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">false</prop>
</props>
</list>
</property>
<property name="models">
<list>
<value>alfresco/extension/workflow/model/lcs_taskModel.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>alfresco/extension/workflow/messages/lodha_cs_workflow_messages</value>
</list>
</property>
</bean>
*******************End************************
Restart server.
Note: Give your exact path.
Yes, you do need to configure in the bootstrap-context.xml.
Since you are using Activiti, define a bean(see below) in you context file and configure your workflow definitions, workflow models and labels(if any) in the property list. See below code for reference.
*******************Start************************
<bean id="parallel.workflowBootstrap.cs" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/extension/workflow/processdef/review_pooled.bpmn20.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">false</prop>
</props>
</list>
</property>
<property name="models">
<list>
<value>alfresco/extension/workflow/model/lcs_taskModel.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>alfresco/extension/workflow/messages/lodha_cs_workflow_messages</value>
</list>
</property>
</bean>
*******************End************************
Restart server.
Note: Give your exact path.
