1)      Calling Actions Using Basic Syntax

In the Expert View, a call to an action with no parameters is displayed within the calling action with the following basic syntax:

RunAction ActionName, IterationQuantity

 

For example, to call the Select Flight action and run it one iteration:

RunAction “Select Flight”, oneIteration

 

For example, to call the Select Flight action and run it as many iterations as there are rows in the Data Table:

RunAction “Select Flight”, alliterations

 

For example, to call the Select Flight action and run it four iterations (for the first four rows of the Data Table):

RunAction “Select Flight”, “1-4”

Calling Actions with Parameters (Input parameters are listed before output parameters)

 

2)  An action call with parameters has the following syntax:

RunAction ActionName, IterationQuantity, Parameters

 

For example, suppose you call Action2 from Action1, and Action2 has one input and one output parameter defined.

The following statement supplies a string value of MyValue for the input parameter and stores the resulting value of the output parameter in a variable called MyVariable.

RunAction “Action2”, oneIteration, “MyValue”, MyVariable

The following statement uses the value defined for Action1’s Axn1_In input action parameter as the value for the input parameter, and stores the resulting value of the output parameter in Action1’s Data Table sheet in a column called Column1_out.

RunAction “Action2”, oneIteration, Parameter(“Axn1_In”), DataTable(“Column1_out”, dtLocalSheet)

 

In the following example, the first statement calls Action2 using its default input parameter value. The second statement uses the value defined for Action2’s Axn2_out output action parameter as the value for the call to Action3’s input parameter, and stores the resulting value of the output parameter in Action1’s Axn1_out so that the output value is available at the parent action level.

RunAction “Action2”, oneIteration

RunAction “Action3”, oneIteration, Parameter(“Action2”, “Axn2_out”), Parameter(“Axn1_out”)