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

Question

Question

Retrieve Business Process Variables and Template

asked on July 12, 2021

Hello,

I create a form, workflow, and an template in the Repository I try to run the form and it pass thus everything BUT when I try to pull up the the form on the Repository the is up but not the template I'm not see any words copy off of the form on the template??? If you don't understand I will get you more details!!!

VR.JPG
VR1.JPG
VR.JPG (20.99 KB)
VR1.JPG (20.51 KB)
0 0

Replies

replied on July 12, 2021 Show version history

To what entry are you trying to assign the template/fields? In your diagram, it looks like you don't have any other entry identified so the Assign Field Values task must be using the Starting Entry.

If this workflow is triggered by Forms, then there is no starting entry so the task wouldn't assign values to any entry at all and should just trigger a warning in the instance details.

If you're trying to assign the field values to an entry created by a Save to Repository task, then you need additional steps to locate the entry so it can be updated.

Typically, this is done by saving it to the repository with the Instance Id stored in a metadata field, then in your workflow you'd use a Search Activity to find the document with the same instance Id as the Forms instance that triggered the workflow (make sure "started by Forms" is checked in the workflow properties so you can access those variables).

For example,

Then in your Search Activity, you'd use something like

{[]:[Form ID]="%(BP Instance ID)"}

 

There are other ways to do this, such using the Instance Id variable in Forms to save to a unique folder path or with a unique name so it can be retrieved with Find Entry instead of search, but storing the instance id in a metadata field and using a search activity is probably the most manageable/reliable.

0 0
replied on July 12, 2021

Ok what about this one here will  Instance Id variable will be need for this example as well or something else??

VR2.JPG
VR2.JPG (29.61 KB)
0 0
replied on July 12, 2021

If you're assigning the field values when you save the form to the repository, then that is fine, but if you plan to do anything with the document from workflow you will need some kind of unique identifier to search and retrieve the saved form.

0 0
replied on July 13, 2021

Ok here a another example I added the dataset in my Configure Fields but now I'm having issue with Search Activity what the correct way to enter the syntax with what on my Configure Fields ??

VR3.JPG
VR3.JPG (33.4 KB)
0 0
replied on July 13, 2021

You can build out your search syntax in the LF Client using normal advanced searching and test values, just set up your search and display the Search Syntax section.

Once you have the syntax you want, copy that into the workflow activity and just replace the test value with the workflow token(s).

0 0
replied on July 13, 2021

Ok, now im having issues with my workflow.   

Retrieve Business Process Variables: This workflow does not appear to be started by Forms. The Forms instance id was not specified or was empty. 

The Search Repository No entry was found.

Search Repository Search command argument cannot be null or empty.
Parameter name: command

vr4.JPG
vr4.JPG (40.27 KB)
0 0
replied on July 13, 2021

For the first issue, are you running this manually, or are you testing it by submitting the form and running that process?

For the second issue, it's probably related to not being able to retrieve the form data but it's hard to say without knowing what you put in your Search Activity configuration.

 

0 0
replied on July 13, 2021

For the first issue I'm running this manually and for the second issue now I try this get but this time it like this

VR5.JPG
VR5.JPG (28.55 KB)
0 0
replied on July 13, 2021

If you run the workflow manually, then that error message is correct; it was not started by Forms therefore it has no Instance Id or Submission Id.

Both required in order for the Retrieve Business Process Variables activity to retrieve the data from Forms.

Think of it this way; if you run the workflow manually, how would it know which form instance to pull the data from?

You can input those values manually for testing purposes, by going into the advanced setting for the activity, but it can't work without that information.

1 0
replied on July 14, 2021 Show version history

Hey Jason, how about we do a walkthrough on how to setup my workflow all I'm trying to do is when I run my forms to the  repository and when I go to it I would like the see some of the text to my form goes into the template??

 

Is there a better workflow than the one I create??

0 0
replied on July 14, 2021

Or can you show me where I can added the Instance Id or Submission Id??

0 0
replied on July 14, 2021

When you select the Retrieve Business Process Variables activity in the workflow designer, look in the top right of the Properties pane and there will be a gear icon.

That is where you can enter manual or token values. However, you'll need to switch that back to the default settings when you run it from Forms.

See "Advanced Properties" and "Process Instance" on the following pages

Retrieve Business Process Variables (laserfiche.com)

Process Instance (laserfiche.com)

0 0
replied on July 14, 2021

Okay, I did Properties pane on the Retrieve Business Process Variables and switch it back to the default settings what next??

vr9.JPG
vr9.JPG (24.18 KB)
0 0
replied on July 14, 2021

I'm not entirely sure what you're asking.

If you are trying to initiate this workflow manually from the designer, then you need to enter the Instance Id and Submission Id so the workflow will know which instance to use to retrieve the data.

If you are running it by just running the Forms process, then the default settings are correct and the Forms instance will be passed in automatically.

I would suggest reading through the documentation links I provided to get a better understanding of what this activity is doing and how it works.

0 0
replied on July 14, 2021

Okay, my bad I got confuse ok back to the  Properties pane on the Retrieve Business Process Variables do I need a  Input Parameter on both Instance Id and Submission Id???

0 0
replied on July 14, 2021

Also Jason, let me explain what Im look for im creating a workflow that connect with my laserfiche forms and connect with my template in the repository and capture all the info from the forms and it automatic put into the template something like this for example

VR8.JPG
VR8.JPG (69.1 KB)
0 0
replied on July 14, 2021

If a workflow is configured with "Started by Laserfiche Forms" then the Instance Id and Submission Id will be provided as input parameters automatically, no additional configuration is needed beyond the default settings.

However, as Miruna mentioned in your other posts, I'm not sure you even need to use workflow. If all you are trying to do is populate the template and fields with form data then you can do that from the Save to Repository task in the Forms process.

0 0
replied on July 14, 2021

I understand what Miruna saying but I just want to try it to see if it is possible and the next question is about the Search Repository on enter the syntax what other formula besides {[]:[Form ID]="%(BP Instance ID)"} ??

0 0
replied on July 14, 2021

What about lookup rules where does it fit in the workflow??

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

Sign in to reply to this post.