Forcing the completion of an activity
Activities in long-running processes can sometimes encounter
faults. If these faults are not caught by a fault handler in the enclosing
scope and the associated activity template specifies that the activity
stops when an error occurs, the activity is put into the stopped state
so that it can be repaired. In this state, you can force the completion
of the activity.
About this task
You can also force the completion of activities in the running state if, for example, an activity is not responding.
Additional
requirements exist for certain types of activities.
- Human task activities
- You can pass parameters in the force-complete call, such as the message that should have been sent or the fault that should have been raised.
- Script activities
- You cannot pass parameters in the force-complete call. However, you must set the variables that need to be repaired.
- Invoke activities
- You can also force the completion of invoke activities that call an asynchronous service that is not a subprocess if these activities are in the running state. You might want to do this, for example, if the asynchronous service is called and it does not respond.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15