Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
06. Sep 2008, 20:28 CET | Link

I have a pagedefinition file which has 4 nodes, a START - NODE type - TASK NODE - END NODE.

The Node type transitions to the TASK node. I can see that the flow works fine because a taskInstance row is inserted into the JBPMTASKINSTANCE table. However when i specify an action expression on the NODE type node, The acion expresssion executes but the TASK NODE does not begin executing anymore. I don't see a row on the JBPMTASKINSTANCE getting inserted.

any ideas?

3 Replies:
07. Sep 2008, 02:36 CET | Link

please show your processdefinition

 

Regards,

Ronald

A kind jBPM user and forum addict

07. Sep 2008, 02:38 CET | Link

most likely reason is that when there is no action, the default behaviour of a node is to take the default transition. If you specify an action as the node behaviour (so not on an event) you are the one to make sure a transition is taken

 

Regards,

Ronald

A kind jBPM user and forum addict

07. Sep 2008, 04:02 CET | Link

I tried specifying a transition but still doesn't work: Here are my snippets.


....
....
	<node name="MyNode">
		<action expression="#{mysessionBean.testAction}"></action>
		<transition to="ApproveQuote1" name="quote1"></transition>
	</node>

	<task-node name="ApproveQuote1"  end-tasks="true">
		<task name="ApproveQuote1" description="Approve Quote1">
			<assignment actor-id="bugs"/>
			<controller></controller>
		</task>
		<transition to="Update StatusD" name="deny"></transition>
		<transition to="UpdateStatusA" name="approve"></transition>
	</task-node>
....
....

	@Transition("quote1")
	public String  testAction(){
		log.info("Doing Something on the DB");
		
		return "quote1";
		
		
	}
// Tried this also but doesnt work
/*
	@Transition("quote1")
	public void  testAction(){
		log.info("Doing Something on the DB");
	}
*/