Skip to main content
18-Opal
November 16, 2017
Question

Can I change stauts via reject promotion request

  • November 16, 2017
  • 1 reply
  • 1868 views

Use the promotion process to raise the status of your data.
Once a promotion request is approved, it changes to a specific state and returns to its original state when the request is rejected.
Can I change to a specific state instead of the original state when a promotion request is rejected?
How do I do this?
Thank you.

1 reply

20-Turquoise
November 17, 2017

@CHASEONHO wrote:

Use the promotion process to raise the status of your data.
Once a promotion request is approved, it changes to a specific state and returns to its original state when the request is rejected.
Can I change to a specific state instead of the original state when a promotion request is rejected?
How do I do this?


One way would be to add custom code to the Expression of the Unlock Targets task in the promotion request workflow. There are several previous posts that deal with setting the state of an object and several that deal with how to find the objects on a promotion request. Search for "LifeCycleHelper.service.setLifeCycleState" for posts dealing with setting the state. Search for "getPromotionTargets" to find posts dealing with finding the objects on a promotion request.

 

unlock_targets.png

CHASEONHO18-OpalAuthor
18-Opal
November 20, 2017

Thank you for your detail reply

i search document "LifeCycleHelper.service.setLifeCycleState" from support page, it was not exist...

and i also search "LifeCycleHelper.service.setLifeCycleState" from windchill help center, result not found...

 

As you said, thanks to your explanation, i need to configure the code in Unlock Targets in the Promotion Request Aproval Process.
However, it is difficult to understand what the values of the code and the variables mean.
Despite the detailed explanation, I could not configure this.
It would be very helpful if you attach an example or other document file.

 

 

Thank you.