Terminate Workflow & use of a variable

Hello

I have used a “Terminate Workflow” in the InitAllApplication. If no results are found, it should go to the “End Process State”.


Now I have created a variable “out_int_control” with the value 1 above the Terminate workflow.

In Import Arguments I have inserted the argument “out_int_control”, which flows into the variable “int_Control”.


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?

@moritz.seiler

then dont use terminate at all

just sent variable and let the control pass to end process

you can modify the transition from init to end to check for the variable value to be 1 as well

cheers

@moritz.seiler,

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.

Thanks,
Ashok :slight_smile:

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.

Hi Seiler,

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’

Please confirm if it works & like…

Cheers…