[jboss-user] [JBoss jBPM] - Task-create events not executing multiple times

BrettG do-not-reply at jboss.com
Fri Jun 27 16:34:06 EDT 2008


   I'm wondering if anyone has experienced a rather strange problem that I've been trying to figure out for a while now.  I have a task-node in a process:

  | <task-node name="directedBuyApprovalAction">
  |     	<task name="directedBuyApprovalAction" description="#{actionItemLinkHelper.findDirectedBuyApprovalActionDescription()}">
  |    			<assignment pooled-actors="#{pooledActorIdFactory.findDirectedBuyApprovalActionActorIds()}"/>
  |    		</task>
  | 		<event type="task-create">
  | 			<action expression="#{actionItemManager.addActionItemMetaDataDbMaPendingApprovalAction()}"/>
  | 		</event>
  | 		<event type="task-end">
  | 			<action expression="#{actionItemManager.removeActionItemMetaDataDbMaPendingApprovalAction()}"></action>
  | 		</event>
  | 		<transition to="certifyFunds" name="approved"></transition>
  | 		<transition to="requestQuoteDirectedBuy" name="rejected"></transition>
  | 		<transition to="cancelled" name="orderCancelled"></transition>
  | 	</task-node>

When I instantiate the process and get to this node, the task-create event fires, but only the first time that the process is instantiated, subsequent instantiations of the process do not fire off the action on task-create.  Another strange piece of the puzzle is that earlier in the process, there are actions that fire on task-create that are always fired, no matter how many times the process is instantiated in the life of the application.

Has anyone seen this behavior happen before, or does anyone have any insight?



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

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

More information about the jboss-user mailing list