Set a variable

Use the Set variable operation to apply a value to a variable.


  1. On the Identification or Connectivity Sections form, select Set variable from the Operation list.
  2. Fill in the fields, as appropriate.
    Field Description
    Value Specify the value that you want to assign to the parameter. You can use strings or variables. You can also use values from temporary tabular variables: from a specific field or a specific column in a table sequentially, starting from the first row. For more information, see Useful shortcuts in Pattern Designer.
    Parameter Specify the variable or table name.
    To consume web services, use EVAL statements in the Value field.
    For Value example Parameter
    HTTP Get For Windows OS: EVAL(return com.snc.sw.util.HttpInvokerUtil.get(ctx, ${target_url}, ${ci_type});) $getResult
    For Unix OS: EVAL(return com.snc.sw.util.UnixInvokerUtil.get(ctx, ${target_url}, ${ci_type});)
    HTTP Post

    The web service may require a POST request with some data to determine the right information to return. Most common post data types are REST/JSON and SOAP.

    For Windows OS: EVAL(return, ${target_url}, ${postJSON},'application/json' ,${ci_type});) $postResult
    For Unix OS: EVAL(return, ${target_url}, ${postJSON},'application/json' ,${ci_type});)


The following configuration is an example of the Set variable operation.
Field Value
Hierarchy Applications > Application Servers
CI Type WebSphere EAR
Pattern J2EE EAR on Linux
Section Identification for J2EE EAR entry point.
Step number and Name 1. sets the ear name