Forum Discussion

mireles's avatar
mireles
New Contributor II
14 days ago
Solved

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...
  • MarcusH's avatar
    13 days 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)