I think the best solution is to use the variable tag in your subprocess
definition to insert a variable in the sub process.
|
|
|
|
|
|
In the code above you take the variable named variable1 from the
processInstance (ContextInstance.getVariable) and insert it t
1,2, 3 is what I mean
4 :
The first task in the sub process is a task with an action that is called
automatically (no user interaction)
So, do you mean that I should put the listener in the process instead of having
an 'external' message listener ?
Actually this sounds quite good ..
But then I
ummm , i am understanding your situation
This make me think that you need something like a CustomFork with a
process-state.
So:
1) the main process have a MultichoiceFork node
http://www.jboss.org/community/docs/DOC-11442 Look there
2) this Multichoise fork create on demand an X number of su
That's ok.. I think if you have the situation when the Main process finished,
you don't have to use process-state nodes. Because process-states are designed
to run "inside" a node when your main process is still running.
So I think you have 2 diferent process here:
1) The main process could cal
I don't fully understand your idea.. but lets try with this approach:
1) Main process have a process-state (subprocess) in one of the nodes
2) When the process-state is reached a new processInstance is created (that
represent the subprocess)
3) At this moment you need to introduce a new variabl
In that case you take an existing process instance and pass it to the sub
process.
My question is about a process variable specific to that sub process. So, a
variable that should not be assigned in the main process (eg. because it is not
used there and has no relevance there) but is needed in
I think that in the multi fork case, you know how many parallel processes you
need on node entry (based on the process variable).
But I think that is not applicable for the case I am facing ;)
I mean : I am dealing with the insurance business... In theory, it is possible
to close a claim (main