BPM to close operation when OpCode is changed to s specific one

I’m trying to create a BPM that closes operations automatically when the OpCode is changed to a specific OpCode.

Can you provide more detail on where you’re stuck?

Yes, for the back story I work for a job shop so we want to have an operation set up for programing right away when a job is created before bringing the BOO over so that we can get time and expense on it. I have set that up and given it a special OpCode so I have the BPM that does that. Where I am getting stuck is I want it to close it automatically too as I don’t want that operation to interfere with scheduling or MES Work Queue so they can still clock in and add time to it, but I don’t want it showing up on the schedule or affecting Work Queue as I stated. I tried setting the condition up as a when the OpCode is changed to this, close but I don’t see a BO for close the operation that the change took place on.

What BO are you using?

I would think you could do a Post Processing to set ds.JobOper.OpComplete = true.

I think this is going to work best on labor.update. You will likely have to check your conditions preprocessing and then run the update post processing.

How do you know when the op needs to be closed? IE when the fleshed out boo is added?

I got the impression he wants to complete the op immediately after its created.

The job is still open, so they can still charge time to it… but the op is completed so it won’t impact scheduling etc.

So, basically creating a job where op 10 is added as a completed op… then they get details, and append everything else after.

I took this to mean they want to log time on the job before the BOO is made, but just guessing until we know more.

This is correct we want the operation added and completed at the same time so we can still collect time and then get details and append everything else after the fact. So, I did a standard to bring in the operations that part is good. Then I tried doing an in-transaction for when the opcode is a specific OpCode however it won’t change it to complete since the first is a standard and not and actually change.



I guess your condition might be causing issue.

Try putting multiple condition with a OR operator. I did a quick in-trans directive and tested; it does sets operation completed when added.
You may try as ttJobOper.OpCode of added row is equal to … and then set it to true.

This should help unless I am missing something!

No, that didn’t do it if I just add the row myself it checks it complete but because I have the BPM add the operations for some reason it doesn’t check it complete.

I ended up doing it in Post Processing like you recommended and just used an employee who is no longer active to trigger it thanks for the idea


1 Like