Forum Discussion
mireles
1 year agoNew Contributor III
How do I get workflow info on a DataQualityEventHandler rule?
I'm making a simple event handler rule that sends an email when a workflow is processed. I would like the email to include the datetime when it was processed, the user who did it, the workflow, workf...
- 1 year ago
As SimonHesford says you can get that information from the args object. The structure of args varies according to the step that is being processed. For ProcessCube you access it like this:
' Dim wfUnitPK As WorkflowUnitPk = DirectCast(args.inputs(0), WorkflowUnitPk) ' Dim tskActivity As TaskActivityItem = DirectCast(args.inputs(1), TaskActivityItem) ' Dim calcInfo As DataUnitInfo = DirectCast(args.Inputs(2), DataUnitInfo)
SimonHesford
1 year agoContributor II
Hi,
You need to make use of the DataQualityEventHandlerArgs.
args.inputs(1) will return a reference to the WorkflowUnitPk. You can use the properties on this object to retrieve the workflow profile info which should provide most of the information you are looking to surface.
- mireles1 year agoNew Contributor III
Thank you SimonHesford!
Related Content
- 1 year ago
- 2 years ago