06-30-2011 01:49 AM
<?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="[email protected]"></activiti:field>
<activiti:field name="from" expression="[email protected]"></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>
06-30-2011 04:39 AM
06-30-2011 12:07 PM
07-04-2011 03:45 AM
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.
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?08-09-2011 03:07 AM
08-10-2011 08:51 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.