Skip to main content
10-Marble
December 13, 2016
Question

Provide Sequence to the Change Task by Customization?

  • December 13, 2016
  • 1 reply
  • 1677 views

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

13-Aquamarine
September 26, 2018
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.

1-Visitor
February 10, 2025

the below api can be used to create plan :

 

wt.change2.changeplanning.ChangePlanningHelper.getService().createPlan(VersionableChangeItem arg0, Map<String, WTCollection> arg1)