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

Question

Question

Workflow Started by Business Process Detecting the Business Process Name

asked on July 14, 2020

Hi all,

Is there any way for a workflow to detect what business process started it?  I would like to be able to use the same workflow to perform similar tasks for multiple "Forms" business processes, calling the proper "Retrieve Business Process Variables" task in Workflow depending on which process called it.  Can it be done?  

0 0

Answer

SELECTED ANSWER
replied on July 14, 2020

Hi Eric-

There are a couple of ways to handle this. The lazy way (my preferred method) is to just ensure that the variable names WF is retrieving are identical across forms. Pulling from a different process won't cause issues so long as the variables you want are there.

To be more thorough/safer, yes, you can get at the name of the Forms process that started the workflow. To do this

  1. Configure the workflow as being "Started by Laserfiche Forms". You'll see that option on the right when you have no activities selected (screenshot below).
  2. This will give you a bunch more tokens to work with, under Input Parameters, including BP Name

 

2 0

Replies

replied on July 14, 2020

In the Workflow Designer, look in the properties pane for the workflow itself (click anywhere in the white space on the canvas in the middle to get the right pane to load the workflow properties). Then click "View workflow properties" towards the bottom. You should see a checkbox labeled "Started by Laserfiche Forms". Check it and then you'll get tokens for various properties of the Forms process.

1 0
replied on July 14, 2020

Fantastic!  Thanks to both of you for your replies.  :-)

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

Sign in to reply to this post.