[jboss-user] [jBPM] - Re: MapBasedPersistenceTest issue

Donald Walters do-not-reply at jboss.com
Thu Oct 27 02:22:00 EDT 2011


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111027/ba179092/attachment-0001.html 


More information about the jboss-user mailing list