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.
Question
Question
Is it possible update in progress forms variables from workflow
Answer
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.
Thank you.
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.