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.
| Online: | 31 Members of 4187 |
| Forum: Seam Users |
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?
please show your processdefinition
Regards,
Ronald
A kind jBPM user and forum addict
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
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"); } */