Is there a way for an operator to access its own meta data to retrieve things like its name, comments, or options? I have a use case where I need to programmatically find an operator's name. At first glance this would seem to be simple but I'm struggling to find a way to get the information.
Here's an example of what I'm attempting to do:
I want to log every action of every operator in a separate log file for our internal auditors. The format of the log file should be similar to this:
<time stamp> [<process instance name>] [<operator name>] <logged message>
2014-12-09 08:04:02.482 [ProcessTesting_53165] [Configure_Network_Adapter_1] Attempting to assign the IP address
2014-12-09 08:04:02.912 [ProcessTesting_53165] [Configure_Network_Adapter_1] ERROR - This operator is in Blocked state
Getting the process instance name is trivial, but I need to be more precise with my logging. I need to include the operator name and I do NOT want to hard code it.
You should be able to reference “OpName” in pre/post execution in order to get the operator’s name.
Good Lord I feel like a numbskull... I danced all around that yesterday but never tried the obvious.
I’m not sure it’s very obvious…I bet a lot of folks who’ve used PAM for a long time would have to think hard about it…