I am trying to add a pop up for when an employee ends activity and enters a labor quantity of zero. The goal is to have them question if they really didn’t run any parts.
In my mind, the directive should be Post-Processing. But, when I go to test, the message pops up when I click on the End Activity button in MES. I was hoping there was a way to have the message pop up when the employee clicks OK to end their activity. I tried Base Processing, but that just greyed out the labor quantity field and produced an error.
@hvrabbit I think pre processing on Labor.Update for an updated row that has a clockout time that is not 24 will do what you want.
It will still end the activity unless you never want zero, but that could be a problem if they are on the wrong operation.
A BPM will only fire when action is taken. You just want to capture that event and give them options before allowing the save to continue. If you want to ask them to enter a value or leave it 0, but just double check with them what their intent is you will need to use a BPM form for that.
Don’t know if you’ve got your solution yet, but I accomplished something similar in the Application Studio for End Activity, except for the Labor Notes. We require notes to be entered since we have gone 100% E traveler. If the field is left blank, then it pops a error, and re-focuses on the Labor Notes.
If you think this would work for you, I can explain further.