Consider the situation , My UiPath workflow is executing in a schedular mode by the orchestrator. while this execution is processing, The user is trying to execute a particular credential by triggering the workflow manually from the external application. In case the schedular mode need to pause the execution, proceed with that manual trigger. after completing the execution for the manual trigger the schedular mode need to resume its execution. is it possible ? if yes how can we achive this ? can anybody help me with this ?
Hi @Prabhakaran_Elango ,
Could you let us know a bit more about the process steps?
Is it such that the Credentials can only be entered manually by the user and whenever the First Process arrives at the Login page, it should ask for the Password from the user and then continue with its next steps ?
In that case, we could have mutliple methods to do it:
- The First Process asks for credentials or wait until the credentials are supplied through a Create Form Tasks and Wait for Form Task activities. User would have to go to the tasks panel in Cloud and enter the credentials and then once submitted, the execution should continue in the same process.
- No need of another process. First Process is suspended until the Form task is complete/failed.
- The First process uses Create External Task and then Starts another Job in Orchestrator which completes the Login process. Once the Login is complete, the Complete task activity can be used to mark the task as complete so the First process execution can resume and continue.
- The First Process is suspended until the External Task/Job is complete / failed. Two Processes are used in this case.
Above methods are mentioned assuming it is for unattended scenarios.
Video Tutorials:
Orchestrator cannot pause and resume a running job. To handle this, design the workflow to control execution logically. Use a shared flag in a queue, database, or asset that the scheduled job checks between steps. When a manual trigger starts, set the flag so the scheduled job waits or exits safely. After the manual job finishes, clear the flag and let the scheduled job continue or restart and resume based on saved state.
Let me know if have further queries