Skip to main content
Newcomer
April 22, 2025

Quick certification of a Certify Workflow using business rule

  • April 22, 2025
  • 1 reply
  • 10 views

Hello everyone,

Is it possible using a business rule to make a quick certification for a Certify Workflow?

I was abel to complete the Certify Workflow task using business rule but the certification status remains rejected.

Thank you in advance for your help.

Regards,

Antony

1 reply

Member
August 15, 2026

Hi aabirached,

Can you share your portion of code that Certify your workflow?  I had the below code and it’s running forever (end with error).

If isAllWfComplete Then
    'Dim wfParentUnitPk As WorkflowUnitPk = BRApi.Workflow.General.GetWorkflowUnitPk(si, wfProfParent.Name, wfScenario, wfTime)
    Dim wfTopClusterPK As WorkflowUnitClusterPk = BRApi.Workflow.General.GetWorkflowUnitClusterPk(si, wfProfParent.Name, wfScenario, wfTime)
    
    BRApi.Workflow.Status.SetWorkflowStatus(si, wfTopClusterPK, StepClassificationTypes.Certify, WorkflowStatusTypes.Completed, "Auto Certified", "Error: Automate Certified", "Auto Certified", Nothing)
End if

Regards
Seang