Skip to content

bmel:get-client-by-criteria

Category: JSON · Returns: bmel:client

bmel:get-client-by-criteria(filters...: bmel:any)

Description

Identifies the client that generated the call and returns the JSON of that client as a bmel:client. Each filter is a source value that's evaluated against the matching criteria of the template's client types. Without filters, or when no client matches, it returns the default client.

It's the expression of the CLIENT-REFERENCE component.

Arguments

Parameter Type Required Description
filters... bmel:any Any number of source values that can identify the client.

Examples

Identify the client from two request headers:

bmel:get-client-by-criteria({invokeAgent:HTTP Headers}.$.X-Forwarded-For, {invokeAgent:HTTP Headers}.$.X-Client-ID)

Use the default client:

bmel:get-client-by-criteria()

← Back to BMEL Reference