cancel
Showing results for 
Search instead for 
Did you mean: 

Assign Task by Lane's name

fcaloni
Champ in-the-making
Champ in-the-making
Hi all,
  I'm trying to create a custom Activiti workflow in Alfresco 4.0.d. I designed a workflow with Activiti BPMN 2.0 Eclipse Plugin.

I need to create a workflow with Pool and Lane where I assign a task to a group by Lane's name.

The editor allows me to do it, so I assume it is something correct in the modeling of a process.

When I deploy the  workflow, I receive the following error.

7:00:56,917 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 06030002 Workflow deployment failed
        at org.alfresco.repo.workflow.WorkflowDeployer.init(WorkflowDeployer.java:347)
        at org.alfresco.repo.workflow.WorkflowDeployer$1.doWork(WorkflowDeployer.java:465)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
        at org.alfresco.repo.workflow.WorkflowDeployer.onBootstrap(WorkflowDeployer.java:461)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)

Caused by: org.alfresco.service.cmr.workflow.WorkflowException: 06030001 Failed to deploy workflow definition.
        at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.deployDefinition(ActivitiWorkflowEngine.java:323)
        at org.alfresco.repo.workflow.WorkflowServiceImpl.deployDefinition(WorkflowServiceImpl.java:206)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

Caused by: org.activiti.engine.ActivitiException: Invalid reference in 'bpmnElement' attribute, activity linenot found | e14ae2bc-f65f-447b-84       2f-3fb909312cacbpmn20.xml | line 27 | column 84
Invalid reference in 'bpmnElement' attribute, activity bossnot found | e14ae2bc-f65f-447b-842f-3fb909312cacbpmn20.xml | line 30 | column 84
Invalid reference in 'bpmnElement' attribute, activity managernot found | e14ae2bc-f65f-447b-842f-3fb909312cacbpmn20.xml | line 33 | column 90

        at org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:198)

It this an error of the modeler, which should not allow me to do such an assignment, or is it a problem with the workflow engine?

Can you help me? What am I doing wrong? 

Find at the end of the message the workflow definition giving the described error.

Thank for your time.


<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <collaboration id="Collaboration">
    <participant id="line" name="line" processRef="process_pool1"></participant>
  </collaboration>
  <process id="process_pool1" name="process_pool1">
    <laneSet id="laneSet_process_pool1">
      <lane id="boss" name="boss">
        <flowNodeRef>startevent1</flowNodeRef>
        <flowNodeRef>usertask1</flowNodeRef>
      </lane>
      <lane id="manager" name="Manager">
        <flowNodeRef>usertask2</flowNodeRef>
        <flowNodeRef>endevent1</flowNodeRef>
      </lane>
    </laneSet>
    <startEvent id="startevent1" name="Start"></startEvent>
    <userTask id="usertask1" name="User Task"></userTask>
    <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="usertask1"></sequenceFlow>
    <sequenceFlow id="flow2" name="" sourceRef="usertask1" targetRef="usertask2"></sequenceFlow>
    <userTask id="usertask2" name="User Task"></userTask>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow3" name="" sourceRef="usertask2" targetRef="endevent1"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_process_pool1">
    <bpmndi:BPMNPlane bpmnElement="process_pool1" id="BPMNPlane_process_pool1">
      <bpmndi:BPMNShape bpmnElement="line" id="BPMNShape_line" isHorizontal="true">
        <omgdc:Bounds height="300" width="500" x="130" y="120"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="boss" id="BPMNShape_boss" isHorizontal="true">
        <omgdc:Bounds height="150" width="480" x="150" y="120"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="manager" id="BPMNShape_manager" isHorizontal="true">
        <omgdc:Bounds height="150" width="480" x="150" y="270"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35" width="35" x="250" y="190"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
        <omgdc:Bounds height="55" width="105" x="330" y="180"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2">
        <omgdc:Bounds height="55" width="105" x="330" y="330"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35" width="35" x="490" y="340"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="285" y="207"></omgdi:waypoint>
        <omgdi:waypoint x="330" y="207"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="382" y="235"></omgdi:waypoint>
        <omgdi:waypoint x="382" y="330"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="435" y="357"></omgdi:waypoint>
        <omgdi:waypoint x="490" y="357"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

swimlanes for assignment are not supported in Activiti AFAIK. In the Activiti modeler, I think this is only a UI / layout utility. Please refer to the BPM-4 session slides from last years DevCon, slide #21.

Regards
Axel

fcaloni
Champ in-the-making
Champ in-the-making
Thanks very much Axel

Regards
Fabry