[jboss-user] [jBPM] - Best way for implement this process

John Sawyer do-not-reply at jboss.com
Wed May 5 12:32:07 EDT 2010


John Sawyer [http://community.jboss.org/people/mcsawyer] created the discussion

"Best way for implement this process"

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

--------------------------------------------------------------
I need to implement the next process:

At first the process explote to five states,  this 5 states does the same (but are different because represents each one a unit).

- check if exists some file, if not, send and email and go to sleep 1 day, if exists we can leave this state.

When 5 states are completed, we need to send an email to notify and this is all.

==============

I test this... first i'm trying only with one state....

<?xml version="1.0" encoding="UTF-8"?>
<process name="WeekSignature" xmlns=" http://jbpm.org/4.3/jpdl http://jbpm.org/4.3/jpdl">
   <start g="16,60,48,48" name="start1">
      <transition name="to CGC" to="CGC" g="-39,-18"/>
   </start>
   <end g="672,60,48,48" name="end1"/>  
<state g="176,100,92,52" name="CGC">
     <on event="bucle">
      <timer duedate="10 seconds" repeat="30 seconds"/>
          <event-listener  class="main.java.GuardianListener">
              <field name="subunidad"><string value="CGC"/></field>
              <field name="email"><string value="xxx at xxx"/></field>
        </event-listener>
    </on>
      <transition name="to state1" to="state1" g="-49,-18"/>
   </state>

   <state g="380,58,92,52" name="state1">
      <transition g="-72,-18" name="to end1" to="end1"/>
   </state>   
 </process>

=================

And in notify in event-listener i use (for complete the state...)

executionService().signalExecutionById(execution.getId());

====================

I think that this is not the best way for do this.. and when i put fork and join, the signal doesn't work and the process remain blocked.


how can i reorganice this process?

I use jbpm 4.3

thank you

--------------------------------------------------------------

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

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/20100505/c3d6158a/attachment.html 


More information about the jboss-user mailing list