hss
(hss)
November 25, 2019, 5:33am
1
Hello,
Am trying to stop a job in the orchestrator, this job is the same as the file am running… The workflow is executing the stop job activity, but looks like it is executing activities even after that… not sure why it is happening…
Attaching the workflow.Main.xaml (6.2 KB)
To explain more… i dont want the bot to execute the Hello log stmt…
Any help would be appreciated!
you are stopping the other jobs after getting list of jobs but not this one which have stop job.
1 Like
hss
(hss)
November 25, 2019, 5:52am
3
@Sreelatha278 Thanks for the quick response…
How do we stop this job?
kuppu_samy
(Kuppusamy)
November 25, 2019, 5:59am
4
Use Should Stop
Activity to check whether you got the signal or not. Based on that do the logic over there and use another process to stop this job.
For better example the REFramework https://github.com/UiPath/ReFrameWork
Use terminate workflow activity
hss
(hss)
November 25, 2019, 6:02am
6
should stop i tried… it is sending false … @kuppu_samy
hss
(hss)
November 25, 2019, 6:04am
7
@Sreelatha278 terminate workflow asks for Exception… Not sure how to put that?
kuppu_samy
(Kuppusamy)
November 25, 2019, 6:05am
8
Is that Should Stop
activity works from Orchestrator based on your workflow? @hss
you can enter either exception or reason.
Enter a reason(string) to terminate flow.
hss
(hss)
November 25, 2019, 6:09am
10
@kuppu_samy not sure… attaching the workflow and output screenshot
Main.xaml (6.7 KB)
kuppu_samy
(Kuppusamy)
November 25, 2019, 6:11am
11
Can you tell me your goal? Do you want to stop the current process? @hss
hss
(hss)
November 25, 2019, 6:12am
12
@kuppu_samy yes. I want to stop this current process running in the orchestrator
hss
(hss)
November 25, 2019, 6:17am
13
@Sreelatha278 It is not working…
Main.xaml (6.4 KB)
When i upload this package to the orchestrator and run the job… ideally it shd terminate…but its executing statements even after the terminate workflow
activity
kuppu_samy
(Kuppusamy)
November 25, 2019, 6:19am
14
@hss try this one Main.xaml (6.8 KB)
hss
(hss)
November 25, 2019, 6:30am
15
@kuppu_samy i changed the while loop to 10… and the output is as shown in screenshot
hss
(hss)
November 25, 2019, 6:41am
17
@Sreelatha278 Thanks. Terminate workflow worked… attaching the workflow for reference.
Main.xaml (6.4 KB)
logs:
Also Thanks @kuppu_samy for your responses… do message if you have any other solution
system
(system)
Closed
November 28, 2019, 6:41am
18
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.