[Design of JBoss jBPM] - Re: GetOutcomes returns additional transition
by shekharv
No.
It allows for that.
Here is a small excerpt from the TaskActivity class:
| if ( (outgoingTransitions!=null)
| && (!outgoingTransitions.isEmpty())
| ) {
| transition = activity.findOutgoingTransition(signalName);
| if (transition==null) {
| if (Task.STATE_COMPLETED.equals(signalName)) {
| if (outgoingTransitions.size()==1) {
| transition = outgoingTransitions.get(0);
| } else {
| transition = activity.getDefaultOutgoingTransition();
| }
| } else {
| // if a user specified outcome was provided and it doesn't
| // match with an outgoing transition name, then the process
| // instance is suspended. parked for admin intervention.
| ((ExecutionImpl)execution.getProcessInstance()).suspend();
| }
| }
| if (transition!=null) {
| execution.take(transition);
| }
| }
|
1.) If signal name was null at the time of signal, then it will take default transition, or the only one that is there.
2.) If signal name was provided and the value could be 'completed' or anything else, it first does that
| transition = activity.findOutgoingTransition(signalName);
|
So it will always pick the one that you have setup in the process definition, whether it is 'completed' or any other value, it does not matter.
So in short answer to your question, the case you mentioned is handled as one would expect it.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241583#4241583
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241583
16 years, 6 months
[Design of JCA on JBoss] - Re: Error In Building
by gurkanerdogdu
anonymous wrote :
| PostPosted: Thu Jul 2, 2009 14:39 PM Post subject: Re: Error In Building
| There is a bug in Ivy when compiling on Windows.
I am using Linux Distro. Anyway, as you suggested, I have downloaded ivy trunk and build jar. it works!
In the mean time, how could I start standalone server after build? I used the
java -jar jboss-jca-sjc.jar but it is resulted as
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
| at java.lang.String.substring(String.java:1938)
| at org.jboss.jca.sjc.Main.boot(Main.java:94)
| at org.jboss.jca.sjc.Main.access$000(Main.java:55)
| at org.jboss.jca.sjc.Main$1.run(Main.java:592)
| at java.lang.Thread.run(Thread.java:619)
| Server started in 5ms
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241582#4241582
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241582
16 years, 6 months