Executing Actions as an Administrator

Many business classes include one or more actions that users can execute by accessing a form associated with the business class and then selecting the desired action. Administrators as well may need to execute business class actions. For administrators, there are the following options for executing actions:

  • Access the appropriate form and select the desired action just as regular users do.

  • Define and run a job for a specific business class and action.

    In this method, you create a job on the Job form to specify which action to run, and then select the Run Stream option for the job. The Run Stream option is itself an action that you are using to run the action for a different business class.

  • Define a set of jobs, place them in a job stream, and run the stream.

    In this method, you define the jobs, and then on the Job form you define a job stream and assign the jobs to that stream. You can then select the Run Stream option.

  • Use execaction to execute an action or actions by specifying the data area, business class, action and any other needed parameters and data at the command line.

    In this method, you provide directly in the command all the information needed to perform the action, such as the data area, business class, action, and the fields and their values. It is possible to construct command line arguments such that you perform a single action or such that you perform multiple actions.

  • Use execaction to execute the RunStream action for a job or a job stream.

    In this method, you define one or more jobs for business classes and actions, and, optionally, a job stream containing those jobs. You then use execaction to call the RunStream action for the job (or, optionally, the job stream) whose actions you want to perform.

  • Use execaction to execute an action or actions by referring to a file.

    In this method, you define a data file that contains all the information to perform one or more actions, and then you run execaction with the option to use the data file. It is possible to construct the data file such that you perform a single action or such that you perform multiple actions.

Note: 

You can also call execaction from a script and it will return a 0 for success and a 1 for failure.