I am trying to figure out if it is possible to capture and pass data on one method directive to another method directive. I will do my best to explain what I am trying to do and what is prompting this question. If I am totally off base and someone has another solution, please let me know.
I am attempting to use BPM Holds as a way to have a workflow for master data record creation. Let’s use Customer for our example. When a new Customer is created, I have set up a BPM to apply to BPM holds on that record, hold1 and hold2. The intent of these are to restrict other transactions from happening until the record has been completely set-up. So, once group1 finishes what they are responsible for on the record, they would remove hold1 and an email would be sent to group2 for them to do what they are responsible for and then remove hold2. Now the record is fully set up and there would not be any more holds.
The problem I am running into is trying to restrict who can remove these holds and when they can be removed. I have set up Security Groups for each hold type and assigned them to the appropriate users. On delete of a BPM Hold, I am trying to check who is calling the method and what holds are still active on the record. I performed a trace on a delete of a BPM Hold and for BpHoldsImpl the methods were GetRows and Update. Looking at the datasets in the methods, the hold that is being deleted only appears in the GetRows method and not the Update method.
I had assumed I would want to put the directive on Pre-Processing Update. But without the record I am deleting, I’m completely lost on how to set up any restrictions. I don’t think I can use the GetRows method as that is just getting the data to display in the form.
Any help would be appreciated.