TAG-NmLoader-0.xml: Copy of Change Notice Workflow TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: Set State Implementation TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: aState TAG-NmLoader-0.xml: Set State Under Review TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: aState TAG-NmLoader-0.xml: Change Notice Submitted TAG-NmLoader-0.xml: subject TAG-NmLoader-0.xml: message TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: Set State Released TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: aState TAG-NmLoader-0.xml: Set State Resolved TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: aState TAG-NmLoader-0.xml: Change Notice Rejected TAG-NmLoader-0.xml: subject TAG-NmLoader-0.xml: message TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: Change Notice Complete Notification TAG-NmLoader-0.xml: subject TAG-NmLoader-0.xml: message TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: Set State Cancelled TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: aState TAG-NmLoader-0.xml: Change Notice Approved TAG-NmLoader-0.xml: subject TAG-NmLoader-0.xml: message TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: Set ECRAuthors TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _ROBOT_EXPRESSION_ TAG-NmLoader-0.xml: String role=new String("wt.project.role.ECR AUTHOR");@com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.setRoleToECN((wt.change2.WTChangeOrder2)primaryBusinessObject#role); TAG-NmLoader-0.xml: Set ECRAuthors TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _ROBOT_EXPRESSION_ TAG-NmLoader-0.xml: String role=new String("wt.project.role.ECR AUTHOR");@com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.setRoleToECN((wt.change2.WTChangeOrder2)primaryBusinessObject#role);@role=new String("wt.project.role.PR AUTHOR");@com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.setRoleToECN((wt.change2.WTChangeOrder2)primaryBusinessObject#role); TAG-NmLoader-0.xml: Set CAI and CAII TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _ROBOT_EXPRESSION_ TAG-NmLoader-0.xml: java.lang.String role="wt.project.role.CHANGE ADMINISTRATOR I";@com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.setRoleToECN((wt.change2.WTChangeOrder2)primaryBusinessObject# role);@role="wt.project.role.CHANGE ADMINISTRATOR II";@com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.setRoleToECN((wt.change2.WTChangeOrder2)primaryBusinessObject# role); TAG-NmLoader-0.xml: Set Changeables to Released TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _ROBOT_EXPRESSION_ TAG-NmLoader-0.xml: com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.promoteChangeables((wt.change2.WTChangeOrder2)primaryBusinessObject); TAG-NmLoader-0.xml: Set Change Notice Resolution Date TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _ROBOT_EXPRESSION_ TAG-NmLoader-0.xml: com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.setECNResolutionDate((wt.change2.WTChangeOrder2)primaryBusinessObject); TAG-NmLoader-0.xml: Set ECRAuthors TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _ROBOT_EXPRESSION_ TAG-NmLoader-0.xml: String role=new String("wt.project.role.ECR AUTHOR");@com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.setRoleToECN((wt.change2.WTChangeOrder2)primaryBusinessObject#role); TAG-NmLoader-0.xml: Set Submit Date TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _ROBOT_EXPRESSION_ TAG-NmLoader-0.xml: submitDate=new Timestamp(System.currentTimeMillis()); TAG-NmLoader-0.xml: Set Unpromotable TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _ROBOT_EXPRESSION_ TAG-NmLoader-0.xml: wt.fc.collections.WTHashSet unpromChanges = (wt.fc.collections.WTHashSet) com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.getUnpromotableChangeables((wt.change2.WTChangeOrder2)primaryBusinessObject);@java.util.Iterator i = unpromChanges.persistableIterator();@wt.enterprise.RevisionControlled p = null;@String unpromotables = "";@if (i.hasNext()){@ p = (wt.enterprise.RevisionControlled)i.next();@ unpromotables = unpromotables + p.getDisplayIdentity();@}@while (i.hasNext()){@ p = (wt.enterprise.RevisionControlled)i.next();@ unpromotables = unpromotables + "; " + p.getDisplayIdentity();@}@if (unpromotables.length()!=0){@ unpromotable = "<b>- The following Resulting Data will not be promoted because there is no change transition defined: \n";@ java.util.StringTokenizer s = new java.util.StringTokenizer( unpromotables# ";" );@ while (s.hasMoreTokens()){@ unpromotable += "- - " + s.nextToken() + "\n";@ }@ unpromotable += "\n There are two ways to resolve the issue: \n 1. If you did not intend to promote the resulting data# then simply complete the task. \n 2. If you did intend to promote the resulting data# there may be a problem with the configuration of lifecycle templates. Select the Rework option and enter comments for Change Administrator II.";@ unpromotable += "</b>";@} TAG-NmLoader-0.xml: Submit Now TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _SYNCH_EXPRESSION_ TAG-NmLoader-0.xml: // Continue if the primaryBusinessObject has progressed past the initial state@inInitialPhase =wt.lifecycle.LifeCycleHelper.service.isInInitialPhase((wt.lifecycle.LifeCycleManaged)primaryBusinessObject) ;@if (inInitialPhase != true)@ result = "Go";@else@ result = null; TAG-NmLoader-0.xml: _INITIAL_SYNCH_EXPRESSION_ TAG-NmLoader-0.xml: // Continue if the primaryBusinessObject has progressed past the initial state@inInitialPhase =wt.lifecycle.LifeCycleHelper.service.isInInitialPhase((wt.lifecycle.LifeCycleManaged)primaryBusinessObject) ;@if (inInitialPhase != true)@ result = "Go";@else@ result = null; TAG-NmLoader-0.xml: Synch on CA Complete TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: cibComments TAG-NmLoader-0.xml: auditComments TAG-NmLoader-0.xml: submitDate TAG-NmLoader-0.xml: approvalDate TAG-NmLoader-0.xml: fastTrack TAG-NmLoader-0.xml: amendComments TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: unpromotable TAG-NmLoader-0.xml: _SYNCH_EXPRESSION_ TAG-NmLoader-0.xml: // "Complete" and the rest are in state "Complete" or "Cancel." @// It returns ProcessHelper.CANCELLED if all Change Orders are in state "Cancelled" or@// ProcessHelper.NOT_FINISHED if at least one Change Order is pending @// (i.e. has not reached either state "Complete" or "Cancelled"). @@String checkActivitiesFinished = null;@checkActivitiesFinished = com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.checkActivitiesFinished((wt.change2.WTChangeOrder2)primaryBusinessObject);@@if (checkActivitiesFinished.equals(com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.RESOLVED))@ result = "Resolved";@ @else if (checkActivitiesFinished.equals(com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.CANCELLED))@ result = "Cancelled";@else if (checkActivitiesFinished.equals(com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.NOT_FINISHED))@ result = null; TAG-NmLoader-0.xml: _INITIAL_SYNCH_EXPRESSION_ TAG-NmLoader-0.xml: // "Complete" and the rest are in state "Complete" or "Cancel." @// It returns ProcessHelper.CANCELLED if all Change Orders are in state "Cancelled" or@// ProcessHelper.NOT_FINISHED if at least one Change Order is pending @// (i.e. has not reached either state "Complete" or "Cancelled"). @@String checkActivitiesFinished = null;@checkActivitiesFinished = com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.checkActivitiesFinished((wt.change2.WTChangeOrder2)primaryBusinessObject);@@if (checkActivitiesFinished.equals(com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.RESOLVED))@ result = "Resolved";@ @else if (checkActivitiesFinished.equals(com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.CANCELLED))@ result = "Cancelled";@else if (checkActivitiesFinished.equals(com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.NOT_FINISHED))@ result = null; TAG-NmLoader-0.xml: Submit Change Notice TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: inInitialPhase TAG-NmLoader-0.xml: START TAG-NmLoader-0.xml: result = inInitialPhase; TAG-NmLoader-0.xml: Audit Change Notice TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: Comments TAG-NmLoader-0.xml: Unpromotables TAG-NmLoader-0.xml: Rework Change Notice Task TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: Comments TAG-NmLoader-0.xml: unpromotable2 TAG-NmLoader-0.xml: COMPLETE TAG-NmLoader-0.xml: wt.fc.collections.WTHashSet unpromChanges = (wt.fc.collections.WTHashSet) com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.getUnpromotableChangeables((wt.change2.WTChangeOrder2)primaryBusinessObject);@java.util.Iterator i = unpromChanges.persistableIterator();@wt.enterprise.RevisionControlled p = null;@String unpromotable1="";@if (i.hasNext()){@ p = (wt.enterprise.RevisionControlled)i.next();@ unpromotable1 = unpromotable1 + p.getName();@}@while (i.hasNext()){@ p = (wt.enterprise.RevisionControlled)i.next();@ unpromotable1 = unpromotable1 + "; " + p.getName();@}@if (unpromotable1.length()!=0){@ unpromotable2 = "<b>- The following Resulting Data will not be promoted because there is no change transition defined: \n";@ java.util.StringTokenizer s = new java.util.StringTokenizer( unpromotable1# ";" );@ while (s.hasMoreTokens()){@ unpromotable2 += "- - " + s.nextToken() + "\n";@ }@ unpromotable2 += "\n There are two ways to resolve the issue: \n 1. If you did not intend to promote the resulting data# then simply complete the task. \n 2. If you did intend to promote the resulting data# there may be a problem with the configuration of lifecycle templates. Select the Rework option and enter comments for Change Administrator II.";@ unpromotable2 += "</b>";@} TAG-NmLoader-0.xml: Amend Change Notice Plan TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: Comments TAG-NmLoader-0.xml: Schedule CIB Review TAG-NmLoader-0.xml: primaryBusinessObject TAG-NmLoader-0.xml: approval_date TAG-NmLoader-0.xml: Comments TAG-NmLoader-0.xml: Approve TAG-NmLoader-0.xml: approval_date=new Timestamp(System.currentTimeMillis());