Undeploying BPEL process and human task applications, using an administrative command

Using the bpcTemplates.jacl script provides an alternative to the administrative console for undeploying applications that contain BPEL processes or human tasks.

To undeploy an application that contains BPEL processes or human tasks, the following conditions must apply:

The following steps describe how to use the bpcTemplates.jacl script to undeploy applications that contain BPEL process templates or human task templates.


Procedure

  1. If there are still process instances or task instances associated with the templates in the application that you want to undeploy perform one or both of the following:

    • Use the Business Process Choreographer Explorer to delete the instances.

    • In cases where you are sure that no other BPEL processes depend on the process templates that are defined in the application you want to undeploy, you can use the -force option.

      CAUTION:

      If you use the script with this option, it deletes any instances that are associated with the templates, all of the data that is associated with any running instances, stops the templates, and undeploys the application in one step. Use this option with extreme care.

  2. 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

  3. Stop the templates and undeploy the corresponding application.

    On Windows platforms, enter:

     INSTALL_ROOT\bin\wsadmin -f bpcTemplates.jacl 
                                  -uninstall  application_name
                                 [-force]

    On Linux and UNIX platforms, enter:

     INSTALL_ROOT/bin/wsadmin -f bpcTemplates.jacl 
                                  -uninstall  application_name
                                 [-force]                             

     INSTALL_ROOT/bin/wsadmin.sh -f bpcTemplates.jacl 
                                  -uninstall  application_name]
                                 [-force]

    Where:

    -uninstall application_name

    This specifies the name of the application to be undeployed. Do not use this option for applications that were deployed using the Process Center.

    -force

    This option causes any running instances to be stopped and deleted before the application is undeployed. Use this option with care because it also deletes all of the data associated with the running instances.


Results

The application is undeployed.

Deploying BPEL process and human task applications


Related tasks:
Undeploying BPEL process and human task applications, using the administrative console