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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

Issue with OOTB workflow Rework

vmcdaniel
12-Amethyst

Issue with OOTB workflow Rework

In the image below is the OOTB Rework workflow from the Promotion Request Approval. It has an issue; if the user Submits, while the objects are checked-out the Conditional statement still marks them as ValidIterations, so the workflow moves on, but then gets Rejected at the next conditional statement.
Anyone find the solution to this issue?

My solution is to add the expression from the other conditional statement to the rework conditional, this works, but has a side-effect. At the next conditional statement (post approval task) a flag gets set, so I need to unset that somehow. Anyone know how?

I included the expression below.


[cid:image002.png@01CD5F4C.B422B8A0]

wt.maturity.PromotionNotice pn = (wt.maturity.PromotionNotice)primaryBusinessObject;
try
{
latestIterationsValidationMsg = com.ptc.windchill.enterprise.maturity.PromotionNoticeWorkflowHelper.refresh(pn);
if (!latestIterationsValidationMsg .isEmpty() ) {
result="InvalidIterations";
special_instructions = com.ptc.windchill.enterprise.maturity.PromotionNoticeWorkflowHelper.truncateInstructions(latestIterationsValidationMsg);
}
else
result="ValidIterations";

}
catch( Exception wte )
{
wte.printStackTrace();
}

/* This all came from the conditional check after the Approval
*/
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="ValidIterations";
} catch (wt.maturity.MaturityException me){
if ( VERBOSE )
me.printStackTrace();
errorMsg=me.getMessage();
result="InvalidIterations";
}



Vaughn McDaniel III | Business Process Analyst - PLM/CAD Apps | Business Solutions Manager - PMO| Kärcher North America - Hampden | m:720.216.3495 o:303.783.5151*new* | vaughn.mcdaniel@karcherNA.com<">mailto:vaughn.mcdaniel@karcherNA.com> | 750 W. Hampden Avenue - Suite 400, Englewood, CO 80110
[cid:image001.png@01CD5F49.10ADA840]<">http://www.karcher.com/usa/Home.htm>
PLM?<">http://en.wikipedia.org/wiki/Product_lifecycle_management> Windchill?<">http://www.ptc.com/WCMS/files/130891/en/flash/index.htm?&im_dbkey=130891&im_language=en> PLM for SMB?<">http://www.ptc.com/WCMS/files/129410/en/flash/index.htm?&im_dbkey=129410&icg_dbkey=362>
0 REPLIES 0
Announcements

Top Tags