As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?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"> <process id="TrainingRequest" name="TrainingRequest"> <documentation>Place documentation for the 'TrainingRequest' process here.</documentation> <startEvent id="startevent1" name="Start"></startEvent> <userTask id="usertask1" name="User Task" activiti:assignee="ROLE_USER"> <multiInstanceLoopCharacteristics isSequential="false"></multiInstanceLoopCharacteristics> </userTask> <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="usertask1"></sequenceFlow> <subProcess id="subprocess1" name="Sub Process"> <multiInstanceLoopCharacteristics isSequential="false"> <loopCardinality>5</loopCardinality> </multiInstanceLoopCharacteristics> <userTask id="subprocess1usertask2" name="User Task" activiti:assignee="ROLE_USER"></userTask> <boundaryEvent id="subprocess1boundarytimer1" name="" cancelActivity="true" attachedToRef="subprocess1usertask2"> <timerEventDefinition> <timeDuration>PT1M</timeDuration> </timerEventDefinition> </boundaryEvent> <serviceTask id="subprocess1mailtask1" name="Mail Task" activiti:type="mail"> <extensionElements> <activiti:field name="to" expression="dave.woodbury@freescale.com"></activiti:field> <activiti:field name="from" expression="dave.woodbury@freescale.com"></activiti:field> <activiti:field name="subject" expression="test"></activiti:field> <activiti:field name="html"> <activiti:expression><![CDATA[test]]></activiti:expression> </activiti:field> </extensionElements> </serviceTask> <sequenceFlow id="subprocess1flow3" name="" sourceRef="subprocess1boundarytimer1" targetRef="subprocess1mailtask1"></sequenceFlow> <endEvent id="subprocess1endevent2" name="End"></endEvent> <sequenceFlow id="subprocess1flow5" name="" sourceRef="subprocess1mailtask1" targetRef="subprocess1endevent2"></sequenceFlow> <sequenceFlow id="subprocess1flow6" name="" sourceRef="subprocess1usertask2" targetRef="subprocess1endevent2"></sequenceFlow> <startEvent id="subprocess1startevent2" name="Start"></startEvent> <sequenceFlow id="subprocess1flow7" name="" sourceRef="subprocess1startevent2" targetRef="subprocess1usertask2"></sequenceFlow> </subProcess> <sequenceFlow id="flow2" name="" sourceRef="usertask1" targetRef="subprocess1"></sequenceFlow> <endEvent id="endevent1" name="End"></endEvent> <sequenceFlow id="flow4" name="" sourceRef="subprocess1" targetRef="endevent1"></sequenceFlow> </process> </definitions>
I've not done that before, but I can try. Can you point me to some instructions or examples? I checked the forums but didn't find a thread for newbies with respect to development.<br>
<br>Also, is it a fair assumption on my part that this is likely an issue with the engine? The sub-process runs autonomously in the engine, creating 5 user-tasks, each with a cancel timer. When the timers expire, the engine throws a concurrency exception.
Is there a way to define the sub-process such that the embedded timer and user tasks are assigned unique ID's?