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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Expression robot to Determine the PBO container, Product or Library

rserhan
1-Newbie

Expression robot to Determine the PBO container, Product or Library

Hello All,


I am looking for the code to determine the container type of the PBO, (Product or Library) I am looking to assign it to a process variable. I found a similar thread but there were no solutions.


Thanks in Advance


Robert Serhan

2 REPLIES 2

On 3 April 2013 23:35, Robert Serhan <rserhan@wowway.com> wrote:

> PBO


Hi Robert


try the below logic

Wtobject obj= (WTObject)PBO;

WTContainer cont = obj.getContainer();

if (cont instanceof PDMLinkproduct )
{

PDMLinkproduct product = (PDMLinkproduct )cont ;
}


--
Regards
Gangadharan.N
ddemay
1-Newbie
(To:rserhan)

Check to make sure if it not null. This assumes all objects implement
WTContained. Did not check, but safe assumption.




Top Tags