Does anybody out there know why the above conditional routing expression, that revises the object, won't work unless it is preceded by the following conditional routing expression that promotes the object? I'd like to revise the object before it's promoted so as to preserve the state of the original promotion object.
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.promoteTargets (pn);
/* If any of the promotion targets are Advanced Configurable Generics the
* baseline used during collection needs to be set on the generic as the
* default baseline to properly support Options and Variants. If none of
* the promotion targets are Advanced Configurable Generics, this method will
* simply return.
*/
wt.maturity.MaturityServerHelper.setDefaultBaselineForGenerics(pn);
result="Approved";
} catch (wt.maturity.MaturityException me){
if ( VERBOSE )
me.printStackTrace();
errorMsg=me.getMessage();
result="Rejected";
}