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

Question

Question

Forms process forgets it called a workflow?

asked on November 10, 2017

Hello!

We're working with a customer on a forms process. One of the tasks is that it calls a workflow, which sends an email with a Forms link on it, and waits for that form to be completed. It will then finish what it was doing and complete.

Unfortunately, while the workflow was waiting, the server shut down unexpectedly. This was not an issue for Workflow, as it simply resumed. Forms seems to have lost reference to the workflow it was waiting on, and is now calling the workflow every second, but with none of the variables required (which means they terminate immediately). 

I understand that the repetition of calling terminated workflows is expected behaviour, and that's fine, but I'm wondering if there is a way to let Forms know that the workflow it is trying to call is already running just fine. is it possible to reference the running workflow again somewhere in Forms?

 

Thank you in advance!

0 0

Answer

SELECTED ANSWER
replied on November 10, 2017

Hi Peter,

This sounds like an issue that we're aware of which should be addressed in the upcoming Forms 10.3 release.

If you have a Forms instance that's been in progress for over 24 hours and happens to currently be waiting for a Workflow instance to finish, then if the routing service gets restarted, the Forms instance becomes suspended. Forms is set to automatically retry suspended tasks so that's why you see it retry the workflow.

As for why the workflow terminates and then Forms constantly retries, is because of a bug where when Forms retries the suspended Workflow task after the routing service restarts, it sends a submission ID of 0 to Workflow.

A workaround for now is to edit the workflow by doing the following:

  1. Use an "Assign Token Values" activity that makes a MySubmissionID token, and sets it equal to the Submission ID input parameter
  2. Use a conditional sequence that runs if MySubmissionID = 0, and modifies it to be equal to %(Submission IDs#[-1]#)
  3. Reconfigure the settings on the "Retrieve Business Process Variables" activity. Change the "Retrieve content at the time of" to use "The submission with ID:" set to the %(MySubmissionID) token

As for how this is addressed in Forms 10.3, the Forms instance will no longer be suspended after being in progress for over 24 hours and the routing service gets restarted.

Regards

3 0

Replies

replied on November 10, 2017

Hi Alex!

Didn't expect to see you on here! Thanks for the info, the fix worked like a charm. 

 

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

Sign in to reply to this post.