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

Expression robot to Determine the PBO container, Product or Library

Highlighted
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

Expression robot to Determine the PBO container, Product or Library

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

Expression robot to Determine the PBO container, Product or Library

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