The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

Kamila's avatar
Kamila
Contributor
2 years ago
Solved

Lock one process

Hi Team, We have 2 similar processes under one member in workflow. I need to lock process A, when B is completed. Could you please advise what method to use?  Many thanks!
  • Krishna's avatar
    Krishna
    2 years ago

    Kamila  - You can use the below method to lock. I am not sure what do you mean by Close ? What are you trying to close ?

    BRApi.Workflow.Locking.LockWorkflowUnitDescendants(si, wfClusterPk, profileTypeFilter, workflowChannelKey)

     

     

     

  • Krishna's avatar
    Krishna
    2 years ago

    Kamila  - In that Case you have to use WF channel so the lock will be independent of each other then you can use the WF Event Handler to lock based on which WF profile has been selected by user.