JBoss Community

How to define result mapping or exit action that saves task owner

created by jemmerling in jBPM - View the full discussion



This should be simple for any non-novice, it was suggested before however without an example.


So I have a process variable and I want a particular task to store its owner into that variable (say its name is "task2owner"). Is there an expression for that, for example:




So if there is a standard expression for the task owner (the above is just a guess at what it might be) then this result mapping would allow subsequent tasks to determine who owned (and completed) task2.


Failing that, I could try defining an on exit action, using kcontext I can get the node instance which I think has a one-to-one correspondence to the task, however the node instance does not seem to have an attribute that explicitly identifies the owner. Perhaps the owner is a variable?


Any suggestion would be greatly appreciated.





Reply to this message by going to Community

Start a new discussion in jBPM at Community