IBM BPM, V8.0.1, All platforms > Administer applications and processes in the runtime environment > Manage processes and their components > Administer BPEL processes and human tasks > Administer BPEL process and task templates

Stopping and starting process and task templates using administrative scripts

Use an administrative script to stop and start all templates that belong to an application, as an alternative to the administrative console for stopping and starting process and task templates individually.

The following conditions must be met:

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 subdirectory where the administrative script is located.

    cd INSTALL_ROOT/ProcessChoreographer/admin

    cd INSTALL_ROOT/ProcessChoreographer/admin

    cd INSTALL_ROOT\ProcessChoreographer\admin

  2. To stop the process and task templates.
     INSTALL_ROOT/bin/wsadmin.sh -f bpcTemplates.jacl 
                                -stop  application_name

     INSTALL_ROOT\bin\wsadmin -f bpcTemplates.jacl 
                             -stop  application_name

     INSTALL_ROOT/bin/wsadmin.sh -f bpcTemplates.jacl 
                                -stop  application_name

    Where:

    -stop application_name

    Stops all templates that belong to the named application.

    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 business process definition (BPD) cannot start new instances of the BPEL process, and therefore it cannot run to completion.

  3. To start the process and task templates.
     INSTALL_ROOT/bin/wsadmin.sh -f bpcTemplates.jacl 
                                -start  application_name

     INSTALL_ROOT\bin\wsadmin -f bpcTemplates.jacl 
                             -start  application_name

     INSTALL_ROOT/bin/wsadmin.sh -f bpcTemplates.jacl 
                                -start  application_name

    The templates belonging to the application start. 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.

Administer BPEL process and task templates


Related concepts:
BPEL process administration—frequently asked questions
Authorization roles for BPEL processes
Authorization roles for human tasks
Lifecycle management of BPEL subprocesses