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

Question

Question

Stop a running Workflow if a Form has ended

asked on March 7, 2023

Hi,

I currently have a form that has a parallel gateway going to a workflow service task and a user task.

Workflow service task:
The workflow service task calls a workflow that creates a time token of 13 hours. I then put the Delay activity to delay based on the time token. Lastly I set some variables some values. The workflow ends. -> goes back to Forms BP -> Saves form with the values assigned to the repository and then goes to an End Event.


User task: 

User approves a form -> Save to repository -> Terminate End Event.


But inside the Workflow Designer Search Results, I still see the Timer workflow running. Is there any way I can end it by either Forms going back to Workflow and ending the Timer workflow by BP instance through a Workflow service task? 

I can see the End Workflow activity as an option but it doesn't give me an option to end a specific workflow, just current or parent.




 

0 0

Answer

SELECTED ANSWER
replied on March 7, 2023

Forms cannot signal a running workflow to terminate. Is there a reason why you need to wait 13 hours in Workflow instead of using a timer in your Forms process?

0 0
replied on March 8, 2023

Thanks! Good to know!

Yes, a Form BP is started by a Workflow at 12am each day. The review part should be open till the next day at 1pm. I tried the Timer Catch Event as it has the wait options of Date and time, After and Variable. 

Date and time - Not helpful as it asks for a specific date and time.

After - Not helpful because the timer starts the moment Form's process gets to that step. It also doesn't let me set a specific time.

Variable - Even if I create a Time variable and set it to 1pm, Forms only allows you to select Date variables due to it asking _ days after variable. 

 

0 0

Replies

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

Sign in to reply to this post.