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

Question

Question

Is it possible update in progress forms variables from workflow

asked on June 20, 2018

I am wondering if I can have workflow update variables in an in progress forms process with new variables that were blank, or update previously populated variables.  For example, we have one form that kicks off a WF and starts a new forms process.  That new process assigns a task to a user and sits waiting for completion.  While it is waiting for completion, an 3rd user sometimes needs to cancel the task.  I am wondering if the variables passed from the 3rd users form passed along to WF can update the variables to the task and push the task along in the process modeler down a different branch?  Obviously if the user assigned the task has the task open, that would pose an issue, but in this business case, the tasks are appointment reports and the cancellations would be before the appointment, so there is an almost 0% chance the task is being worked on when WF would be trying to update the task.

0 0

Answer

SELECTED ANSWER
replied on June 21, 2018

In short, no, this isn't currently supported. There are ways to accomplish this though. 

Inside the process, you could use a Workflow service task to update variable values. This Workflow could watch a database for values from another Forms process or workflow task. If those values changed, the workflow could set variables in the process or end and throw a signal event to alter the process. 

1 0
replied on June 21, 2018

Thank you.

0 0
replied on June 21, 2018

You should be a little careful with this though. If you have the workflow running parallel to the Forms process, it should keep periodically checking the database for changes. 

If however, the forms process finishes and the database never updates, the wf may keep running indefinitely. You should make sure to have the wf check periodically, but end at a reasonable point so you don't leave the wf running forever. 

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.