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

Question

Posted to Laserfiche Cloud

Question

Passing Parameters from Business Process Back to Invoking Workflow

asked on August 10, 2022

Hello,

I'm am currently developing a process for a customer which entails a workflow invoking a business process (passing one parameter in, which I have tested is working), waiting for the business process to complete (the "Wait for the invoked process to finish running before continuing to run the current workflow" box is checked), and a number of parameters being output from the business process on completion to the workflow.

I have setup the output parameters within the business process, and am able to see their tokens within the workflow (under the Invoke Business Process activity). However, whenever I try to use these tokens either by selecting them in the drop-down or using the token dialog, clicking on any of the tokens does not add them to the field.

This may very well just be a bug, but since the official documentation don't seem to mention these output variables I figured I would ask and see if their is anything wrong with how I have things configured here first.

 

The workflow

 

Details from the business process settings

 

The invoke business activity details

 

The tokens I'm seeing (none of which get added to the field when clicked (the "Destination" field in the "Move Entry" activity directly after the invoke)

0 0

Answer

SELECTED ANSWER
replied on August 11, 2022

Oh, completely missed that this is cloud. Sorry about that. You are correct, cloud Workflow can wait for business processes.

It's a bug caused by the double quotes in the Invoke activity's name. Reference ID 390939. Thanks for reporting it. Renaming the activity without double quotes will make the picker work again.

0 0

Replies

replied on August 11, 2022

Workflow cannot get parameters back from a business process it invoked. You could have the business process save the submission to the repository with the output parameters as metadata and have Workflow wait for that document to be created.

0 0
replied on August 11, 2022

Miruna,

It's clearly possible to pass values from invoked business process to workflow. When the "Wait for the invoked process to finish running before continuing to run the current workflow" box is checked, the output parameters specified within the business process show up as tokens under the invoke activity.

I created a compact testing workflow/business process combo just to test the passing of values from invoked BP back to workflow and it worked just fine.

I'm still not sure why my original workflow isn't letting me set the values in fields, but my current plan is to try and recreate the invoke and assign values activities, and if that doesn't resolve it I'll reach out to to LF support.

Business Process Details 

 

Workflow Details

0 0
SELECTED ANSWER
replied on August 11, 2022

Oh, completely missed that this is cloud. Sorry about that. You are correct, cloud Workflow can wait for business processes.

It's a bug caused by the double quotes in the Invoke activity's name. Reference ID 390939. Thanks for reporting it. Renaming the activity without double quotes will make the picker work again.

0 0
replied on August 12, 2022

Ah, got it. I'll remove the quote marks for now then.

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

Sign in to reply to this post.