I am facing an issue where I am setting a variable in the process model at first to be false and at the end I am setting it to be true, this change was made flawlessly across all the process models only this one. whenever I try to return the value via the web API it keeps on returning false. just note that the script task that change the value is set after a sub process model. keep in mind all chains are enabled !
Discussion posts and replies are publicly visible
Are you sure the name of the variable you are updating is "success" with the same case? And you, by mistake, did not add the script task name instead of the variable name in the API's success parameter? And do you also have the chaining enabled in the sub process?
I am sure that the name of the variable is success...
yes all chains are enabled in the sub process
Okay. And when you check the process history and variable's values in the process instance, does it show true there? If yes, the only reason I can think of is the broken activity chaining somewhere.
Did you configure the sub process nodes to chain into the called process?
Yes it do show true, and no it is not because broken chains.
In the web API it workks if we placed the script task change before the subprocess and does not work after.
Okay. Can you post a picture of what does the subprocess look like? And by any chance, do you think the chained nodes are 50+? Because any chained node after 50 will work just like normal nodes.
we do have 50+ nodes inside the sub process, now how can I fetch it right in the web API?
You will need to reduce down the nodes to keep them within 50. Divide the subprocess into two parts.
1 - Manipulations that are mandatory before you send the result back to API. 2 - Manipulations which can be done after the result has been sent.