[JBoss jBPM] - Modifing a Deployed Process Definition
by chane
I have an existing process definition deployed (jbpm-jpdl-3.2.2.jar). As expected, there are new requirements for which we need to add to the process definition. I would like to modify the existing process definition rather than deploy a second version.
Otherwise, I will need to write a program to convert all of the existing process instances to the new version.
While our process is complex (lots of nodes, decisions, wait states and sub processes), I'm hoping modifying the process definition is a doable programming exercise.
Basically, I want to modify a couple of current wait states to include new outbound transitions and then new processing paths (nodes/decisions/wait states).
Sorry for the long lead up to my questions. First, since I am only adding to the process definition and not modifying (removing/renaming/deleting) anything that currently exists, will I be safe to just "add" the new stuff to the process definition table (created using POJOs and hibernate - not directly inserting into the table)? I was thinking of loading the process definition and then "adding" nodes (of the correct type) via the api (I'm assuming there is an api to do this).
Or will I also need to modify all of the existing process instances?
Basically what we are doing is modifying the current flow:
start -> node -> node -> wait --A--> node --> etc...
--B--> node --> etc...
To add a third transition:
--C--> node --> etc...
So any "open" process instance can execute the C transition from the wait state (if that is where the PI is waiting).
TIA,
Chris....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162423#4162423
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162423
17 years, 9 months
[JBoss jBPM] - process variable is blank
by scholtz.albert
I have the following code in my process definiton:
<task-node name="viewBill">
| <event type="node-leave">
| <script>
| <variable name="success" access="write" />
| <expression>"#{billAction.success}"</expression>
| </script>
| </event>
| <transition to="successful" name="toSuccessful"></transition>
| </task-node>
|
| <decision name="successful" expression="#{billAction.success}">
| <transition to="success" name="true"></transition>
| <transition to="failure" name="false"></transition>
| </decision>
In my decision tag the billAction.success variable always has a value of either ture or false which is what i expected. When i run the process instance through my page it transitions to the corrrect node. However the variable "success" is always blank when i i check it in jpbm admin console. I would like this true or false value to be reflected there.
Any help will be appreciated
Albert Scholtz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162334#4162334
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162334
17 years, 9 months