[jboss-user] [JBoss jBPM] - process behavior

ricardomarques do-not-reply at jboss.com
Mon Jun 4 13:02:32 EDT 2007


Hi 

I have this process definition:


  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process-definition
  |   xmlns="urn:jbpm.org:jpdl-3.1"  name="holiday-request">
  |    <swimlane name="initiator">
  |       <assignment expression="user(grover)"></assignment>
  |    </swimlane>
  |    <start-state name="enter request">
  |       <task name="request entry" swimlane="initiator">
  |          <controller>
  |             <variable name="start date" access="read,write,required"></variable>
  |             <variable name="duration" access="read,write,required"></variable>
  |          </controller>
  |       </task>
  |       <transition name="" to="evaluate request"></transition>
  |    </start-state>
  |    <end-state name="end"></end-state>
  |    <task-node name="evaluate request">
  |       <task name="entry evaluation" swimlane="initiator">
  |          <controller>
  |             <variable name="start date" access="read"></variable>
  |             <variable name="duration" access="read"></variable>
  |             <variable name="info" access="read"></variable>
  |             <variable name="decision"></variable>
  |          </controller>
  |       </task>
  |       <transition name="More info needed" to="give addition info"></transition>
  |       <transition name="approve/disapprove" to="end"></transition>
  |    </task-node>
  |    <task-node name="give addition info">
  |       <task name="additional info entry" swimlane="initiator">
  |          <controller>
  |             <variable name="start date" access="read"></variable>
  |             <variable name="duration" access="read"></variable>
  |             <variable name="info"></variable>
  |          </controller>
  |       </task>
  |       <transition name="" to="evaluate request"></transition>
  |    </task-node>
  | </process-definition>
  | 
  | And... when I start a work on a instance and retrive the variables and transitions, I get 4 vars: start date, duration,info and decision. And on the transitions I get 2 transitions "More info needed" and "approve/disapprove".
  | 
  | I guess that it should give me this results, because i'm not on the node "evaluate request" (i guess).
  | 
  | Is the behavior ok? I'm doing somethig wrong?
  | 
  | Thanks in advance.
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051035#4051035

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051035



More information about the jboss-user mailing list