AnsweredAssumed Answered

transition arguments?

Question asked by bedag-moo on Jan 17, 2008
Latest reply on Jan 18, 2008 by bedag-moo
Hi,

In a task-node with two outgoing transitions, I'd like to prompt the user for different data depending on which transition she selects (specifics below).

I'm curious how others approach this; the best approach I see is to define the properties for both transitions in the task model, map them in the web-client-ui, and have users ignore the properties for the transition they don't intend to use. Is there a better way?

Regards
moo



Specifics

In the process definition (excerpt)
   <task-node name="edit">
      <task name="bwf:edit" swimlane="editor"/>
      <transition name="Send for review" to="manager_review"/>
   </task-node>
   
   <task-node name="manager_review">
      <task name="bwf:manager_review" swimlane="manager"/>
      <transition name="Reject" to="edit"/>
      <transition name="Send for review" to="fork_review"/>
   </task-node>
   
   <node name="fork_review">
      <action class="org.alfresco.repo.workflow.jbpm.ForEachFork">
         <foreach>#{people.getMembers(bpm_groupAssignee)}</foreach>
         <var>reviewer</var>
      </action>
      <transition name="review" to="review"/>
   </node>

I want to prompt the manager for the reviewers only if he wants to have it reviewed.

Outcomes