Skip to main content
March 12, 2024
Question

Process model does not fetch the right value when printing inside the web api

  • March 12, 2024
  • 9 replies
  • 0 views

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 !

9 replies

harshitb6843
March 12, 2024

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?

March 12, 2024

I am sure that the name of the variable is success...

yes all chains are enabled in the sub process

harshitb6843
March 12, 2024

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. 

stefanhelzle0001
Brainy
March 12, 2024
all chains are enabled

Did you check that, including all sub processes and sub process nodes? How many nodes are in that chain and how long is that process running?