Don't allow last operation if all material has not been issued

I need to know the best way to stop user from completing last operation if all material has not been issued. I am assuming this should be done thru BPM method. Thinking labordtl.defaultoprseq. I have BAQ that gives the last operation of a job. But need to pass the Job to BAQ and return if it is last operation. Not sure how to do this within Method directive.

Hi Laura,

We have done similar things for customers using the exact business object you are mentioning above with the addition of a post processing rule and then conditional query to check for validation. I would suspect you can use the same way, there is a field normally flagged as the final operation. You could add a criteria for that. I have a example that checks the current operation and previous but ignores backflushed items etc that I could share as a starting point if you are unsure.

1 Like

Hi Gary, i would be interested to see that if at all possible?

Hi Daniel, see attached. This is from a 2023 environment. Directive import should be all you need to add to yours.
GHA Stop Message.bpm (30.0 KB)

1 Like

Thank you Gary will take a look.