--- title: "Profile call" slug: "core-call-profile-content-builder" updated: 2026-04-15T11:53:25Z published: 2026-04-15T11:53:25Z canonical: "docs.lobstersoftware.com/core-call-profile-content-builder" --- > ## 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. # Profile call *See also:* [Call profile (Event action)](/v1/docs/en/core-call-profile-actor) > [!NOTE] > Value resolver – Abstract > > **Purpose:** This converts the data of the *input value* into a "server XML", which is passed in a synchronous profile call to the profile identified by **Profile name**. > > > [!TIP] > > Tooltip > > > > - **Usage**: A "Server XML" is created from the *input value* and passed to the profile identified by the profile name, which is called synchronously. Additional **Variables** can optionally be passed to the profile. Further parameters concern the handling of the return value or errors during profile execution. > > - **Parameter**: > > - **Profile name**: Name of the profile to be called synchronously. > > - **Fail on profile error?**: This option determines whether an error within the processing of the profile should be treated as an error in the context of **Lobster Data Platform/Orchestration**. > > - **Parse result**: This option determines whether a text in XML format is expected as return value of the profile, which is interpreted in **Lobster Data Platform/Orchestration** as the "Server XML" of an object. When the input data for the profile relates to an *entity* defined in **Lobster Data Platform/Orchestration**, the target structure of the profile may be interpreted as an update for the volatile data of this entity (similar to an [Import](/v1/docs/en/orchestration-integration-import)). > > - **Use as string**: This option determines whether the value resolver should convert the return value of the profile into text or return it directly (e.g. as an object or binary data). > > - **Variables**: Value assignments for profile variables can be added or removed via the symbols ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(44).svg) and ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/forbidden.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/forbidden(21).svg). In the profile, the specified **Variable name** receives the prefix `MSG_CALL_`. > > - **NOTE:** Together with the profile call parameters, the values for the `VAR_PROCESS_XML` and `VAR_APPLY_TO_INPUT` profile variables may also be decisive for the effect of a profile call. As only a few of the many possible combinations are considered to be "suitable" for the specific application, we recommend reading the manual entry and intensive tests. ![images/download/attachments/201680000/image-2025-3-14_10-25-10-version-1-modificationdate-1748278510667-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-14_10-25-10-version-1-modificationdate-1748278510667-api-v2.png) The [Profile call](/v1/docs/en/core-call-profile-content-builder) value resolver converts the data of its *input value* into a "server XML" (see [Object to server xml](/v1/docs/en/core-server-xml-encode-resolver)) to pass it to the profile identified by **Profile name**. - *Optionally*, the values of the **Variables** `MSG_CALL` can be specified via value resolvers during the [Profile call](/v1/docs/en/core-call-profile-content-builder) (see "Configuration" for details). The profile is always called synchronously. The processing context of the value resolver is therefore interrupted until the called profile has been processed. - The processing context is canceled with an error message (`"Failed to call profile...`") if the called profile does not exist, which causes a *rollback* for the surrounding transaction. - If the called profile exists but is not "unlocked (active)", the processing context is immediately continued. The value resolver then returns "No value". - If an error occurs during the execution of the called profile or is specifically triggered, the processing context is canceled or continued (with "No value" as the return value of the resolver) depending on the selection for the **Fail on profile error?** option. A return value from the profile can *optionally* be considered, provided the profile serves an active response path for **Lobster Data Platform/Orchestration** – e.g. via [CronPassBackDataResponse (Responder)](/v1/docs/en/de-lobster-scm-dw-util-cron-pass-back-data-response). Depending on its parameters, the value resolver returns one of the following data types as a return value via the options **Parse result** and **Use as string** – possibly in interaction with further details within the profile configuration: - Action event content, e.g. with the binary data of a graphic or file supplied as the target file of the profile (in the `body` field). - A data object created by "parsing" a "server XML" target file of the profile (see [Server xml to object](/v1/docs/en/core-server-xml-decode-resolver)). - Text (string) obtained either directly from the target file returned by the profile or from the data object parsed from it. **CAUTION****:** From a strictly technical point of view, the [Profile call](/v1/docs/en/core-call-profile-content-builder) value resolver can be used like any other value resolver at all positions in configurations where a "value" is supposed to be resolved. However, with respect to performance, caution should be exercised when used in contexts where the value in question must be "resolved" particularly frequently. This applies especially to the definition of [Association criteria](/v1/docs/en/core-association-criteria), which are not configured as logic components (see [Association criteria of type 'Logical component'](/v1/docs/en/core-association-criteria-logical-components) type) and are therefore typically evaluated by the system with a very high frequency.. Special use case: update an entity passed as input value If the *input value* for the value resolver is an "entity" as a data object, a suitable XML target structure can be interpreted as an update for this entity, in the same way as the logic applicable for an [Import](/v1/docs/en/orchestration-integration-import). Whether this mechanism takes effect or not depends on the selection for the option **Parse result** – possibly in interaction with the profile variables `VAR_PROCESS_XML` und `VAR_APPLY_TO_INPUT` – with the following case distinction: | Option "Parse result**"** | VAR_PROCESS_XML | VAR_APPLY_TO_INPUT | Impact on input value (entity) | Return value (note below!) | | --- | --- | --- | --- | --- | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(30).svg) Parse result | `(Haken) true` or empty or not used | `(Haken) true` or empty or not used. | Update based on the target structure. | Updated entity (parsed). | | `(Fehler) false` | Input value unchanged. | Target structure (parsed as entity). | | `(Fehler) false` | *irrelevant* | Input value unchanged. | | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(24).svg) Do not parse result | `(Haken) true` | `(Haken) true` | Update based on the target structure. | Target structure as text(file) in the `body` of an "contact" object. | | *All alternative combinations* | Input value unchanged. | **NOTE:** If the **Use as string** option is set, then the return value specified in the table is subsequently converted to a string: - Then its string conversion appears instead of an entity, e.g. `5751:en.lobster.scm.order.bto.Order@658e4a20` for the data object of an "order" with the ID `5751` (and the *Java Object Id* `654e4a20`). - The string conversion for a "Content" object that contains the base64-encoded text of a target structure in the `body` provides the "server XML" for the target structure (and not for the updated entity, for example). **IMPORTANT:** While an [Import](/v1/docs/en/orchestration-integration-import) implicitly saves the updated entity, an update via the [Profile call](/v1/docs/en/core-call-profile-content-builder) value resolver only affects the volatile data object of the entity in question. If a [Profile call](/v1/docs/en/core-call-profile-content-builder) value resolver is used within the "Validating rule" of an event handling, the updated state is crucial for all subsequent rules, if any, and also for event actions executed when the validation is passed. Whether the update is saved, and therefore permanently effective, depends on the further context of the call. Within an event handling, the entity in question can be marked to be saved upon successful completion of the transaction via the [Save changes later](/v1/docs/en/core-merge-later-once-actor) event action, if required. Assignments to MSG_CALL variables in the profile: Information about the *applicable login context* (company, role, user) is automatically assigned to the MSG_CALL variables predefined in profiles – as usual for profile calls from **Lobster Data Platform/Orchestration**. These are automatically filled with values at runtime depending on the session"s login data as well as, if necessary, taking into account any adjustments made by the [Run as](/v1/docs/en/base-run-as-actor) event action: | **Data object** | **Value** | **Variable name** *(***Lobster Data Platform/Integration**`)` | **Data type** *(***Lobster Data Platform/Integration***)* | | --- | --- | --- | --- | | [Company of session](/v1/docs/en/base-session-company-account-value) | ID (`id`) of the company account | MSG_CALL_SCM_Company_id | `BigInteger` | | Company account data object as XML (text) | MSG_CALL_SCM_Company_xml | `String` | | [Role of session](/v1/docs/en/base-session-role-value) | ID (`id`) of the role | MSG_CALL_SCM_Role_id | `BigInteger` | | [User of session](/v1/docs/en/base-session-user-value) | ID (`id`) of the user account | MSG_CALL_SCM_User_id | `BigInteger` | | User name (`username`) | MSG_CALL_SCM_User_username | `String` | | Data object of the user account as XML (text) | MSG_CALL_SCM_User_xml | `String` | Optionally, value assignments can be configured for further **Variables** to provide additional data to the called profile. ## Configuration | In the **Profile name** parameter, the profile to be called must be identified by a static direct entry or by selecting an entry from the drop-down list activated via "Auto-complete". **NOTE:** In contrast to calling profiles in the context of forms, access control for profiles based on [Profile securities](/v1/docs/en/core-profile-security) is not guaranteed. All available profiles can be selected and executed. | ![images/download/attachments/201680000/image-2025-3-14_10-24-32-version-1-modificationdate-1748278510672-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-14_10-24-32-version-1-modificationdate-1748278510672-api-v2.png) | | --- | --- | | The **Fail on profile error?** option decides how event processing reacts to an error while executing the profile: - If the **Fail on profile error?** option is selected, then an error that occurs or is triggered during a profile execution will result in a `ProcessException` in the processing context of the value resolver. Within [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration), this always causes a *rollback* for the current transaction in addition to the output of an error message, unless errors are specifically handled in the context of the value resolver (([Try/Catch actor](/v1/docs/en/core-try-catch-actor)) or ignored across the board (e.g. when defining attachments in a send mail event action). --- - If the **Fail on profile error?** option is not selected (default), then the occurrence or triggering of an error in the course of profile execution does not lead to a cancellation. - In the event of an error, the return value of the value resolver depends on the origin of the error (see notes on the right) and the selection for the options **Parse result** and **Use as string**. | ![images/download/attachments/201680000/image-2025-3-14_10-23-49-version-1-modificationdate-1748278510684-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-14_10-23-49-version-1-modificationdate-1748278510684-api-v2.png) Notes on error handling: - If a `ProcessException` occurs or is triggered in the course of a profile call, the error message is always "Failed to call Profile: (...)". Details about the cause of the error can be found in the generated *error report* under "Caused by (...)". - The *error report* for a `ProcessException` can optionally be downloaded in the message dialog or displayed by clicking on "More" and evaluated with a browser search, if necessary. --- ![images/download/attachments/201680000/image-2025-3-14_10-23-31-version-1-modificationdate-1748278510686-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-14_10-23-31-version-1-modificationdate-1748278510686-api-v2.png) Notes on error handling: - Errors during profile execution are ignored. However, a `ProcessException` (possibly with *rollback*) may occur, e.g. if the addressed profile does not exist. - If, according to the configuration, a "Content" is expected as a return value of the value resolver (the options **Parse result** and **Use as string** not selected), the value resolver returns an "empty" data object of this type in the event of errors, whose fields contain the value `null` ("no value") but not a total of "no value" (`null`). A [Default value](/v1/docs/en/core-default-value-resolver) resolver can therefore only be used with reference to a field (e.g. `body`) to assign a default return value for the error case. If the **Use as string** option is selected, the value resolver returns the string conversion of the `body` value by default, so that "no value" (`null`) is returned in case of error. Then a [Default value](/v1/docs/en/core-default-value-resolver) resolver takes effect even without explicit reference to a field of the "Content" object. - If an "object" is expected as a return value (option **Parse result** is selected), then the type of the return value depends on how the error occurred during profile execution: - If an error defined for **Lobster Data Platform/Integration** occurs in one of the phases when executing the profile, or if a function such as `throw exception` is executed in the mapping, then a specific error object is returned to **Lobster Data Platform/Orchestration**. **Lobster Data Platform/Orchestration** identifies this error type after parsing via an `entityClass` variable. However, a specific [Check type](/v1/docs/en/core-check-type-rule) is not supported for the object types in question. - However, a profile cancellation can also be triggered by assigning the XML structure of an "error response" object (`ErrorResponse`) to the `VAR_ERROR_RESPONSE` profile variable. Then the parser in the value resolver returns this object, which can be determined by [Check type](/v1/docs/en/core-check-type-rule). | | The option **Parse result** specifies that a text in XML format is expected as the return value of the profile, which can be interpreted in **Lobster Data Platform/Orchestration** as the "server XML" of an object. - Provided that the input data for the profile refers to an *entity* defined in **Lobster Data Platform/Orchestration**, the target structure of the profile can be interpreted as an update for the volatile data of this entity. As shown in the above table under "Special use case", an update can be used with and without selecting the **Parse result** option. However, the **Parse result** option is typically selected so that the updated entity is immediately available as the return value of the value resolver. --- - If the **Parse result** option is not selected (default), then the return value of the profile will be returned by the value resolver either as "Content" or as text (see **Use as string**). | ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-T6VGPTF0.png) - If the **Parse result** option is selected, the profile should return a target XML structure that is read as "server XML" if it runs without errors. [Orchestration templates](/v1/docs/en/orchestration-integration-templates) (e.g. `DEFAULT:list` for a "list") are available for building the suitable target structure. In addition, the input data of a profile addressed by [Profile call](/v1/docs/en/core-call-profile-content-builder) reflects the "server XML" structure of the associated input value. --- ![images/download/attachments/201680000/image-2025-3-14_10-23-8-version-1-modificationdate-1748278510688-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-14_10-23-8-version-1-modificationdate-1748278510688-api-v2.png) - If the called profile returns binary data (e.g. the content of a graphic or a specific application file), the **Parse result** option should not be selected. | | The **Use as string** option determines whether the return value of the value resolver should return the data obtained from the profile call directly or formatted as text. - If the **Use as string** option is selected, the value resolver returns the string conversion of the actual return value. --- - If the **Use as string** option is not selected (default), the data (a parsed data object or the binary data from the profile as the `body` of a "Content" object) will be used directly as the return value. | ![images/download/attachments/201680000/image-2025-3-14_10-22-9-version-1-modificationdate-1748278510696-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-14_10-22-9-version-1-modificationdate-1748278510696-api-v2.png) - If the **Use as string** option is selected, data from the profile can be displayed in **Lobster Data Platform/Orchestration** as a text value, assigned or further processed e.g. via concatenation with other value resolvers. --- ![images/download/attachments/201680000/image-2025-3-14_10-21-43-version-1-modificationdate-1748278510698-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-14_10-21-43-version-1-modificationdate-1748278510698-api-v2.png) - If the called profile provides binary data (e.g. the content of a graphic or a specific application file), the **Use as string** option should not be selected. | | In the **Variables** area, the symbols ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(44).svg) and ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/forbidden.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/forbidden(21).svg) assignments of values to profile variables can be added or removed. The following specifications are provided for each variable: - A **Variable name** (required field) must be specified. The specified name is prefixed in the profile with `MSG_CALL_`. Corresponding variables (in the illustrated case e.g. `MSG_CALL_FILENAME_PREFIX`) must be explicitly created in the called profile so that a **Value** is assigned. - A **Value** resolver must be configured as a value (required field), the evaluation of which determines the value for the addressed profile variable at runtime. - The **Send as file** option appears if the configuration for the **Value** refers to a data type (such as "Content") that can optionally pass a reference to a temporary file that is automatically deleted after the profile call, instead of a direct assignment. | ![images/download/attachments/201680000/image-2025-3-14_10-20-31-version-1-modificationdate-1748278510700-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2025-3-14_10-20-31-version-1-modificationdate-1748278510700-api-v2.png) |