Set a variable

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

Procedure

  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 for the parameter. Values can be variables or constants.
    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 com.snc.sw.util.HttpInvokerUtil.post(ctx, ${target_url}, ${postJSON},'application/json' ,${ci_type});) $postResult
    For Unix OS: EVAL(return com.snc.sw.util.UnixInvokerUtil.post(ctx, ${target_url}, ${postJSON},'application/json' ,${ci_type});)

Example

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