BPMs on method called by another method

I have a pre-processing BPM on the EngWorkBench.CheckIn method. In Kinetic, the CheckIn method is “wrapped” inside the EngWorkBench.CheckInAndRefresh method, which is the method called when you click the Check In button.

When executing a Check-In operation from the Kinetic UI, the BPM on CheckIn is not called. The only way my BPM executes is if I add it to EngWorkBench.CheckInAndRefresh directly.

Has anyone else experienced this or something similar? Do we know if this is intended behavior? I would expect the BPM on CheckIn to still be executed in my example above..

I don’t think methods called internally within a service fire the BPMs attached to them

2 Likes

There’s a flag internally that can be toggled to disable BPMs for that particular instance of execution. It could be that CheckInAndRefresh calls CheckIn with BPMs disabled.

OK, thanks for the confirmation. I guess I’ll just have to duplicate the BPM. In some cases we call CheckIn via API, in others we use Engineering Workbench directly in the UI.

I need the BPM to fire either way, so I wanted to make sure:

  1. I actually need to apply the BPM to both methods.
  2. The BPM won’t be triggered twice in some instances, considering the main method (CheckIn) is called by the Kinetic UI method (CheckInAndRefresh).

Thanks again.

You could also put your logic in a function and call it from each method. That way you aren’t repeating yourself and have a single source to maintain.

1 Like

I actually did do that, so that helps.

This is one of those DIY bug-fix BPMs. I hope some day I can get rid of it. :slight_smile:

Haha nice. I prefix all of my bugfix BPMs with “BF” so I know to go back and delete them later. So far I have not gone back and deleted any :smile:

2 Likes

I have groups named “Delete in 2025.2”…

…i should probably go delete those

2 Likes

Shame on you, should have programmed a version check on not to fire as well.

Or since it’s you… BPM that deletes itself..

2 Likes

You know how circumstances are when you go to your room about to lay down happy and content, then you get an email about overnight emergency maintenance and wake up with a broken ERP and a bunch of tickets..

the band-aid won’t stick anymore since it’s so beat up and the wound site is too dirty, so we used spit as an adhesive, that’ll hold

2 Likes

More like
Just A Flesh Wound GIFs | Tenor

2 Likes