[JBoss jBPM] - Re: [JBPM4] How to maintain class files for different Proces
by shekharv
OK, I do not think we are on the same page,
Why do you want to change the class name or package name in the first place? The reason I recommended as an option was if you had to change the behavior of a certain class that gets invoked as part of the jbpm process execution.
Say you have an assignment handler com.foo.Assign. This is currently deployed in a process definition ABC with version 1. If you have to deploy version 2 of the process, with changes to the code to com.foo.Assign, not always can you go ahead and do that, because some executions might already exist out there that could potentially break if you change the code of that class. If that is the case you have to version your class accordingly, and use the newer version in the new process deployment. If you think that changing the code does not impact the process definition, then why change the name of the class?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245722#4245722
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245722
16 years, 8 months
[JBoss jBPM] - Re: jBPM 4.0 instance creation results in single task
by shekharv
The task is created when the execution reaches that stage in the processDefinition.
eg:
| <task assignee="alex" g="277,235,92,52" name="review1">
| <transition g="-73,-25" name="approved1" to="review2"/>
| </task>
| <task assignee="alex" g="277,235,92,52" name="review2">
| <transition g="-73,-25" name="approved2" to="audit"/>
| </task>
|
'review2' will not be created until 'review1' is completed.
Consider this:
| <task assignee="alex" g="277,235,92,52" name="review0">
| <transition g="-73,-25" name="approved1" to="review1"/>
| <transition g="-73,-25" name="approved2" to="review2"/>
| </task>
| <task assignee="alex" g="277,235,92,52" name="review1">
| <transition g="-73,-25" name="approved" to="review2"/>
| </task>
| <task assignee="alex" g="277,235,92,52" name="review2">
| <transition g="-73,-25" name="approved2" to="audit"/>
| </task>
|
You have two options in tasknode review1: unless you pick one of them while completing the task, the next task cannot be determined, so the next task will not be created up front.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245721#4245721
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245721
16 years, 8 months
[JBoss jBPM] - Re: jBPM 4.0 instance creation results in single task
by holla2040
Thanks for replying. Here's my quick jBPM HW hack.
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process name="helloworld" xmlns="http://jbpm.org/4.0/jpdl">
| <start g="78,13,48,48" name="start">
| <transition g="-90,-4" name="to request" to="request"/>
| </start>
| <end g="457,369,48,48" name="end"/>
| <java class="org.jbpm.helloworld.Println" g="174,95,92,52" method="request" name="request">
| <transition g="-85,-6" name="to review" to="review"/>
| </java>
| <task assignee="alex" g="277,235,92,52" name="review" form="review.ftl">
| <transition g="-73,-25" name="approved" to="review1"/>
| </task>
| <task assignee="alex" g="277,235,92,52" name="review1">
| <transition g="-73,-25" name="approved1" to="review2"/>
| </task>
| <task assignee="alex" g="277,235,92,52" name="review2">
| <transition g="-73,-25" name="approved2" to="audit"/>
| </task>
| <state g="498,134,92,52" name="audit">
| <transition g="-54,-19" name="to end" to="end"/>
| </state>
| </process>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245715#4245715
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245715
16 years, 8 months