-
1. Re: how to merge global variables value in a JOIN
kukeltje Apr 4, 2007 5:31 AM (in response to tsandor)afaik, states do not have 'local' variables, so once you update it in state one, state two also has access to them. Only when using tasks you get automatic local copies of the values from the time the task is created. Each task completed updates the global variable, so the last task completed is the one that 'wins'. A fork and join do not influence this at all
-
2. Re: how to merge global variables value in a JOIN
tsandor Apr 4, 2007 5:44 AM (in response to tsandor)Hi Ronald,
"kukeltje" wrote:
Each task completed updates the global variable, so the last task completed is the one that 'wins'.
This means there will be a data-loss. E.g. A modifies its local replica of a global context variable, and B modifies also its replica. But if B approves later, modifications of A will be lost, only B's local replica will be stored back globally.
Am I right? -
3. Re: how to merge global variables value in a JOIN
kukeltje Apr 4, 2007 6:35 AM (in response to tsandor)Correct, and whether it is dataloss is debatable (the behaviour is by design). The data A modified is still present in that finished task.
If you want/prefere other behaviour, you can discuss that in the design forum, but keep in mind... it is a real complex issue that often has it's roots in an not well designed process. Meaning, if you can prevent parallel tasks modifying the same date you should -
4. Re: how to merge global variables value in a JOIN
sirajm Apr 9, 2007 3:35 AM (in response to tsandor)"kukeltje" wrote:
Correct, and whether it is dataloss is debatable (the behaviour is by design). The data A modified is still present in that finished task.
Hi Ronald,
I am also doing some research on process context variable so I would like to know how to read the value modified by 'A' in the finished task.
Thanks,
Siraj -
5. Re: how to merge global variables value in a JOIN
kukeltje Apr 9, 2007 4:11 AM (in response to tsandor)use the api to get a list of all tasks of that user. Finished tasks are also in there. Not sure if you can retrieve jsut tasks for this processinstance. I think you can. Then you have access to the variables. Play a little with the api and learn it....
-
6. Re: how to merge global variables value in a JOIN
stanatbics Dec 17, 2007 12:36 AM (in response to tsandor)Hi
Is it possible to have different value with the same name for two instances..
Any configuration need to be modified?
Regards
Stan -
7. Re: how to merge global variables value in a JOIN
kukeltje Dec 17, 2007 4:45 AM (in response to tsandor)two instances of what? processes? ofcourse....