Rule Action parameter in the History-Add Method
Hello.
So I've been trying to use the History-Add Method to add custom entries in the audit trail.
And I'm wondering about the Rule Action parameter defined for this Method: what's the use of that?
I can specify a value here that I was expecting to be able to retrieve later on in the properties of the history/audit trail entries found in the results of the D_pyWorkHistory Data Page. But... no luck here.
There is indeed a pxRuleAction Property defined in the History- class so I was expecting to get my values back there.
But:
- the Report Definition(s) feeding the D_pyWorkHistory Data Page are not listing this Property in the Columns
- and additionnaly it seems this Property is not even exposed... while there is no blob definedf for the History- classes.
So what? The vlaues are lost because there is nowhere to store them?
Then what's the use having this Property? And having this parameter in the History-Add Method to begin with?
I guess I'm missing something here... Help anyone.
Thanks.
Hi @POCHF: Firstly, this will work only for Rule-, Data-, Link- instances based on documentation (this). So if you are trying for a Work- instance, this value is of no use.
Even for Data- instances this seems not working in the latest version whereas it works fine in version 7. I feel this is something PEGA for look into. If you use Save activity for data class, it will work. Not because of History-Add method but because of the new saveDeferred api method of implementation.
Dear Moderators: Can this be checked internally?
Thanks.