[jboss-user] [JBoss jBPM] - Re: Clone a Process Instance
Yep, I meant I may have found a way... At least I think it could be a pretty solution... It must come from Hibernate, maybe it's not possible to manipulate 2 processInstances in the same jbpm session... I'm gonna work on this way (and I have no other idea!) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233388#4233388 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233388 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Clone a Process Instance
anonymous wrote : I found a way though, but I can't make it work. That is cool. You found a way but cannot make it work. IMO you did not find a way then, at least not yet ;-) Not sure but it might be related to some hibernate deepcloning stuff. Never tried this, so I'm not sure. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233383#4233383 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233383 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Clone a Process Instance
Hum I can't do it this way, because I have to retrieve both processInstance after. They have to be explicitely twho processInstance, not one which has been modified. I found a way though, but I can't make it work. I create a new ProcessInstace and give it the var I want. When saving it, I get the exception: save the transient instance before flushing: tokenvariablemap Here is my code: http://pastebin.com/m24690e08 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233230#4233230 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233230 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Clone a Process Instance
Yes, I understood what you 'want' but that is not easy. What I tried to say is: - leave the intial process running - create a task that 'rests' all kinds of values and e.g. call it 'reset' - this creates a log entry that you can always trace (it's like the 'end' of the process, but not a real end) - you process continues. Much easier to achieve View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232719#4232719 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232719 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Clone a Process Instance
Sorry but i did not understand what you're telling me. Yes, I want to keep a trace of my process, but more than that, I wanna split my process in two: - one (which correspond to the part before now) will be ended (processInstance.end() ) - and the second (which correspond to the part after now) will be kept as active View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232262#4232262 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232262 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Clone a Process Instance
what is the advantage of cloning? You can always modify all values and still have a history log that shows what happened. imo much easier.If you create an adhoc task in the process, that is executed at that moment, you have a specific entry in the log that everything is reset. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232139#4232139 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232139 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user