[jboss-user] [JBoss jBPM] - Re: Movo to node
jagr
do-not-reply at jboss.com
Wed Mar 12 06:05:51 EDT 2008
Yes. Query response it's correct.
In exemple, If I execute this ActionHandler
| public class SearchClientAction implements ActionHandler{
|
| /** The log. */
| private Logger log = Logger.getLogger(SearchClientAction.class);
|
| private static final long serialVersionUID = 3364679100134686576L;
|
| public void execute(ExecutionContext context) throws Exception {
|
| [connection with external mysql data base]
|
| if (1==1){
| //go to create offer
| node.leave(context, "tr_create_offer");
| }
| else{
| //go to create client
| node.leave(context, "tr_create_client");
| }
| }
| }
|
Result will be
INFO [STDOUT] ### Running on CreateOfferAction
INFO [STDOUT] ### Running on CreateOfferAction
If I execute this code
| public class SearchClientAction implements ActionHandler{
|
| /** The log. */
| private Logger log = Logger.getLogger(SearchClientAction.class);
|
| private static final long serialVersionUID = 3364679100134686576L;
|
| public void execute(ExecutionContext context) throws Exception {
|
| [connection with external mysql data base]
|
| if (1==2){
| //go to create offer
| node.leave(context, "tr_create_offer");
| }
| else{
| //go to create client
| node.leave(context, "tr_create_client");
| }
| }
| }
|
Result will be
INFO [STDOUT] Running on CreateClientAction...
INFO [STDOUT] ### Running on CreateOfferAction
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135860#4135860
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135860
More information about the jboss-user
mailing list