Dienstag, 31. Oktober 2017
Montag, 2. Oktober 2017
$PMWorkflowName contains worklet name
Problem (PowerCenter 10.1.1 HF1)
I wanted to use $PMWorkflowName to check within a worklet within which workflow it runs. However, it seems that it does not contain the workflow name but the worklet name. At least the check in the connector miserably fails and using it as command name shows the worklet name.Test case
Work-around
- Define workflow variable.
- Assign $PMWorkflowName to the workflow variable in an assignment element.
- Define worklet variable.
- Assign the workflow variable to the worklet variable with a pre-worklet assignment. (This is needed only on the first level in case of cascading worklets. However, I did not test, if this is needed for later executed worklet cascades on the top level.
- Use the worklet variable for the check in the worklet.
Abonnieren
Posts (Atom)