Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
HI
I am using wc10 and have associated OOTB Two level approval process, in promotion preference Manger.
I see that, after approvals at level 1 and level 2 are complete, only the promotion object moves to Approved state.
However, the assicated document still will be in Initial state.
I would like to how do we promote Document to Released state , once all level of approvals are complete?
Also ,when promotion approval request object is created, the document should be in Under review state.
Thanks in Advance.
Hi Giri,
I had the same problem where PTC support helped me to figure it out.
Below is the reply from Support
OOTB Windchill uses "Promotion Request Approval Process" and "Promotion Request Review Process" workflows for promotion. When an object (WtPart, Wtdocument, EPMDocument) is promoted an 'Promotion Notice' object is created and the workflow process is initiated on this object. All the set state robots used in the workflow would modify the state of the PBO(Primary Business Object) which is promotion notice in this case.
If you refer to the OOTB promotion process, there is a conditional router used as shown below in the Screen shot. This router has the following expression:
The highlighted portion in the expression is used to change the state of the original 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.setDefaultBaselineForGenerics(pn);
} catch (wt.maturity.MaturityException me){
if ( VERBOSE )
me.printStackTrace();
result="Rejected";
}
As you are using OOTB Two Level Approval Process which is not meant for Promotion, the expression is missing in the workflow process. I would suggest you to modify the Two Level Approval Process to accommodate the expression. The expression contains a global Variable 'VERBOSE' of type Boolean which need to be created to avoid any Syntax error in the expression.
I have added conditional router and the expression in the Two level Approval Process at my end and found that the state of the object gets changed successfully. (Attached my workflow for your reference.)
Thanks,
Shrikant
Thanks Srikanth for the quick reply.
Thanks Srikant for the quick reqply,
Let me try it on my system. I am on wc10 and looks like its created on older version,
Hence i could not export.
I am tryting to make changes as per you suggestions.
Thank you All for a reply!
Finally got this working.