[JBoss jBPM] - Re: Possible bug in fork-joins
by jits_1998
Hi,
The fork and join work in tandem, the join expects exact number of incoming transitions as the fork sent out.
In the code above you have fork 1 giving out 2 and fork 2 splitting one into 2 and all three then meeting into the single join.
To get this to work it will need another join to be added after fork2 and the output from it will go into join1.
something like:
| public static ProcessDefinition createForkJoinProcessDefinition() {
| ProcessDefinition pd = new ProcessDefinition(
| new String[]{"start-state start",
| "fork f1",
| "state s1",
| "fork f2",
| "state s2",
| "join j1",
| "join j2",
| "state s3",
| "end-state end"},
| new String[]{"start --> f1", "f1 --to_s1--> s1", "f1 --to_j1_1--> j1",
| "s1 --> f2", "f2 --to_j2_1--> j2", "f2 --to_s2--> s2",
| "s2 --to_j2_2--> j2","j2 --to_j1_2-->j1", "j1 --> s3", "s3 --> end"});
| return pd;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969561#3969561
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969561
19 years, 7 months
[EJB 3.0] - Re: EJB3 WebServices
by leonell
I tried every jars from "all" because I have installed EJB3 into "all" (and not "default").
And result ( demo based on distribution example) with jboss 404 GA + EJB3RC8:
| [javac] Compiling 1 source file to /home/lur/JavaProjects/Qds/JbossWS-EJB3Demo-SBI/build/classes
| [javac] /home/lur/JavaProjects/Qds/JbossWS-EJB3Demo-SBI/src/cz/qds/wsdemo/sbi/ExampleRemote.java:10: incompatible types
| [javac] found : javax.jws.WebService
| [javac] required: java.lang.annotation.Annotation
| [javac] @WebService
| [javac] ^
| [javac] /home/lur/JavaProjects/Qds/JbossWS-EJB3Demo-SBI/src/cz/qds/wsdemo/sbi/ExampleRemote.java:11: incompatible types
| [javac] found : javax.jws.soap.SOAPBinding
| [javac] required: java.lang.annotation.Annotation
| [javac] @SOAPBinding(style=Style.RPC)
| [javac] ^
| [javac] /home/lur/JavaProjects/Qds/JbossWS-EJB3Demo-SBI/src/cz/qds/wsdemo/sbi/ExampleRemote.java:11: duplicate annotation
| [javac] @SOAPBinding(style=Style.RPC)
| [javac] ^
| [javac] /home/lur/JavaProjects/Qds/JbossWS-EJB3Demo-SBI/src/cz/qds/wsdemo/sbi/ExampleRemote.java:14: incompatible types
| [javac] found : javax.jws.WebMethod
| [javac] required: java.lang.annotation.Annotation
| [javac] @WebMethod int add(int x, int y);
| [javac] ^
| [javac] /home/lur/JavaProjects/Qds/JbossWS-EJB3Demo-SBI/src/cz/qds/wsdemo/sbi/ExampleRemote.java:15: incompatible types
| [javac] found : javax.jws.WebMethod
| [javac] required: java.lang.annotation.Annotation
| [javac] @WebMethod int subtract(int x, int y);
| [javac] ^
| [javac] 5 errors
|
| BUILD FAILED
| /home/lur/JavaProjects/Qds/JbossWS-EJB3Demo-SBI/nbproject/build-impl.xml:240: The following error occurred while executing this line:
| /home/lur/JavaProjects/Qds/JbossWS-EJB3Demo-SBI/nbproject/build-impl.xml:123: Compile failed; see the compiler error output for details.
|
| Total time: 2 seconds
|
|
Leonell
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969560#3969560
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969560
19 years, 7 months