Error setting workflow variables
Confluence User - 10 Jan, 2020
I am creating a process that has the below design.In the Listener tool I am doing something like this in code:
if(statusReached) {
wm.processVariable(processId,"STATUS_REACHED_VARIABLE","YES");
} else {
wm.processVariable(processId,"STATUS_REACHED_VARIABLE","NO");
}
In the end of this code, im doing a call to this joget api method:
web/json/workflow/variable/list/(*:processId)
This call returns something like this:
{"processId":"6851_ListenerStatusApp_process1","variable":[{"STATUS_REACHED_VARIABLE":"NO"},{"status":""}]}
Nevertheless, the route always enters in the otherwise situation.
If I have the design this way (With an activity between listener and route) everything goes normally and the route goes where it should go.
Does anyone have any idea what the problem might be?
And by the way, it is possible to know, being in Listener, what is the id of the route activity?
Thanks.
process;workflow

