Hello,
I use ACS 6.2-GA :
using Workflow Admin Console i tried to deploy a sample bpmn2.0 workflow file :
<?xml version="1.0" encoding="UTF-8"?> <definitions id="definitions" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" targetNamespace="Examples" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd"> <process id="osgiProcess" name="Osgi process"> <startEvent id="start" /> <sequenceFlow sourceRef="start" targetRef="serviceTask"/> <serviceTask id="serviceTask" activiti:delegateExpression="${testBean}" /> <sequenceFlow sourceRef="serviceTask" targetRef="serviceTask2"/> <serviceTask id="serviceTask2" activiti:delegateExpression="${activityBehaviourBean}" /> <sequenceFlow sourceRef="serviceTask2" targetRef="end"/> <endEvent id="end"/> </process> </definitions>
error is :
org.alfresco.service.cmr.workflow.WorkflowException: 11240036 Workflow Component for engine id 'activity' is not registered
Thank you for your help
You have to register the workflow using 'workflowDeployer' bean with 'workflowDefinitions' property.
example, registering 'helloWorld.bpmn':
<bean id="${project.artifactId}.customWorkflowBootstrap" parent="workflowDeployer"> <property name="workflowDefinitions"> <list> <props> <prop key="engineId">activiti</prop> <prop key="location">alfresco/module/${project.artifactId}/workflow/helloWorld.bpmn</prop> <prop key="mimetype">text/xml</prop> <prop key="redeploy">false</prop> </props> </list> </property> </bean>
Refer this doc : https://docs.alfresco.com/6.1/topics/wf-deploy-taskmodel.html
Also consider going through this tutorial: http://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.