Donald Walters [http://community.jboss.org/people/dondragon2] created the 
discussion

"Re: MapBasedPersistenceTest issue"

To view the discussion, visit: http://community.jboss.org/message/633774#633774

--------------------------------------------------------------
Hi Mauricio,

Basically, there is main flow that the user can access, which leads to a 
interruptcatchevent, like below. Once it reaches this point then it will wait 
for the users input from which i would retrieve the sessionid from an external 
cache then trigger the signalevent. I was under the impression that in order to 
signal the event I would have to use some storage to persist the state of the 
workitem, processinstance and session. Take in consideration that the event can 
be signal at some other time (whenever). Also, I see that the time is not fired 
even though no response is received. So, basically, I want to achieve; wait on 
an input or expiry if none receive in a specified time.

<sequenceFlow id="case-wait4_pg" sourceRef="wait4" targetRef="wait4_pg"/>
<parallelGateway id="wait4_pg" name="wait4_pg" gatewayDirection="Diverging"/>
<sequenceFlow id="case-wait4_signal" sourceRef="wait4_pg" 
targetRef="wait4_signal"/>
<sequenceFlow id="case-wait4_timer" sourceRef="wait4_pg" 
targetRef="wait4_timer"/>
<intermediateCatchEvent id="wait4_signal" name="wait4_signal">
<dataOutput id="wait4_event_Output" name="event"/>
<dataOutputAssociation>
<sourceRef>wait4_event_Output</sourceRef>
<targetRef>processItem</targetRef>
</dataOutputAssociation>
<outputSet>
<dataOutputRefs>wait4_event_Output</dataOutputRefs>
</outputSet>
<signalEventDefinition signalRef="wait4_signal_event"/>
</intermediateCatchEvent>
<intermediateCatchEvent id="wait4_timer" name="wait4_timer">
<timerEventDefinition>
<timeDuration>3m</timeDuration>
</timerEventDefinition>
</intermediateCatchEvent>
<sequenceFlow id="case-wait4_cleanup" sourceRef="wait4_timer" 
targetRef="wait4_end"/>
<endEvent id="wait4_end" name="wait4_end">
<terminateEventDefinition/>
</endEvent>
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/633774#633774]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to