Forum Discussion
ChrisBadenhorst
2 years agoNew Contributor II
Thank you Mike,
I unfortunately need to use a BR as there are a few things that need to happen based on the workflow status of the parent profile.
Chris
NicolasArgente
2 years agoValued Contributor
Try that ;
'Check the Workflow status of the parent (We can't calculate plan if the parent is certified)
Dim wfRegParent As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetParent(si, si.WorkflowClusterPk)
Dim wfRegParentPk As New WorkflowUnitClusterPk(wfRegParent.ProfileKey, si.WorkflowClusterPk.ScenarioKey, si.WorkflowClusterPk.TimeKey)
Dim wfRegParentStatus As WorkflowInfo = BRApi.Workflow.Status.GetWorkflowStatus(si, wfRegParentPk, False)