cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

[EXTERNAL] Workflow Code to Get the object type of the PBO

avillanueva
22-Sapphire II

[EXTERNAL] Workflow Code to Get the object type of the PBO

Maybe a misuse of “overloaded”, not in the traditional programming sense. I have a single workflow class with a whole bunch of public static methods. The methods typically accept the primaryBusinessObject cast appropriately for the workflow class like WTChangeRequest2 or others. So if you want to set the state of all resulting items on an ECN, pass the ECN and then have that method navigate the relationships and set the states. Try not to have it throw exceptions unless you want to handle them in the workflow expression. I handle them in the method and pass back Strings if I want to get results. This would only be if you had a conditional. If the exception is unhandled, the workflow will stop.
0 REPLIES 0
Announcements


Top Tags