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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Expression robot to Determine the PBO container, Product or Library

rserhan
1-Visitor

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
gnatesan
4-Participant
(To:rserhan)

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
7-Bedrock
(To:rserhan)

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




Announcements


Top Tags