Skip to main content
1-Visitor
April 3, 2013
Question

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

4-Participant
April 4, 2013
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
Translate
1-Visitor
April 5, 2013
Check to make sure if it not null. This assumes all objects implement
WTContained. Did not check, but safe assumption.




Translate