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

SOLVED - Pending Changes icon (red triangle) and lifecycles

Highlighted
Newbie

SOLVED - Pending Changes icon (red triangle) and lifecycles


Ok, so after really trying to be helpful, those who want to add their own states can do so now by overriding the wt.change2.ChangeService2.class (making sure you keep all declared existing methods)

Here is a snippet form this interface:

public interface ChangeService2
{

public static final String PENDING_REQUEST_STATES[] = {
State.toState("UNDERREVIEW").toString(), State.toState("IMPLEMENTATION").toString(), State.toState("OPEN").toString()
};
public static final String PENDING_ORDER_STATES[] = {
State.toState("UNDERREVIEW").toString(), State.toState("IMPLEMENTATION").toString(), State.toState("OPEN").toString()
};

....more....


So basically what you need to do is recompile this class adding in your custom states where you see State.toState... for example State.toState("CUSTOMSTATE")


public static final String PENDING_REQUEST_STATES[] = {
State.toState("UNDERREVIEW").toString(), State.toState("IMPLEMENTATION").toString(), State.toState("OPEN").toString(),State.toState("CUSTOMSTATE").toString()
};


Recompile the class, restart your servers, and you should be good to go!


Regards,
David DeMay

2 REPLIES 2
Highlighted

SOLVED - Pending Changes icon (red triangle) and lifecycles

Thank you Dave, that was exactly what we needed to move forward. One
warning: if you misspell any of the states in the class it will prevent
windchill from loading with an error that it couldn't find the state. It
surprised me that it was that sensitive to a problem in one class.

Thanks again!
-wes
Highlighted

RE: SOLVED - Pending Changes icon (red triangle) and lifecycles

FYI on old issue...As of 8.0 M050 - found another option without coding...

https://www.ptc.com/appserver/cs/view/solution.jsp?n=/141006.htm

The change triangle indicates when a pending change order or change request is out against a given business object. By default, the triangle will appear when a change is out in the state UNDERREVIEW, IMPLEMENTATION, or OPEN. Sites may wish to customize the life cycle states of their change objects, and may wish to show the pending change triangle in additional or fewer states.

In Windchill 8.0 M050 and later, these states can be changed with two properties in wt.properties: wt.change2.pendingOrderStates and wt.change2.pendingRequestStates. What follows is adding an additional state called "LOCKED" to these two properties

xconfmanager -s wt.change2.pendingOrderStates=UNDERREVIEW,IMPLEMENTATION,OPEN,LOCKED -t codebase/wt.properties -p
xconfmanager -s wt.change2.pendingRequestStates=UNDERREVIEW,IMPLEMENTATION,OPEN,LOCKED -t codebase/wt.properties -p

Announcements