cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic workflow deployment

vincent_roye
Champ in-the-making
Champ in-the-making
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 ?
<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


1 REPLY 1

anshu_kumar
Star Contributor
Star Contributor
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.