Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

Will the below code cause the workflow to get aborted or terminated?

$
0
0

I was trying to have a look at the Routing Expression of a workflow and stumbled upon a Catch(throwable t).An overview study about this sort of catch block is not recommended. Can someone help me understand the instances when this code will not work properly.

 

 

 

 

wt.maturity.PromotionNotice pn = (wt.maturity.PromotionNotice)primaryBusinessObject;

try

{

wt.util.WTProperties props = wt.util.WTProperties.getLocalProperties();

VERBOSE = props.getProperty("wt.maturity.verbose",VERBOSE);

}

catch( Throwable t )

{

 

}

try

{

     wt.maturity.MaturityServerHelper.service.lockTargets( pn );

     result = "Accepted";

 

}

catch( Exception wte )

{

   if ( VERBOSE )

      wte.printStackTrace();

   result = "Rejected";  // send notification to owner

 

}


Viewing all articles
Browse latest Browse all 3592

Trending Articles



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