Previous OprSeq in a BPM

I’m trying to create a BPM that will check the quantity completed on a previous operation, so that the system will raise an exception if someone tries to report/end activity with a quantity greater than that. In other words, we are trying to prevent employees from being able to complete more parts on an operation, than were completed on the previous operation. Is this possible without writing custom code?

Well, I want to know the same thing! Will be following this!

You could get a list of all operations at that assembly level where the oprseq is less than the current op, then sort the list descending and select the first one.

I don’t think this is possible without some custom code, but is pretty easy to do. There are a lot of examples here and on the internet.

HI N8Brown,
You could make use of setting variables (a little bit of C# coding) via the BPM then create logic passing through multiple conditions.
I’ve done a very similar BPM. I’ve taken a screen capture of the logic I’ve applied. - I hope this is helpful.