This topic applies only to the IBM Business Automation Workflow Advanced
configuration.

Stopping and starting process and task templates using administrative scripts

Draft comment:
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15
Use the manageTemplates.py administrative script to stop and start all templates that belong to an application. Using the script is an alternative to the administrative console for stopping and starting process and task templates individually.

Before you begin

The following conditions must be met:
  • Include the wsadmin -user and -password options to specify a user ID that has operator or administrator authority.
  • Run the script in connected mode, that is, do not use the wsadmin -conntype none option.
  • If you are not working with the default profile, use the wsadmin -profileName profile option to specify the profile.

About this task

The following steps describe how to use an administrative script to stop and start the process and task templates that belong to an application.

Procedure

  1. Change to the Business Process Choreographer admin directory.
    For Windows operating systemcd install_root\ProcessChoreographer\admin
    For Linux operating systemFor UNIX operating systemcd install_root/ProcessChoreographer/admin
  2. To stop the process and task templates that are in the application that is named application_name, enter the following command:
    For Windows operating systemwsadmin -f manageTemplates.py -stop application_name
    For Linux operating systemFor UNIX operating systemwsadmin.sh -f manageTemplates.py -stop application_name

    Existing instances of the process templates continue to run until they end normally, but you cannot create new instances from the stopped template. If the process is a subprocess, the creation of new instances depends on whether the subprocess is a peer or a child of the calling process. If the process template is part of a process application, the process cannot start new instances of the BPEL process, and therefore it cannot run to completion.

  3. To start the process and task templates that are in the application that is named application_name, enter the following command:
    For Windows operating systemwsadmin -f manageTemplates.py -start application_name
    For Linux operating systemFor UNIX operating systemwsadmin.sh -f manageTemplates.py -start application_name
    The templates that belong to the application start. For BPEL processes, you can use Business Process Choreographer Explorer to start process instances from the process templates, and work with task instances associated with the task template.