cancel
Showing results for 
Search instead for 
Did you mean: 

read bpm_outcome from a task

alalimuc
Champ in-the-making
Champ in-the-making
Hi,
im struggling for a couple of day now trying to find out how to read this property from a task.
I can see it in the workflow console that it is there for a PATH


    Last command: desc path jbpm$116-@
    path: path
    properties: 27

    …
    {http://www.alfresco.org/model/bpm/1.0}outcome = approve
    …

Basically i just want to be able to read form JavaScript the outcome (bpmSmiley Surprisedutcome) of the task. Which way did it take.
Does anyone has an idea how to read this on an event like task-end for example.

Thanks in advance

Regards Aldi
2 REPLIES 2

dc_noze
Champ in-the-making
Champ in-the-making
Hi Aldi,
any luck with that? I'm looking for the same solution: get the outcome on task-end.

Thanks,
Daniele

ghl
Champ in-the-making
Champ in-the-making
Hopefully this isn't too late but you are able to get the property as follows:


TaskInstance ti = …
ti.getVariableLocally("bpm_outcome");

or

ti.getVariable("bpm_outcome");