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

Question

Question

Forms field not updated - "Save to Repository" after "Workflow Service Task"

asked on April 20, 2016

Hi - I have a business process that starts in Forms and calls a Workflow ("WF1").  After that, a second workflow ("WF2") is called by the Forms process model to generate a unique formatted Doc Number for archiving the Form itself.  We use Set Business Process Variables to send this number back to a hidden Forms field.  Finally, we call a Save to Repository for the Form.

The problem is, the Save to Repository does not pick up and pass the Field retrieved from WF2.  However, when I look at the Instance Metrics, the variable does show the correct value.

In the Admin Guide, it has this Note:

Note: A Save to Repository service task that runs immediately after a Workflow service task, which updates form variables with values from workflow, will display the form values submitted during the last User task and not the updated values from Workflow. If you want the saved form to include the updated values from Workflow, create a second Workflow service task, right after the first one. In this Workflow service task, map a Workflow output parameter to a hidden field or map a blank parameter to blank field. Even though the second Workflow service task doesn't make any noticeable changes to the form, when it runs it generates the submitted form that will be saved to the repository.

I've tried running a second WF, mapping blank parameters, but no luck yet.  Can anyone clarify the problem here, and offer some guidance?  Thanks very much.

0 0

Answer

SELECTED ANSWER
replied on April 20, 2016

It would depend on how your Save to Repo activity is set up. If it's set to use the form from a step, then it wouldn't have the data returned by Workflow.

1 0

Replies

replied on April 20, 2016

In the Forms Process, Workflow Task, do you have the Button "Wait for the workflow to finish before proceeding?" Set to Yes? (LF Forms 10). I have found when calling a WF that has variables too be returned, this setting has to be set to yes to ensure the Business process variables are returned from the Workflow engine before moving to the next step in the process

0 0
SELECTED ANSWER
replied on April 20, 2016

It would depend on how your Save to Repo activity is set up. If it's set to use the form from a step, then it wouldn't have the data returned by Workflow.

1 0
replied on April 22, 2016

Steve, Miruna - thanks for your replies.

I do have this working now.  The issue was my setting in the save step of the Save To Repo activity.  I had defaulted to the initial form info, rather than checking the "current process data" option - makes sense since I updated variables with workflow.  Silly mistake.

As an aside, I still have no idea what that Note in the Admin Guide refers to?

Thanks again for your replies and help, ... Steven.

0 0
replied on April 22, 2016

It sounds like the note is a workaround from a previous version when the activity had a lot less control over what got saved and could be derailed by timing of tasks. I'll have it taken out.

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

Sign in to reply to this post.