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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Release of drawings in Design task workflow level

RUK1
6-Contributor

Release of drawings in Design task workflow level

Hello, we recently got a project to modify ECR workflow in windchill and one of the questions was, if release of drawings can be moved from ECN level to Design task level. I already tried to move workflow actions from ECN to Design task level, but the Expression seems to be wrong and drawing release did not happen. 

 

Have anyone faced similar issue or is anyone able to help me figure out, what can I do to release Resulting objects in Design task level (I think Design task is called Change activity workflow in default setup)? 

 

Thank you very much for any feedback.

3 REPLIES 3
avillanueva
22-Sapphire II
(To:RUK1)

You cannot use code from the ECN workflow in the Change Activity workflow. Its expecting a certain type of primary business object to be provided. That does not mean you cannot create your own expression to release drawings during the change activity. In most cases its done at the ECN level since one call will release all Resulting objects and it avoids issues if after that change activity is completed, that something at the parent ECN workflow causes a loop back. Are you using PTC supplied code? Can you share your expression robot here?

RUK1
6-Contributor
(To:avillanueva)

Yes, you are right, when tried with ECN expression, the workflow in Change Activity just failed with an error. 

 

Here is the default expression in ECN level, that I tried to move into Change Activity : 

com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.releaseChangeables((wt.change2.WTChangeOrder2)primaryBusinessObject);
com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.approveHangingChanges((wt.change2.WTChangeOrder2)primaryBusinessObject);

 

I expect it has something to do with Change order2 expression, but I´m not 100% sure. Is this the expression you meant? 

 

Thank you. 

Hari_Vara
16-Pearl
(To:RUK1)

Hi,

I agree with Villanuev on this.

What is your Business Requirement? And why was the solution pointing to Release activity in Change Tasks. This is really a bad decision.

OOTB and recommended Authorization is the ECN.

I request you to go back to the requirements or use case and update here, we could give you a proper solution.

 

Please note: Many times , the business side try to give a solution, please avoid that and get only the Business Requirements from them.

Hope other experts here too must have experienced the above situation!

Cheers

Hari

Announcements


Top Tags