BPM off of Part.TypeCode

Has anyone ever done a BPM with a condition that fires off of Type Code?

Or does anyone know of a known issue?

I am trying to do one right now and it is not working. I have put an enable post on Part.Update pre processing and on the post processing I have a condition to see if the Type Code = P. No matter what I do, the BPM always goes the false route and never the true :exploding_head:

What are you trying to do? Walk us through the logic and changes you want to make.
Usually conditions can go in PreProc so that might be what you wanna do.

What does your condition look like? Something like this?

image

did you put in a message display so you can see what is being returned?

On Erp.Part.Update I have a Pre-Processing directive with a Condition of:

image

and then Enable Post Directive off of the TRUE.

Then, on the Post-Processing directive I have a condition with the following:

Issue is, it will not follow the TRUE path. Here is a screenshot of the flow. I removed the false path a little bit ago because it was always going down that path.

image

Yeah, but if you put in a pop up message, then add a table query you can see what is being returned so that you can trouble shoot why it’s not working.

Does it return true if you don’t have the TypCode criteria in there?

You might have to play with the ā€˜added’ vs ā€˜updated’ vs ā€˜changed’ on the criteria too.

@Banderson Thanks for the input.

I’ve never done the pop up message/table query. I’ll have to give it a try.

Of course the most obvious thing I did not try. I’ll have to remove the TypeCode criteria.

I checked the trace and the line was Added, so shouldn’t that not matter?

I’ve been confused on what I was supposed to pick on those and have had to do some trial and error sometimes to get them to work.

Whenever I’ve had trouble with a BPM I throw in pop up messages and at each stage so I know what things are flowing where, it really helps for testing. Then when you get it working, just delete the popups. Below are some screen shots of how to set up the message, it’s pretty easy. You can check as many boxes as you want in the table query. For a field query you get one at a time which is useful for inserting data into a sentence.

image

image

image

2 Likes

@Banderson

Wow, can’t wait to try it. Thanks for the tip and I will let you know what happens.

Oh man!! That was an awesome tip. For some reason, the RowMod field is empty on the Post-Processing.

Thank you very much for the advice! This is going to save me a ton of time in the future.

Glad it worked for you!

Along the same lines If you’re in Custom Code in a BPM and want the same kind of popup for testing, I use this code a lot:

this.PublishInfoMessage(ā€œmessage or variable hereā€, Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, ā€œSalesOrderā€, ā€œUpdateā€);

1 Like