Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Workflow Activity Routing based on Attribute

$
0
0

Try below expression.

 

if (primaryBusinessObject != null)

{

try

{

com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(primaryBusinessObject,null, java.util.Locale.US, new com.ptc.core.meta.common.DisplayOperationIdentifier());

obj.load("CustomerGroup");

java.lang.String string_value = (java.lang.String) obj.get("CustomerGroup");

System.out.println("Soft attibute value : " + string_value);

if ( string_value.equals("HERO") )

{

result = "Route1";

}

else

if( string_value.equals("FORD") )

{

result="Route3";

}

else

result="Route2";

}

catch ( Exception e )

{

e.printStackTrace();

}

}


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>