check profile for existence(a,b,c,d)
Group |
Checks if the profile with name a is defined and can be found. Parameter b with value true defines if extended checking on status and valid from/until date is performed. Parameter d can be used to check whether the profile has an Input Agent of type Message an 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 |
true checks on the status and the valid from/until date of the profile. |
c |
true throws an exception instead of returning value false for invalid/unknown profile. |
d |
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 QueueDWForwardReceiver. |
Examples
Parameter a |
Parameter b |
Parameter c |
Parameter d |
Result |
Exit Job |
DemoProfile_valid |
true |
true |
true |
No. |
|
DemoProfile_invalid |
true |
true |
Yes. |
||
DemoProfil_invalid |
true |
false |
false |
No. |