Forum Discussion

psc's avatar
psc
New Contributor III
2 years ago

Workflow Steps - Stop completion of a workspace

Hello, Is there an event handler or dashboard extender rule that could be used to stop a user from completing a workspace if certain steps are not completed first? I have a workspace that needs to b...
  • EricOsmanski's avatar
    2 years ago

    You can either use the code above and explicitly get the WorkflowUnitClusterPk of each of the siblings that need to be completed and check their status, or you can use something such as the below to get a list of sibling Workflows and then loop through them.

    Dim objListInput As List(Of WorkFlowProfileInfo) = BRApi.Workflow.Metadata.GetRelatives(si, wfClusterPk, WorkflowProfileRelativeTypes.Siblings, WorkflowProfileTypes.AllProfiles)