Forum Discussion

Nikpowar97's avatar
Nikpowar97
Contributor
2 years ago
Solved

Brapi.Utilities.ExecuteDatamanagementSequence

The Function in my rule : Brapi.Utilities.ExecuteDatamanagementSequence run the sequence in Background and allows me to do further operation in BR even before the step is complete.
Is this the expected behavior?
How do we avoid this. To run further operation until the complete sequence is complete?

 

  • The Execute* call should typically block, if that's not the case you should talk to Support.

    Start* and Queue*, on the other hand, will not block.

4 Replies

  • JackLacava's avatar
    JackLacava
    Community Manager

    The Execute* call should typically block, if that's not the case you should talk to Support.

    Start* and Queue*, on the other hand, will not block.

  • RobbSalzmann's avatar
    RobbSalzmann
    Valued Contributor II

    I would break your rule up into DM Sequence steps, step1, step2, with the step that runs the part that you want to wait for as step1, and the step you want executed after  step1 finishes as step2.

    This is conceptual, better to name them for what they do even tho step1 and step2 would work.

  • Sorry My Bad,
    JackLacava 
    I wrote Brapi.Utilities.StartDMSequence in my code and was Assuming I wrote Brapi.Utilities.ExecuteDMSequence in my code.


    RobbSalzmann 
    Really appreciate you help here. This is a Quite useful code. I will definitely try it if I require in future.