Prevent file import when the workflow step is certified without using a lock
Hello community,
We are trying to prevent the end users from uploading a data file on an import workflow step that is certified.
To do so we have started using the the TransformationEventHandler in the Extensibility Rules. We are able to get into the right code:
Select Case args.OperationName
Case Is = BREventOperationType.Transformation.ParseAndTrans.StartParseAndTransform
From here, we have access to the workflow step arguments TransformationEventHandlerArgs (for example the file that has been uploaded etc).
We know that we can get access to the certification status from DataQualityEventHandler business rule using:
Dim CertifySignOffInstance As CertifySignOffInstanceInfo = DirectCast(args.Inputs(2), CertifySignOffInstanceInfo)
and
Dim signOffState As Integer = certifySignOffInstance.SignOffState
where signOffState = 110 or signOffState = 130 means that the workflow is certified. Which is great.
The question here is how can we get access to the CertifySignOffInstance from TransformationEventHandler ?
If you have done this before, or have an idea, please feel let us know 🙂