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

Question

Question

Populating forms fields with data from file in repository / stuck in FOR loop

asked on February 6, 2019

Hello all, 

 

I am brand new to laserfiche(a few days), and I have created a workflow that searches the repository for documents needing to be reviewed based on the "Review Date" field in the document metadata. This works fine. I am having trouble populating  the fields that I retrieved from the repository document into forms. I am using the "Invoke Business Process" action in order to populate forms, using the tokens I created in my workflow. Right now, when I run the business process it kicks off the workflow, but I wind up getting stuck in a loop with runaway instances of my workflow. If I remove the "Invoke Business Process" action, I no longer get stuck in the loop but I need the workflow to kick off my business process. 

 

I'd appreciate any help on this subject, being so new to Laserfiche, every bit helps. Anyone?
 

 

0 0

Replies

replied on February 6, 2019

Hi Ronald

So it appears that the Forms Service Task is starting the Workflow you show. At the end of the workflow you want to send the variables back to the same forms process correct? In this case, you last task should not be Invoke Business Process but instead Set Business Process Variables. Invoke a Business process kicks off the Forms process from the start which is why you end up in a loop. FYI, in the Forms service task you should check the box Wait for the process to complete.

 

3 0
replied on February 7, 2019

Hello, thank you for your response..you were right! 

 

I had to use set business process varibales inside of my conditional decision and I am now getting the results I wanted with the looping. Thank you for the help! 

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

Sign in to reply to this post.