我使用以下工作流程我得到以下异常:
org.activiti.engine.ActivitiException:此活动不接受信号
我在以下工作流程中哪里出错了。
实际上,在我的工作流程中,任务转到一个组,该组及时完成任务,然后转到下一组,如果没有邮件,则发送给未及时完成任务的组的经理。
<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">
<process id="mailFlow" name="My process" isExecutable="true">
<startEvent id="startevent1" name="Start"></startEvent>
<scriptTask id="scripttask1" name="Script Task" scriptFormat="groovy" activiti:autoStoreVariables="true">
<script>out:println "This Category Name:"+incidentcategory;</script>
</scriptTask>
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="scripttask1">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${incidentcategory=='BAT'}]]></conditionExpression>
</sequenceFlow>
<userTask id="usertask1" name="User Task A" activiti:candidateGroups="Group A"></userTask>
<sequenceFlow id="flow2" sourceRef="scripttask1" targetRef="usertask1"></sequenceFlow>
<boundaryEvent id="boundarytimer1" name="Timer" attachedToRef="usertask1" cancelActivity="true">
<timerEventDefinition>
<timeDuration>PT40S</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<serviceTask id="mailtask1" name="Mail Task A" activiti:type="mail">
<extensionElements>
<activiti:field name="to">
<activiti:string>xxxx@gmail.com</activiti:string>
</activiti:field>
<activiti:field name="html">
<activiti:string><html>
<body>
Hello ,<br/><br/>
This from Mail Task A<br/><br/>
Your problem was solved.<br/><br/>
Kind regards,<br/>
Airtel ltd.
</body>
</html></activiti:string>
</activiti:field>
<activiti:field name="subject">
<activiti:string>Task Pending from Group A</activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow3" sourceRef="usertask1" targetRef="mailtask1"></sequenceFlow>
<userTask id="usertask2" name="User Task B" activiti:candidateGroups="Group B"></userTask>
<boundaryEvent id="boundarytimer2" name="Timer" attachedToRef="usertask2" cancelActivity="true">
<timerEventDefinition>
<timeDuration>PT20S</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<serviceTask id="mailtask2" name="Mail Task B" activiti:type="mail">
<extensionElements>
<activiti:field name="to">
<activiti:string>xxxx@gmail.com</activiti:string>
</activiti:field>
<activiti:field name="html">
<activiti:string><html>
<body>
Hello ,<br/><br/>
This from Mail Task B<br/><br/>
Your problem was solved.<br/><br/>
Kind regards,<br/>
Airtel ltd.
</body>
</html></activiti:string>
</activiti:field>
<activiti:field name="subject">
<activiti:string>Task Pending from Group B</activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow5" sourceRef="boundarytimer2" targetRef="mailtask2"></sequenceFlow>
<userTask id="usertask3" name="User Task C" activiti:candidateGroups="Group C"></userTask>
<serviceTask id="mailtask3" name="Mail Task C" activiti:type="mail">
<extensionElements>
<activiti:field name="to">
<activiti:string>xxxx@gmail.com</activiti:string>
</activiti:field>
<activiti:field name="html">
<activiti:string><html>
<body>
Hello ,<br/><br/>
This from Mail Task C<br/><br/>
Your problem was solved.<br/><br/>
Kind regards,<br/>
Airtel ltd.
</body>
</html></activiti:string>
</activiti:field>
<activiti:field name="subject">
<activiti:string>Task Completed from Group C</activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow7" sourceRef="usertask3" targetRef="mailtask3"></sequenceFlow>
<endEvent id="endevent1" name="End"></endEvent>
<sequenceFlow id="flow10" sourceRef="mailtask3" targetRef="endevent1"></sequenceFlow>
<sequenceFlow id="flow11" sourceRef="usertask1" targetRef="usertask2"></sequenceFlow>
<sequenceFlow id="flow12" sourceRef="usertask2" targetRef="usertask3"></sequenceFlow>
</process>