Restarting a business process

You can restart a process instance that is in the finished, terminated, failed, or compensated state.

Before you begin

The caller must be an administrator of the process instance or a business process administrator.

Why and when to perform this task

Restarting a process instance is similar to starting a process instance for the first time. However, when a process instance is restarted, the process instance ID is known and the input message for the instance is available.

If the process has more than one receive activity or pick activity (also known as a receive choice activity) that can create the process instance, all of the messages that belong to these activities are used to restart the process instance. If any of these activities implement a request-response operation, the response is sent again when the associated reply activity is navigated.

Steps for this task

  1. Get the process that you want to restart.
    ProcessInstanceData processInstance = 
                        process.getProcessInstance("CustomerOrder");
  2. Restart the process instance.
    PIID piid = processInstance.getID(); 
    process.restart( piid );

    This action restarts the specified process instance.


(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)