Add actions to a rule

You can use Actions to specify the agent that needs to be triggered based on the condition and its return value. You can also define parameters or additional environment variables that need to be passed to the agent. You can use Actions to trigger both in-process and external agents.

  1. On the Edit Rule page, click Edit to the right of the Action heading.
  2. The Action Editor window is displayed.
  3. Depending on the type of agent you want to invoke, do one of the following:
    • Click the External Agents tab
    • Click the In-process Agents tab
  4. In the Clause Editing pane, enter values for the appropriate options.
    • Execute After: Type the sequence number of the agent after which the new agent must be invoked. Use this option to sequence the agents if a dependency is required. Each agent is listed with a sequence number in the Editor window.
    • Stream Access: Select this check box to allow the agent read or write access to the data stream between the Transaction Manager server and the SecureTransport Server. When multiple agents are being executed at a time, it is necessary to define agents that require read or write access to the data stream between the Transaction Manager server and the SecureTransport Server. For example, File Upload or File Download events need to access the read or write access data stream of the SecureTransport Server.
  5. For External Agents:
    • Command Line: Specify a script written in a scripting language or environment such as Perl that can be called through a shell mechanism. For details on installing the scripts, refer to the SecureTransport Developer’s Guide .
    • You can specify the script in the Command Line as shown in the following example:
    •    "${FILEDRIVEHOME}/bin/agent/dumpenv"
    • Environment Variables: Specify environment variables that are necessary for the agent to execute correctly. Environment variables are comma separated name=value pairs.
  6. For In-Process Agents:
    • Agent Class Name: Select an in-process agent function installed on the SecureTransport Server. For details on installing in-process, refer to the SecureTransport Developer’s Guide .
    • Invocation Parameters: Specify the parameters to be passed to the in-process agents at runtime. They are defined as name-value pairs. Use commas to separate multiple parameters.
  7. Provide the necessary information and do one of the following:
    • Click Add External Agent if you are adding an external agent.
    • Click Add In-process Agent if you are adding an in-process agent.

The agent is displayed in the Composed Results pane of the Action Editor. All the agents are numbered to allow relative sequencing between actions.

Related topics:

Related Links