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

Question

Question

Timing and Behavior of Input and Output Parameters

asked on October 12, 2016 • Show version history

We have a situation where there are a series of complex processes chained together.  My question is this:  When using Input parameters, can they be passed into a rule from multiple points?

Example:

Workflow Rule 1 invokes Workflow Rule 2, using an Input Parameter from 1 to 2.

Workflow Rule 2 invokes Workflow Rule 3, using an Input parameter from 2 to 3.

Now 2 needs to know if 3 was successful. So, we created a second Input parameter in Rule 2 to accept the results of Rule 3, much like a function call.

Rule 3 has a matching Output parameter, and we populate the token.  But the value never shows up in Rule 2. 

Do we just need to find another way around this?

BTW, this thread:

http://answers.laserfiche.com/questions/49010/Workflow-Output-Parameters--Confused-about-Use-Assign-Token-Values-activity-to-set-the-values-of-output-parameters-checkbox

has an excellent discussion on using Parameters.

 

1 0

Answer

SELECTED ANSWER
replied on October 12, 2016

Input parameters are used when a workflow starts. Since Workflow 2 invokes Workflow 3, Workflow 3 cannot set input parameters in Workflow 2. However, Workflow 3 exposes its output parameters as tokens in Workflow 2 if Invoke Workflow is set to wait for its completion.

0 0
replied on October 13, 2016 • Show version history

Thanks, Miruna -

I just checked, and you are right.  For anyone looking to address this issue, the format to retrieve tokens from an invoked workflow is:

%(Name of Invoke Workflow Task_Invoked Workflow Output Parameter)

Example: We have Invoke Workflow Task that invokes a workflow named WaitfortheCTN.  WaitfortheCTN has an output parameter named CTN_Result.  The token in the calling rule would therefore addressed as:  

%(WaitfortheCTN_CTN_Result)

 

PS: Workflow is so cool - in case I never mentioned that.

0 0

Replies

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

Sign in to reply to this post.