But now the int_control variable is not 1. I think the Terminate workflow means that the out_int_control argument no longer passes the value 1 to the int_control variable. But in the End-Process state I need a 1 in the int_control variable.
Does anyone have an idea why or an idea how to proceed here?
Terminate workflow will terminate the workflow without returning any arguments.
Solution:
Instead of terminating the workflow use if else condition to just move out in case the condition not satisfied. This will return you the arguments.
Terminate Workflow immediately kills the job with a status of faulted. That’s not what you want to do. You want to use flow control to send the process to your end sequence.
What i can suggest you, In ‘Get Transaction State’ when you have no data to process → got to transition which going to ‘end state’ and assign one variable as int ‘1’ and you can use in ‘End State’