Hello,
I would like to put a condition in my process that if it’s true, it should stop the job after finishing the transaction
I want to use stop job but i don’t know how to get current job

Hello,
I would like to put a condition in my process that if it’s true, it should stop the job after finishing the transaction
I want to use stop job but i don’t know how to get current job

Instead of Stopping the job you can put your condition in Main.xaml where bot checks for Should Stop signal before Invoking Get Transaction Data.
Thanks,
Ashok ![]()
Hi @ashokkarale
my condition is if a transaction item responds to certain criteria I have to stop the job
so i put the condition where the native stop is ?
Could you please elaborate more about your requirement, is stopping a job is a part of the process or itself a separate process.
However for your requirement what you can do is you can use Get Jobs activity and pass the output argument of that to the Stop Job activity as an Input.
This activity I guess won’t help in your scenario
If you are having process in which u need check one value before getting new entry time
You can declare that variable into main.xaml and let’s assume it’s false by default now.
In the transaction of the processing state you can add that flag condition
You can add if flag is true go to end state and not then go to get data
In the existing conditions of these two transition you can add your condition with ‘and ‘ operator
Hope this helps !
@adext