Mandatory Job Operation Completion

Looking to mandate the completion of Job Operations BEFORE the next one can be started…Any ideas how?

Saw this earlier post:
Mandatory Job Operation completion - Kinetic ERP - Epicor User Help Forum

And I’ve set-up the Shop Warnings so to see what happens, but the reality is that we want to make it a hard-stop if the prior Operation is not Complete.

I think that it’s done through here:

But, I can’t see how…

Any tips?

A post-processing BPM on Erp.BO.LaborSvc DefaultOprSeq method will do this.

That method will complete, but it returns a variety of messages depending on your shop warnings. Before the call is committed to the DB, your Post directive can catch if the returned message is “A previous operation has not completed.”

Just needs a Condition:

The specified argument/variable is equal to the specified expression.

You’ll want to change those to:
The vMessage argument/variable is equal to the "A previous operation has not completed." expression

If that is true… Raise Exception… add some text in there to know you’re seeing your BPM fire.

Clicking Ok resets the Operation back to the previous value.

3 Likes

Hey David,
Just wanted to say Thanks - That worked a treat!!
Initially I didn’t seem to be getting the Shop Message, but refreshed Pilot & tried again & it’s now working!!
Cheers,
Kev.

1 Like

This is exactly what we do, too. With one difference being that we check to see if the message is not blank. This results in if you change the Scheduling Factor to either Start-To-Start or Finish-to-Finish on the operation, then it will let you start that operation in sequence with the previous and stop you from doing so if the previous operation is not started (system message is something like “a previous operation has not been started”).

1 Like