[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
Thanks! This helped me also. The need for the binding="late" came after upgrading from JBoss ESB 4.4.GA to 4.5.GA. Before that there's no need for the it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231409#4231409 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231409 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
I added the binding="late" attribute to the sub-process and now is working, it is going to be used to get the later version of my sub-process. Thanks for your help | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196932#4196932 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196932 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
I changed the process definition | | | | | | | | | | | | | | | | | | Action * public void execute(final ExecutionContext executionContext) throws Exception | { | final Token rootToken = executionContext.getToken(); | final Node node = executionContext.getNode(); | final List argSets = new LinkedList(); | | for (int i = 0; i < node.getLeavingTransitions().size(); i++) { | final Transition transition = (Transition) node.getLeavingTransitions().get(0); | | for (int j = 0; j < 2; j++) { | | final Token newToken = new Token(rootToken, FOREACH_PREFIX + node.getId() + "." + j); | | newToken.setTerminationImplicit(true); | executionContext.getJbpmContext().getSession().save(newToken); | | final ExecutionContext newExecutionContext = new ExecutionContext( newToken ); | newExecutionContext.getContextInstance().createVariable( "message", "data " + j, newToken); | argSets.add(new Object[] {newExecutionContext, transition}); | } | } | | for (int i = 0; i < argSets.size(); i++) | { | final Object[] args = (Object[]) argSets.get(i); | node.leave((ExecutionContext) args[0], (Transition) args[1]); | } | } And I get this error 11:08:45,020 ERROR [GraphElement] action threw exception: can't create a process instance when processDefinition is null | org.jbpm.JbpmException: can't create a process instance when processDefinition is null | at org.jbpm.graph.exe.ProcessInstance.(ProcessInstance.java:129) | at org.jbpm.graph.exe.ProcessInstance.(ProcessInstance.java:93) | at org.jbpm.graph.exe.Token.createSubProcessInstance(Token.java:621) | at org.jbpm.graph.node.ProcessState.execute(ProcessState.java:146) | at org.jbpm.graph.def.Node.enter(Node.java:314) | at sun.reflect.GeneratedMethodAccessor281.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173) | at org.jbpm.graph.def.Node_$$_javassist_49.enter(Node_$$_javassist_49.java) | at org.jbpm.graph.def.Transition.take(Transition.java:151) | at org.jbpm.graph.def.Node.leave(Node.java:389) | at com.ldg.bpm.handler.fork.ForEachForkActionHandler.execute(ForEachForkActionHandler.java:52) Could you help me to fix this? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196925#4196925 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196925 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
Somebody can help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196917#4196917 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196917 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
I am trying to use the sub-process but it don't work, some body said to download the source code and build the jbpm to make it work? That is true?, because that is going to make everything slow to me. there is a short way to fix this? there is a version I can download that work using sub-process node? Please give me some help on this. thanks jbpm 3.2.2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196896#4196896 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196896 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
@faite That is (afaik) because the node is no waitstate. It continues immediately to it's default transition. So if you replace node by state, it should work and then eventually put the subprocess there. @Trouby: it's in the wiki like I mentioned faite could find it... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196683#4196683 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
I made the next changes but it don't work, it don't stop at the join node. Any ideas how to fix this? Thanks public class ForEachForkActionHandler implements ActionHandler | { | private static final long serialVersionUID = 1L; | protected static final String FOREACH_PREFIX = "foreach."; | | /** | * Create a new child token for each item in list. | * | * @param executionContext | * @throws Exception | */ | public void execute(final ExecutionContext executionContext) throws Exception | { | final Token rootToken = executionContext.getToken(); | final Node node = executionContext.getNode(); | final List argSets = new LinkedList(); | | for (int i = 0; i < node.getLeavingTransitions().size(); i++) { | final Transition transition = (Transition) node.getLeavingTransitions().get(0); | | for (int j = 0; j < 2; j++) { | | final Token newToken = new Token(rootToken, FOREACH_PREFIX + node.getId() + "." + j); | newToken.setTerminationImplicit(true); | executionContext.getJbpmContext().getSession().save(newToken); | | final ExecutionContext newExecutionContext = new ExecutionContext( newToken ); | newExecutionContext.getContextInstance().createVariable( "message", "data " + j, newToken); | argSets.add(new Object[] {newExecutionContext, transition}); | } | } | | for (int i = 0; i < argSets.size(); i++) | { | final Object[] args = (Object[]) argSets.get(i); | node.leave((ExecutionContext) args[0], (Transition) args[1]); | } | } | | } | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196680#4196680 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196680 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
Where is that example? I would like to take a look at it as well, Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196662#4196662 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196662 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
use a custom fork handler. Look in the wiki for an example. Instead of a task node that is created multiple times, put a sub process in between View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196611#4196611 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196611 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user