check profile for existence(a,b,c,d)


Checks if the profile with name a exists. If parameter b is set to true, the status (active) and validity period is checked as well. Parameter d can be used to check whether the profile has an Input Agent of type Message and if its context and queue match the parameter values.

The function returns true for a valid profile or false otherwise. If parameter c is set to true, an exception is thrown instead of returning value false.

Description of Parameters


Parameter

Description

a

Profile name.

b

(optional) true checks on the status (active) and the validity period of the profile. Default: false .

c

(optional) true throws an exception instead of returning value false for invalid/unknown profile. Default: false .

d

(optional) If set, the profile is checked for an Input Agent of type Message and if its context and queue values match the parameter values. The format is <context>:<queue>.

Example: The value System:DWForwardReceiver checks if the profile has an Input Agent of type Message with context System and queue DWForwardReceiver.


Examples


Parameter a

Parameter b

Parameter c

Parameter d

Result

Mapping aborted

DemoProfile_valid

true

true


true

No.

DemoProfile_invalid

true

true



Yes.

DemoProfile_invalid

true

false


false

No.