Code

As stated previously, any valid public Cúram business method (BPO or entity) may be associated with an automatic activity in a workflow process and hence be invoked when that activity is executed. In general, a failure of such a method when an automatic activity is executed will cause the Workflow Error Handling strategy to be invoked. This may cause, for example, the activity associated with the failed method to be retried a number of times. Based on this fact, the methods associated with automatic activities should in general not throw exceptions. If the modeled exceptions feature is being used, then when a BPO method throws an exception and has been retried the required number of times, all of the transitions from the automatic activity that contain the Context_Error workflow data object are evaluated. If any of these transitions evaluate to true, their paths are followed and in this way, remedial processing may take place after the automatic activity BPO method failed.