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

Question

Question

Push data back to Form from Workflow

asked on June 1, 2016 Show version history

How can I  push data back from Workflow to the instance of Form that invoked that same workflow.

Looks like Business Process Variable Activity will work. But how can I receive values from Business Process Variable Activity into the form.

I am using Workflow ver. 10, Forms ver. 10.1 

Any suggestions?

Thanks

 

0 0

Replies

replied on June 1, 2016

I'm not really sure what you're asking for. Set Business Process Variables uses tokens to assign values to variables in your Forms process. The one non-obvious thing is that the Service Task in Forms has to be set to wait for Workflow to complete.

Can you explain where you're having issues or attach screenshots?

0 0
replied on June 3, 2016

Below is screen shots of Workflow and the form that is calling it.

 

 

In "Invoke Workflow" activity "Wait for the workflow to finish before proceeding?" is set to Yes.

The form is redirected back to same form after upload ie there is no Thank You form.

 

I need to show the message returned by the workflow in the form shown below in design

Thanks for your help

 

 

 

0 0
replied on June 3, 2016

Workflow cannot run before the form is submitted. In your process, you only have the starting form, while the service task is set to run after the process starts. You would need a user task after the service task to see the values sent back from Workflow.

0 0
replied on June 3, 2016

 Do we have any workflow / form example that gives a demo on how the communication between workflow and the form takes place.

Thanks

0 0
replied on June 3, 2016

For example, in the process below, the starting form and the one displayed in User Task can't see data from Workflow because they occur before the workflow task runs. The form displayed in User Task (2) can show data from Workflow because it occurs after the service task in the process.

0 0
replied on June 7, 2016

How can I show a form called Results used in User Task

Invoke Workflow is updating the variable used in the form Results 

 

 

 

Any suggestions? 

Thanks for your help

0 0
replied on June 7, 2016

How can I show a form called Results used in User Task

Invoke Workflow is updating the variable used in the form Results 

 

 

 

Any suggestions? 

Thanks for your help

0 0
replied on June 7, 2016

What form did you specify in the user task properties?

0 0
replied on June 7, 2016

Results Form

0 0
replied on June 7, 2016

Oh, wait, you're setting the Result field value to {/dataset/varResult} in your form. It should be blank not default to that variable.

0 0
replied on June 7, 2016

I removed  {/dataset/varResult}

The form Results is still not showing up instead Thanks You Form is always displayed.

Is there any way to replace standard Thank You form with the Results form. 

Thanks

0 0
replied on June 7, 2016

But if you go into the Inbox, do you see the user task assigned to that user and showing the Results form with the expected data?

0 0
replied on June 9, 2016

Yes, I can the see the Result form with the expected data. 

Thanks

0 0
replied on June 9, 2016

Ok, so the process of getting the URL into the form works.

On the start event, you can set it to automatically show the next user task if the same person is assigned to it. That will make it show the Results form to the user instead of the Thank You page. However, keep in mind that this behavior has a timeout of about 40 seconds, so if saving the form to Laserfiche and running the workflow takes longer than that, the user may still get the Thank You page instead. The Results form will always be available to the user in Inbox though.

0 0
replied on June 9, 2016

It worked. 

Is there any way to show the Results form without using User Task.  I would like to show the Results form on its own ie not as assigned Task.

One way I was thinking is to create a web page and redirect to this page from Start Event.  I hope I can pass some parameters to this page.

However, my first choice is not stay within Laserfiche environment.

 

0 0
replied on June 9, 2016

Not on the page. You could email out the URL to the submitter instead.

0 0
replied on June 10, 2016

Not on the page.  Do you mean we can not pass parameters in URL when redirecting to a web page from Start Event?

0 0
replied on June 10, 2016

I'm saying you would not have the parameters vaules to pass to your page since Workflow hasn't run yet to generate the content of the Results page.

0 0
replied on June 10, 2016

Thanks

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

Sign in to reply to this post.