The Scenario Manager’s configuration file is located in your config path at /atg/scenario/scenarioManager.xml. You can add a new action to this configuration by creating a file with the same name in your localconfig directory. Below is an example of a scenarioManager.xml file that you would have to define in order to add the test action.

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE process-manager-configuration
        PUBLIC "-//Art Technology Group, Inc.//DTD Process Manager//EN"
        'http://www.atg.com/dtds/processmanager/processmanager_1.0.dtd'>

<process-manager-configuration>

  <action-registry>
    <action>
      <action-name>
        Log Info
      </action-name>
      <action-class>
        test.scenario.LogAction
      </action-class>
      <description>
        prints out information about the action's context and parameters
      </description>
      <action-execution-policy>
        individual
      </action-execution-policy>
      <action-error-response>
        continue
      </action-error-response>
      <action-parameter>
        <action-parameter-name>
          logString
        </action-parameter-name>
        <action-parameter-class>
          java.lang.String
        </action-parameter-class>
        <required>
          true
        </required>
        <description>
          a string value to evaluate and display
        </description>
      </action-parameter>
      <action-parameter>
        <action-parameter-name>
          logInteger
        </action-parameter-name>
        <action-parameter-class>
          java.lang.Integer
        </action-parameter-class>
        <required>
          true
        </required>
        <description>
          an integer value to evaluate and display
        </description>
      </action-parameter>
    </action>
  </action-registry>

</process-manager-configuration>

The action specification contains the action’s name, its class (which must implement the atg.process.action.Action interface), and its description. In addition, you must set two other important properties for your action in these tags: