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

Provide Sequence to the Change Task by Customization?

Newbie

Provide Sequence to the Change Task by Customization?

Hello All,

I am looking for a way to provide the sequence to the Change Task through customization from the CN workflow. Is there any supported API which can be used to accomplish this?

Regards,
Karan

1 REPLY 1
Highlighted

Re: Provide Sequence to the Change Task by Customization?

WTChangeActivity2 task;
WTChangeOrder2 changeNotice;

String sequenceNumber = (String) wt.change2.changeplanning.ChangePlanningHelper.getService().getExecutionValues(changeNotice).get(task);

 This will give you the sequence number of a given task and a given change notice. 

I haven't figured out though how to modify those values. I can just read them and use the information in my workflow.

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________ Check out the Windchill Tips Board! We're talking about Whirlpool's use of digital twin, augmented reality, and data-driven design!

The NAVIGATE WORKING GROUP is here! Come innovate with PTC!

Sign up for a Working Group