--- title: "Abort" slug: "core-abort-actor" updated: 2026-03-31T06:15:29Z published: 2026-03-31T06:15:29Z canonical: "docs.lobstersoftware.com/core-abort-actor" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Abort > [!NOTE] > Event action – Abstract > > **Purpose**: Aborts [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration) immediately with or without displaying an *error message* and performs a *rollback* for the transaction. In a [Client Workflow](/v1/docs/en/frebehav-client-workflow) behavior, an 'error information' object is passed to the *actions on* '*false*'. > > > [!TIP] > > Tooltip > > > > - **Usage**: Allows the abort of event processing in an event handler or client [Client Workflow](/v1/docs/en/frebehav-client-workflow) behavior. > > - **Parameter**: > > - The **Error type** parameter controls the output of the *error message* in an event handler. In the [Client Workflow](/v1/docs/en/frebehav-client-workflow) it is only reflected in the `errorLevel` field of the 'error information' object. > > - A *Resource name* from the *Resource bundle* `error` can be specified as the **Error code** to output the corresponding localization as an *error message*. > > - The **Default error message** defines by *direct input* or as a *value configuration* text that appears as an error message if no **Error code** is specified or no localization is defined for it. > > - A definable **Parameter** optionally replaces associated *placeholders* (`{0}`, `{1}`, ...) in the text of the *error message*. > > - **Output**: > > - In [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration): Notification (according to **Error type**) and transaction abort/rollback. > > - In the [Client Workflow](/v1/docs/en/frebehav-client-workflow): Passing of an 'error information' object to the *Actions on "false"*. ![images/download/attachments/177911015/image-2024-9-12_14-53-30-version-1-modificationdate-1726145610177-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-12_14-53-30-version-1-modificationdate-1726145610177-api-v2.png) Executing the [Abort](/v1/docs/en/core-abort-actor) event action terminates event processing immediately. Depending on the context, this has different effects: | Effect | in [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration) | in a [Client Workflow](/v1/docs/en/frebehav-client-workflow) behavior (form) | | --- | --- | --- | | **Workflow** | An abort of event processing and (as far as applicable) *rollback* of the transaction | Aborts the [Client Workflow](/v1/docs/en/frebehav-client-workflow) behavior and executes the **Actions on "false"** with an 'error information' (`ErrorInfo`) as return value. | | **Feedback** | Depending on the **Error type** (`AbortType`) parameter, an error message is displayed or 'suppressed' in the mimic for the selected type (see 'Parameters', below). | No message appears independent of the selected **Error type**. **NOTE:** Notification can be done either by a [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action executed in advance in the [Client Workflow](/v1/docs/en/frebehav-client-workflow) or by [Show alert](/v1/docs/en/freaction-show-alert) action under the **Actions on "false"**. In the process, `ErrorInfo` object fields can be evaluated, some of which are assigned depending on the parameters for the [Abort](/v1/docs/en/core-abort-actor) event action. | The text for the *error message* (`errorText`) that may be output is determined by one of the following methods: - *Direct input* in the **Default error message** parameter (without regard to the [Current locale](/v1/docs/en/core-current-locale-resolver)). - *Value configuration* for the **Default error message** parameter (can be localized via the [Value from localization](/v1/docs/en/core-resource-resolver) resolver, if necessary). - *Reference* to an **Error code** localized in the [Localization](/v1/docs/en/core-localization-entry) (*Bundle*: `error`, *Resource*: **) or via [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides) localization. Optionally, the configuration can define a **Parameter** that replace *placeholders* (`{0}`, `{1`, ...) in the **Default error message** or localization text for the specified **Error code** at runtime, if available. **NOTE:** The values of the **Parameter** can be determined either by static *direct input* or by *value configuration*. If required, the [Value from localization](/v1/docs/en/core-resource-resolver) resolver can also be used here to return localized texts as parameter value. ## Parameter ### Error type The optional selection for the **Error type** parameter determines in [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration) and in a [Client Workflow](/v1/docs/en/frebehav-client-workflow) the value for the `errorLevel` field (see table column) in the 'Error information' object (`ErrorInfo`) returned on the abort. - The choices for the **Error type** are predefined by the static enumeration 'Abort type' (`AbortType`). - Without selection the *default* **Error type** 'Process exception' (`ProcessException`) is triggered or the `errorLevel` value `1` is assigned. | Error type | Error level | Description | Display | | --- | --- | --- | --- | | **Semantic exception** (`SEMANTIC_EXCEPTION`) | **0** | The *error message* is displayed as an information dialog, which can be closed by clicking the 'OK' button or the 'X' icon in the upper right corner. | ![images/download/attachments/177911015/image2023-2-9_11-44-36-version-1-modificationdate-1726144516817-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_11-44-36-version-1-modificationdate-1726144516817-api-v2.png) | | **Process exception** (`PROCESS_EXCEPTION`) | **1** | The *error message* is displayed as an error dialog, which can be closed by clicking the 'OK' button or the 'X' icon in the upper right corner. By clicking on 'More', details of the error (or abort) can be displayed. Among other information, the text value of the **Error code** parameter (if used) appears there. By clicking the 'Create bug report' button, this data can also be downloaded as an error report (html document). | ![images/download/attachments/177911015/image2023-2-9_11-45-57-version-1-modificationdate-1726144516812-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_11-45-57-version-1-modificationdate-1726144516812-api-v2.png) | | **Notification: Success** (`NOTIFICATION_SUCCESS`) | **2** | On the right side of the screen the *error message* appears for a few seconds as a *notification* of the 'Success' type with the title 'Info'. | ![images/download/attachments/177911015/image2023-2-9_11-51-17-version-1-modificationdate-1726144516792-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_11-51-17-version-1-modificationdate-1726144516792-api-v2.png) | | **Notification: Warning** (`NOTIFICATION_WARNING`) | **3** | On the right side of the screen the *error message* appears for a few seconds as a *notification* of the 'Warning' type with the title 'Warning'. | ![images/download/attachments/177911015/image2023-2-9_11-52-5-version-1-modificationdate-1726144516788-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_11-52-5-version-1-modificationdate-1726144516788-api-v2.png) | | **Notification: Error** (`NOTIFCATION_ERROR`) | **4** | On the right side of the screen the *error message* appears for a few seconds as a *notification* of the 'Error' type with the title 'Error'. | ![images/download/attachments/177911015/image2023-2-9_11-52-31-version-1-modificationdate-1726144516784-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_11-52-31-version-1-modificationdate-1726144516784-api-v2.png) | | **Notification: Info** (`NOTIFICATION_INFO`) | **5** | On the right side of the screen, the *error message* appears for a few seconds as a *notification* of the 'Info' type with the title 'Info'. | ![images/download/attachments/177911015/image2023-2-9_11-53-17-version-1-modificationdate-1726144516780-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_11-53-17-version-1-modificationdate-1726144516780-api-v2.png) | | **Suppress** (`SUPPRESS`) | **6** | The workflow canceled without any notification. | (no feedback for the user) | **NOTE:** - Regardless of the selection for the **Error type**, the execution of the [Abort](/v1/docs/en/core-abort-actor) event action at runtime is always evaluated as a 'Process exception'. In the context of [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration), a *rollback* is therefore always triggered. - The configured feedback does not appear when running [Tests](/v1/docs/en/core-testing-set). Instead, an 'error information' object (`ErrorInfo`) always appears as the result. The **Error type** will be reflected in its `errorLevel` field (see also table column above). - If the [Abort](/v1/docs/en/core-abort-actor) event action is executed within a [Try/Catch actor](/v1/docs/en/core-try-catch-actor), the same 'error information' object (`ErrorInfo`) is available in the 'Catch' block. - If the aborted event processing was triggered by a Lobster_data profile (e.g. an [Import](/v1/docs/en/orchestration-integration-import)), a 'Process exception' is always reported there. - If a *notification* of any type is displayed as feedback, a mouse click on the notification opens the *error* *message* as a dialog as for the **Error type** 'Process exception'. ### Error code If a static text value is entered for the optional **Error code** parameter, a check is made at runtime to determine whether a localization entry exists for this text as a *Resource name* in the `error` *bundle* ([Localization](/v1/docs/en/core-localization-entry) or [Company specific localization](/v1/docs/en/core-owner-based-localization-overrides)). - If a localization entry exists for the **Error code** in the `error` *bundle*, the localization for the [Current locale](/v1/docs/en/core-current-locale-resolver) from this localization entry is used as the *error message*. The **Default error message** parameter is then ignored. - If the **Parameter** resolver is configured, it is mapped to *placeholders* in the localization text for the error code, if necessary. Example: The **Error code** `CORESYSTEM_BaseDataManager_failedToDelete` is localized by default in the [Localization](/v1/docs/en/core-localization-entry) as follows: | Resource bundle | Resource name | English | German | ... | | --- | --- | --- | --- | --- | | `error` | `CORESYSTEM_BaseDataManager_failedToDelete` | `Failed to delete: {0}` | `Löschen nicht möglich: {0}` | | The error message can be individualized via the placeholder `{0}` per **Parameter**: | Configuration: ![images/download/attachments/177911015/image-2024-9-12_14-57-46-version-1-modificationdate-1726145866268-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-12_14-57-46-version-1-modificationdate-1726145866268-api-v2.png) | Runtime example: [Current locale](/v1/docs/en/core-current-locale-resolver)*: 'English'* *![images/download/attachments/177911015/image2023-2-1_17-15-22-version-1-modificationdate-1726144516934-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-1_17-15-22-version-1-modificationdate-1726144516934-api-v2.png)* Runtime example: [Current locale](/v1/docs/en/core-current-locale-resolver)*: 'Deutsch'* *![images/download/attachments/177911015/image2023-2-1_17-5-38-version-1-modificationdate-1726144516943-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-1_17-5-38-version-1-modificationdate-1726144516943-api-v2.png)* | | --- | --- | **NOTE:** In practice, instead of the simple static text ('Sorry!') in the first **Parameter** (`{0}`), a *value configuration* would certainly be more likely to be encountered, for example to specify which object could not be deleted and/or why. ### Default error message In the **Default error message** parameter, a *static plain text* can be entered by *direct input* or – after clicking on the small gray arrow at the bottom left – a *value configuration* can be made: | *Direct input* | *Value configuration* | | --- | --- | | ![images/download/attachments/177911015/image-2024-9-12_15-0-18-version-1-modificationdate-1726146018104-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-12_15-0-18-version-1-modificationdate-1726146018104-api-v2.png) | ![images/download/attachments/177911015/image2023-2-9_12-1-33-version-1-modificationdate-1726144516763-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-1-33-version-1-modificationdate-1726144516763-api-v2.png) | | Runtime example: with ***Error type*** 'Notification: Warning'. ![images/download/attachments/177911015/image2023-2-9_12-2-8-version-1-modificationdate-1726144516758-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-2-8-version-1-modificationdate-1726144516758-api-v2.png)![images/download/attachments/177911015/image2023-2-9_12-2-37-version-1-modificationdate-1726144516754-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-2-37-version-1-modificationdate-1726144516754-api-v2.png) | Runtime example: with ***Error type*** 'Notification: Warning' | The **Default error message** defines the text that will be output as an *error message* or appear in the `errorText` field exactly when the following condition is met: - No **Error code** was specified or no localization entry is found for the `error `*bundle* whose *Resource name* exactly matches the specified **Error code**. If the text entered statically or determined at runtime by *value configuration* contains *placeholders*, these can be filled by a **Parameter** (see below). **NOTE:** - If the **Error code** returns a locale entry for which the locale for the [Current locale](/v1/docs/en/core-current-locale-resolver) is an empty string, the empty string will be set as the *error message* instead of the **Default error message**. ### Parameter ![images/download/attachments/177911015/image-2024-9-12_15-7-39-version-1-modificationdate-1726146458680-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-12_15-7-39-version-1-modificationdate-1726146458680-api-v2.png) Optionally, definitions for a **Parameter** can be added to the configuration by clicking on the ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(22).svg) icon. Each **Parameter** defines a text, for the *placeholder* in the text for the *error message*, which refers to the index number of the parameter in the configuration. - The first **Parameter** addresses the placeholder `{0}`, the next addresses the placeholder `{1}`, and so on. - The same **Parameter** can be addressed multiple times in the *error message* by using the *placeholder* repeatedly. *Placeholders* can be included in the localization text for an **Error code** (see above) as well as in the **Default error message** (see above). For each **Parameter** a *static plain text* can either be *directly input* or – after a click on the small gray arrow in the lower left corner – a *value configuration* can be made. In the following examples, both options (*direct input*, *value configuration*) are used for one **Parameter** each. | *Default error message with placeholders in static text* | Error code with placeholders in localization text | | --- | --- | | **NOTE:** The [Object property](/v1/docs/en/core-property-resolver) resolver for the first parameter returns the field 'ID' (`id`) of the *reference object* in the context of the [Abort](/v1/docs/en/core-abort-actor). ![images/download/attachments/177911015/image2023-2-9_12-13-57-version-1-modificationdate-1726144516747-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-13-57-version-1-modificationdate-1726144516747-api-v2.png) | Localization for error code:: (according to `error` *bundle* in [Localization](/v1/docs/en/core-localization-entry)) Access denied: Can't access {0} for {1} ![images/download/attachments/177911015/image2023-2-9_12-16-41-version-1-modificationdate-1726144516738-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-16-41-version-1-modificationdate-1726144516738-api-v2.png) | | Runtime example: with ***Error type*** 'Notification: Error' ![images/download/attachments/177911015/image2023-2-9_12-14-53-version-1-modificationdate-1726144516742-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-14-53-version-1-modificationdate-1726144516742-api-v2.png) | Runtime example: with ***Error type*** 'Notification: Error' ![images/download/attachments/177911015/image2023-2-9_12-17-0-version-1-modificationdate-1726144516734-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-17-0-version-1-modificationdate-1726144516734-api-v2.png) | **NOTE:** *Direct input* of the text 'DELETE' may make sense in the left case, because the error message as a whole does not consider localization. On the right, however, the use of 'DELETE' is critical if a [Current locale](/v1/docs/en/core-current-locale-resolver) other than 'German' is used. Because then the error message would be localized but not the text for the `Platzhalter` `{1}`. > [!NOTE] > Special case > > --- > > If the *value configuration* for a **Parameter** returns the value of a dynamic enumeration as a whole, the localization for the [Current locale](/v1/docs/en/core-current-locale-resolver) will EXCEPTIONALLY take effect in the context of [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration) as well. ## Examples ### Simple use case: Cancel Client workflow without message In the context of a form (see [Portals](/v1/docs/en/portal-portal) or [Input forms](/v1/docs/en/base-entity-form)) a [Client Workflow](/v1/docs/en/frebehav-client-workflow) behavior should be aborted if the initially executed [Search (Event action)](/v1/docs/en/core-search-actor) does not return a result, which should access a user account (see [Users](/v1/docs/en/base-user)). Configuration: | The actions in the [Client Workflow](/v1/docs/en/frebehav-client-workflow) behavior are configured as shown on the right: - Initially, a [Search (Event action)](/v1/docs/en/core-search-actor) is executed whose return value is assigned to the `searchResult` variable. - The subsequent [If then else](/v1/docs/en/core-if-then-else-actor) event action checks whether the search was successful. This is done by checking the `searchResult` variable in an [Entity property rule](/v1/docs/en/core-entity-property-rule) with a negated [Is empty](/v1/docs/en/core-is-empty-matcher) compare type: - If the [Entity property rule](/v1/docs/en/core-entity-property-rule) is passed, the returned user account in the `searchResult` variable is passed to the [Execute with](/v1/docs/en/core-with-actor) event action in the *then* branch below. Since further details about the processing are not to be discussed here, it appears collapsed in the image. - If the [Entity property rule](/v1/docs/en/core-entity-property-rule) is not passed because the `searchResult` variable is empty, the [Abort](/v1/docs/en/core-abort-actor) event action is executed in the *Else* branch on the right. **NOTE:** Parameterization of the [Abort](/v1/docs/en/core-abort-actor) event action is completely omitted here, since no notification takes place in the [Client Workflow](/v1/docs/en/frebehav-client-workflow) anyway and in the specific use case no **Actions on "false"** are provided that would access the 'Error information' object. | ![images/download/attachments/177911015/image2023-2-9_12-27-25-version-1-modificationdate-1726144516728-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-27-25-version-1-modificationdate-1726144516728-api-v2.png) | | --- | --- | Runtime behavior: If the access to the 'searched' user account fails, the event processing within the [Client Workflow](/v1/docs/en/frebehav-client-workflow) behavior stops immediately: - If there are other [Event actions](/v1/docs/en/core-i-action-actor-configuration) configured below the [If then else](/v1/docs/en/core-if-then-else-actor) event action shown above, they will not be executed. - Also, at the [Client Workflow](/v1/docs/en/frebehav-client-workflow) behavior level (see [Behaviors](/v1/docs/en/frebehaviours)), the **Actions on "false"** are executed (if any) and not the **Actions on "true"**. - As *input value* (`$input`) an 'error information' object (`ErrorInfo`) is passed to the **Actions on "false"**, whose `errorLevel` field specifies the *default value* 1 for the **Error type** 'Process Exception' (`ProcessException`) due to the lack of selection for the **Error type** in the [Abort](/v1/docs/en/core-abort-actor) event action. **NOTE:** Via the 'error information' object as return value, a [Show alert](/v1/docs/en/freaction-show-alert) action can be executed in the **Actions on "false".** Configuration: | In the behavior with [Client Workflow](/v1/docs/en/frebehav-client-workflow) shown above, a [Show alert](/v1/docs/en/freaction-show-alert) action is set up under the **Actions on "false"** as shown on the right, which makes visible the error message triggered by the [Abort](/v1/docs/en/core-abort-actor): - The **Alert title** refers to the `errorLevel` field so that the **Error type** selected in the [Abort](/v1/docs/en/core-abort-actor) event action, if any, can be traced at least by its index number. - The **Alert message** is taken completely from the `errorText` field of the 'error information' object. - Since the **Type** can only be set statically – and not depending on the `errorLevel`, for example – 'Notification: Error' was selected here. Runtime example: ![images/download/attachments/177911015/image2023-2-9_12-30-42-version-1-modificationdate-1726144516724-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-30-42-version-1-modificationdate-1726144516724-api-v2.png) **NOTE:** The example takes into account the adjustments to the configuration for the [Abort](/v1/docs/en/core-abort-actor) event action in the [Client Workflow](/v1/docs/en/frebehav-client-workflow) shown below. | ![images/download/attachments/177911015/image2023-2-9_12-31-24-version-1-modificationdate-1726144516719-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-31-24-version-1-modificationdate-1726144516719-api-v2.png) | | --- | --- | | ![images/download/attachments/177911015/image2023-2-9_12-32-7-version-1-modificationdate-1726144516715-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-32-7-version-1-modificationdate-1726144516715-api-v2.png) | - The **Error type** 'Semantic exception' has an effect in the runtime example (top left) only in the **Alert title** as value `0` for the 'ERROR LEVEL' (see also note below). - The defined **Default error message** names the class ('User') relevant for the failed search indirectly, i.e. via a placeholder and a value configuration for a parameter. | **NOTE:** Although the **Error type** (or `errorLevel`) cannot be dynamically mapped to the selection for the **Type** in the [Show alert](/v1/docs/en/freaction-show-alert) action. However, if needed, depending on the `errorLevel` value, the 'Error information' object could be passed to one of several behaviors, in each of which a specific **Type** is used for the [Show alert](/v1/docs/en/freaction-show-alert) action. Only the appearance for the *default* **Error type** with the extended interaction options described above cannot be simulated this way. Configuration: | The condition configuration for the existing behavior ('userSearch') is adjusted as shown on the right: - Under **Actions on "false"**, a [Show alert](/v1/docs/en/freaction-show-alert) action is now no longer executed. Instead, three instances of the [Execute behavior](/v1/docs/en/freaction-execute-behaviour) action are created. Each instance refers to one of the behaviors only hinted at below ('abort_Exception', 'abort_Error', 'abort_Warning') by **Behavior name**, in each of which a [Show alert](/v1/docs/en/freaction-show-alert) action with specific characteristics is executed. - The **Value expression** in all cases is defined as the input value (`$input`), i.e. the 'error information' object returned by the [Client Workflow](/v1/docs/en/frebehav-client-workflow) on 'Abort'. - The check expression (**Only if check expression is true**) defines one specific condition each that must be met for the behavior named by **Behavior name** to be executed. The check expression in the image checks for the `errorLevel` value `3`. This `errorLevel` value is therefore linked to the call of the 'abort_Warning' behavior, which generates a corresponding message: Runtime example: *The* ***Error type*** *for the* [Abort](/v1/docs/en/core-abort-actor) *event action in the* [Client Workflow](/v1/docs/en/frebehav-client-workflow) *has been changed to 'Notification: Warning' so that the* `errorLevel` *value is* `3`*.*![images/download/attachments/177911015/image2023-2-9_12-38-5-version-1-modificationdate-1726144516707-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-38-5-version-1-modificationdate-1726144516707-api-v2.png) **NOTE:** The specific check expressions should be defined so that each `errorLevel` value always satisfies *exactly one* (or no) check expression, so that multiple messages do not appear at the same time. | ![images/download/attachments/177911015/image2023-2-9_12-37-26-version-1-modificationdate-1726144516711-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_12-37-26-version-1-modificationdate-1726144516711-api-v2.png) | | --- | --- | This type of 'case distinction' is only really useful if a [Client Workflow](/v1/docs/en/frebehav-client-workflow) contains multiple instances of the [Abort](/v1/docs/en/core-abort-actor) event action and these refer to the **Error type** that needs to be differentiated. **NOTE:** Comparable results can also be achieved by executing a [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action in the [Client Workflow](/v1/docs/en/frebehav-client-workflow) immediately before the [Abort](/v1/docs/en/core-abort-actor) event action, which is parameterized as an error message. Then the parameterization of the [Abort](/v1/docs/en/core-abort-actor) event action and the configuration of **Actions on "false"** may be completely unnecessary. ### More complex use case: Cancel event handling with/without message Each time an entity of the type 'Order' (see [Orders](/v1/docs/en/ord-order)) is saved, a variety of criteria are evaluated in order to automatically assign a subsequent working state in the workflow (see [Set current working state](/v1/docs/en/base-set-current-working-state-actor)), if necessary, depending on the *current* working state (see [Current working state rule](/v1/docs/en/base-current-working-state-rule)). Details of the workflow should not play a role here. However, the automatic switch to *certain* [Working state](/v1/docs/en/base-working-states) should only be executed if the user explicitly confirms this via a [User callback](/v1/docs/en/core-user-callback-actor). The following cases are to be distinguished: | Response to [User callback](/v1/docs/en/core-user-callback-actor) | Desired effect | Measures in event handling | | --- | --- | --- | | 'Yes' (confirmation granted) | Close transaction | *none* | | 'No' (confirmation explicitly rejected) | *Rollback* for transaction | [Abort](/v1/docs/en/core-abort-actor) (without message) | | No decision within the maximum waiting time | [Abort](/v1/docs/en/core-abort-actor) (with warning message) | Configuration: | As **Triggering events** should be selected the [Triggering events](/v1/docs/en/core-i-action-event) from the category [Working state (Events)](/v1/docs/en/base-working-state), which refer to [Working state](/v1/docs/en/base-working-states), whose assignment should be reconfirmed. --- The **Validating rule** here uses a [Check type](/v1/docs/en/core-check-type-rule) of the 'Order' type. --- The only **Action on passed rule** is configured as a [User callback](/v1/docs/en/core-user-callback-actor) event action as shown on the right: - Parameters for the query: - The **Title** is determined by static text ('CONFIRM?'). - As **Text** for the query, the working state to be confirmed is named, which is returned by the [Triggering event](/v1/docs/en/core-caused-event-resolver) value resolver. - A **Max. wait time (s)** of 10 seconds is specified. - Case distinction configuration: - No specific event actions are provided in the *Yes* branch. The current transaction is simply meant to be completed. - In the *No* branch, an [Abort](/v1/docs/en/core-abort-actor) event action is configured with the **Error** **type '**Suppress'. At runtime, a *rollback* is executed for the transaction. A user who explicitly presses the 'No' button does not receive explicit feedback about it. - In the *timeout* branch, an abort event action with the **Error type** 'Semantic exception' is configured, which informs the user via **Default error message** that a *rollback* is executed due to the *timeout* for the reconfirmation of the working state change. | ![images/download/attachments/177911015/image2023-2-9_13-36-11-version-1-modificationdate-1726144516704-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_13-36-11-version-1-modificationdate-1726144516704-api-v2.png) | | --- | --- | Runtime example: | [User callback](/v1/docs/en/core-user-callback-actor) | *Semantic exception* (*on timeout*) | | --- | --- | | ![images/download/attachments/177911015/image2023-2-9_13-37-49-version-1-modificationdate-1726144516690-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_13-37-49-version-1-modificationdate-1726144516690-api-v2.png) | ![images/download/attachments/177911015/image2023-2-9_13-39-43-version-1-modificationdate-1726144516685-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2023-2-9_13-39-43-version-1-modificationdate-1726144516685-api-v2.png) | | The static text in the **Title** is in English, so it matches the internal name for the *triggering* *event* (`FINISHED`). In contrast, the 'Yes' and 'No' buttons appear with the default locales for the [Current locale](/v1/docs/en/core-current-locale-resolver). | The user can let the 10 seconds waiting time pass without selecting 'Yes' or 'No' or to end the dialog by clicking on the 'X' (='No'). Then the message above appears. The predefined title and the 'OK' button are labeled with the localization for the [Current locale](/v1/docs/en/core-current-locale-resolver). The message appears, according to the configuration for the **Default error message** parameter (see above) in English. However, for the *placeholder* `{0}` in the message text, the applicable localization ('Finished') appears for the working state assigned by **Parameter** (`FINISHED`), which is provided by the [Triggering event](/v1/docs/en/core-caused-event-resolver) value resolver at runtime. Here the exception described in the 'Parameter' section (above) for the localization of dynamic enumeration values takes effect. | **NOTE:** A mixture of languages within the messages can only be avoided if all configurable content is consistently localized so that the [Current locale](/v1/docs/en/core-current-locale-resolver) applies to all text. Instead of static text, the [Value from localization](/v1/docs/en/core-resource-resolver) value resolver should be used in each case.