--- title: "MultipleMessageResponse" slug: "multiple-message-response" updated: 2026-08-06T07:25:16Z published: 2026-08-06T07:25:16Z canonical: "docs.lobstersoftware.com/multiple-message-response" --- > ## 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. # MultipleMessageResponse ## Description **Class name:** com.ebd.hub.datawizard.customresp.MultipleMessageResponse **Configuration:** Path to properties configuration file in field "Additional parameters". ### General problem with mass data (memory overflow) When working with mass data, it may be necessary to separate subsets from the source data, which are then processed individually to avoid memory overflow or extremely long processing times. ### Previous solution (and its limitation) One way to solve this is to split the source data into several records by suitable parsing in a first Profile and then call another profile via a Response (in combination with option “Enter output channel for each record”), in which the processing of the respective subset then takes place. ### New solution (range limits and token list) This class is intended for such cases where the range limits for the subsets can only be determined by calculations in Phase 3. The division of the data into subsets on the basis of the transferred range limits then takes place in a subsequent profile. For this purpose, the subsequent profile (see parameter *target*) is called several times with the same source data ("as received" set as content in the response), but with continuous range limits. The provision of the suitable range limits takes place in a profile variable (see parameter *parameters*) as token list within Phase 3 before the call of the class. The class calls a subsequent profile as often as the token list has tokens. With each call only the current token is passed to the corresponding MSG_CALL_ variable of the subsequent profile. ### Preventing hard disk overflow (backup files) Each time the subsequent profile is called, the same source data is transferred. If this is bulk data, there is a risk of the hard disk overflowing, because each Job of the called profile saves this data as a backup file. It is therefore advisable to set the retention time of the backup file to *0* days (see [Backup and limits](/v1/docs/en/profiles--tab-1-5)**)** so that it is deleted immediately after a successful run. ### Used message type The processing of the response (in which this class is used) is an overall process within which the multiple calls of the subsequent profile take place. The use of synchronous Messages (see parameter *msgtype*) is not recommended, because in that case a not exactly defined state occurs if, after successful calls, a further call of the subsequent profile leads to an error abort. We recommend the Message type *persistent*, because then the jobs of the subsequent profile can be processed strictly one after the other (see [Profile may only run in one instance](/v1/docs/en/profiles--tab-1-5) ). If the subsequent profile jobs are processed in parallel, there is otherwise a risk of memory overflow again. ### Counter variable Furthermore, a counter variable can be defined (see parameter *counter*), whose value is passed to the corresponding *MSG_CALL_* variable of the subsequent profile. This counter variable (if it is defined) is first emptied before a call of the subsequent profile and then receives the number of the current call. If (with synchronous Messages) an abort occurs due to an error in the subsequent profile, the counter contains the number of the previous call. ### Encoding The encoding of the data is converted into the profile input encoding of the subsequent profile, depending on the [Content settings](/v1/docs/en/phase-6-response-content-settings). The only exception is the content type "as received" (not "as received, uncompressed"), where the backup file of the job is copied byte by byte as the backup file of the subsequent profile. In this case, the conversion into an encoding is skipped. We therefore recommend this content type for processing purely binary data. ### Chaining of responses When chaining several responses (“on error/in response no.”) it must be considered that the variable with the token list (parameter *parameters*) has the content defined in Phase 3 again with the complete token list after the execution of the response, although only the current token was passed to the subsequent profile. ## Parameters Following the existing parameters. Variables and system constants are resolved in the configuration file. Variables as value of a property must be written in the form *@variablename@*, system constants in the form *%constantname%*. **Example:** *target=@VAR_TARGET@* | Parameter | Description | | --- | --- | | target | The subsequent profile. It must be active and have an Input agent of type "Message". | | parameters | (optional) Name of a defined profile variable of type *String* that contains the token list of parameters to be passed to the subsequent profile. Default: *VAR_PARAMETERS* | | delimiter | (optional) The delimiter used to separate the parameters. Default: Newline. **NOTE:** It is possible to separate multiple values within a token by a secondary delimiter (e.g. comma). See example below. | | counter | (optional) The name of a defined profile variable of type *Integer*, which is used to count the calls of the subsequent profile. Default: *VAR_PARCOUNTER* **NOTE:** If it does not exist, there is no counting and no counter variable is passed. This does not generate an error. | | msgtype | (optional) The type of Message to be used to call the subsequent profile. Allowed values: "direct", "synchron", "persistent" (initial letter is sufficient). Default: "persistent". | ## Example The profile that calls this class in a response uses the following configuration file. ```multiple target=TEST_MULTIPLE_MESSAGE_TARGET #parameters=VAR_PARAMETERS #delimiter= #counter=VAR_PARCOUNTER #msgtype=persistent ``` The variable *VAR_PARAMETERS* in this profile contains the following multi-line content. ```plaintext ABC,123 DEF,456 GHI,789 ``` Because of the default separator Newline (parameter *delimiter*) three tokens are determined, therefore three messages are generated, each calling the subsequent profile *TEST_MULTIPLE_MESSAGE_TARGET* (parameter *target*). The subsequent profile receives the first call value *ABC,123* in variable *MSG_CALL_VAR_PARAMETERS*, the second call value *DEF,456*, and so on. The logic that builds the token list is to be created in the first profile. The logic that evaluates the transferred tokens is to be created in the subsequent profile. A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required. The response determines how a profile sends processed data. In Phase 6, a response determines how and where the output data is sent or stored, e.g., via FTP, HTTP or e-mail. A profile can use several responses in parallel. Mapping: Rules transfer the data from the source structure to the target structure. This is the core of the profile. Execution instance that arises when an **inbound agent** of a profile accepts data. The platform creates a backup file and processes the **job** through all profile phases. Running, successful, and failed jobs are visible in **the Control Center** . The input agent receives data in Phase 1 and starts a job for further processing. It works either as event based (passively waits for data) or scheduled (actively fetches data).