BPM to warn of when material not issued on job closing

Spent most of yesterday trying to solve my BPM problem to no avail, hence the post.

We’ve had a few incidents where people have closed a job off when not all parts have been issued.

So, to prevent this I want to create a pop up when they use Job completion/ Closing Maintenance and go to close the job off, a pop up warns them if there are parts on that job that have not been issued (issued Completed).

I’m currently trying with method directive on JobClosing.OnChangeJobClosed (this is what the trace used when clicking the closed checkbox)(Post- processing), I’ve tried a bunch of conditions but haven’t got anywhere, I suspect one major problem I’m having is that the BPM doesn’t hold any JobMtl data just jobclosing so i cant check if all part have been issued. I tested this with my pop-up messages and drew a blank.

Any guidance would be helpful, thank you in advance.

Try

Pre Proc → JobClosing → PreCloseJob

Have a condition where you check ttJobClosing with JobMtl and make sure IssuedQty isn’t less than JobMtl.RequiredQty raise an expection if it is…

I saw somthing to this yesterday and had no luck, the only think i could not replicate is the 2nd table, mine starts with ds. not tt, could this be the problem?

Many Thanks.

Sorry…

Do it on

Pre Proc → CloseJob

Make a query condition with.

then
image

then
Raise exeception…

image

Let me know how you get on…

1 Like

Amazing! It works, Thank you very much. Incidentally I tried something similar and instead of putting true I had TRUE which gave me an CS0103 error. But it seems to work perfectly.

C# is a case-sensitive language, so using, True , or TRUE would not be recognized as the boolean true value.

:slight_smile:

We have a row rule that highlights in red qty’s that are not fully issued. Part of our process is to look for those items.