You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Feature Request: Interrupt workflow started by Forms

posted on October 18, 2021

I need to be able to terminate a workflow that Forms started and is currently waiting on to finish.

The particular use case here is this:

Job application is submitted. Stored in the repo. HR selects the job application from the repo and performs an action that send that application to a person in their Forms Inbox for review. The form that is sent allows them to review the application in an iFrame and select them for hire or return them as not selected. I can send that application to multiple people at once. So when I send it to someone I also trigger a workflow that watches that job application entryId for a status change in case someone else hires them first. If someone else hires them the status changes to 'selected for hire' and the user task in forms is interrupted. However, if the hiring manager does not want to hire them the user task is complete, but the parallel workflow that was triggered to watch for them to be hired will wait forever. I need to be able to interrupt/terminate that exact workflow forms triggered just like terminating a user task.

 

0 0
replied on October 18, 2021

Hi Elexis

The way I get around this is I put a Timer on my Task that will trigger as long as the Task is running. The Timer when run will run the workflow to check for that document condition in the Repository (The WF task itself does not include a Wait) it is only trigger by the Timer in the workflow. This way you don't have to Terminate the Workflow, you just Interrupt the Task the timer is connected to.

Here's and Example that might help

1 0
replied on October 18, 2021

Ah. Interesting angle. This may work for me as a workaround. Thanks so much for taking the time to read and respond. :)

0 0
replied on October 25, 2021

@Steve Knowlton Are you able to retrieve the forms variables from this workflow that is triggered?  I have this working but the variables it retrieves are all empty.

0 0
replied on October 25, 2021

The service Task (Top Left) remains running when the Timer kicks off so any values on that form should be available to the workflow

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.