Welcome Guest! Log in

Actions like SQL Operation or Wait for Files can be used to bind their results to other actions, but binding to sub-processes is not actually possible directly in Stambia.

The solution is to bind the action to the delivery of the sub-process, with values bound as parameters. Here is an example of how to achieve it.

Note that in this case there will be separate sessions for Master and each of Slave processes, with separate contexts, variables etc.

The Main Process


In this process the delivery will be executed for each row returned by the SQL Operation.

We created a parameter, named CUSTOMER_ID in which we set the value retrieved from the source with the :{column}: syntax.

We will be able to use this parameter in the delivery, like shown below.


The sub-process

In this example, the sub-process contains a basic scripting action.


We are publishing in it a variable at the root of the process, which contains the customer ID got from the bind:

__ctx__.publishVariable("~/Retrieved_ID","The Customer ID is ${~/CUSTOMER_ID}$");

We retrieve the value of the variable with ${<variable>}$ syntax.


Don't forget to publish the delivery of the sub-process:



You have no rights to post comments


Suggest a new Article!