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

Question

Question

Forms - Exclusive Gateway

asked on November 19, 2015

I have created a form that when submitted will run a workflow.  On the form is the option to upload a document - but this is not required.  In the instances when a document is uploaded I want to save the document in LF (and not the submission form) and then run the workflow.

I set up the process modeler with an Exclusive gateway that is supposed to save the document before it runs the workflow.  

But it doesn't save the document or run the workflow and I get the following error:

11/19/2015 8:49:24 PM
Message: Routing cannot be split to any subsequent branch. XPath evaluation may fail for every possible condition
Stack trace:    at Laserfiche.Forms.Routing.Gateway.GetAllSubsequentSteps(Int32 instanceId, Int32 processId, Int32 sourceStepId, IRoutingContext routingContext)
   at Laserfiche.Forms.Routing.Gateway.Execute(Int32 instanceId, IRoutingContext routingContext)
   at Laserfiche.Forms.Routing.RoutingDispatcher.ExecuteSteps()

Can anyone please tell me what I'm doing wrong?

Thanks!
Sandy

0 0

Answer

SELECTED ANSWER
replied on November 19, 2015

In this case you would want to use a "Parallel Gateway" and set the same conditions you have.

1 0

Replies

replied on November 19, 2015

What is the setup of your Save Attachments task?

0 0
replied on November 19, 2015

OK That helped - now it saves the attachment but it runs the workflow twice. - The workflow doesn't have a starting rule since the workflow is running it.  All the workflow does is take the data from the form and push it to a PDF form.

 

Thanks,
Sandy

0 0
replied on November 19, 2015

Is the workflow supposed to interact with the document that Forms saves in any way? Because Forms saves documents to Laserfiche asynchronously, so you're not guaranteed the order of the tasks. It's safer to let Forms save the document to LF and trigger Workflow with a starting rule on the document creation.

0 0
replied on November 20, 2015

This started out with just triggering a workflow because I didn't want to save the form that was submitted, since all the workflow was doing was populating a PDF with all of the form fields.  That worked fine until I had to provide the ability to upload a document to the  form but still not save the form.  

It seemed like setting up an exclusive gateway that when the form had an upload it would save that document to LF then run the workflow to gather the data from the form to fill the PDF.  

If I save the form to LF first I'll just need to delete it after since what I really need is the PFD filled out.

 

Thanks for your help!

0 0
replied on November 20, 2015

OK with help from a friend I fixed my arrows and now everything is working as expected.  Thanks!

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

Sign in to reply to this post.