TAG-NmLoader-0.xml: ECO Process
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: ammendComments
TAG-NmLoader-0.xml: inInitialPhase
TAG-NmLoader-0.xml: ecoNumber
TAG-NmLoader-0.xml: ecoName
TAG-NmLoader-0.xml: ecoContainer
TAG-NmLoader-0.xml: ecoDescription
TAG-NmLoader-0.xml: Rework_Comments
TAG-NmLoader-0.xml: isRework
TAG-NmLoader-0.xml: Set State Implementation
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: aState
TAG-NmLoader-0.xml: Set State Implementation
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: aState
TAG-NmLoader-0.xml: ECO Complete Notification
TAG-NmLoader-0.xml: subject
TAG-NmLoader-0.xml: message
TAG-NmLoader-0.xml: primaryBusinessObject
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: Set State Pending Approval
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: aState
TAG-NmLoader-0.xml: ECO Rejected by CC
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: ECO Submitted
TAG-NmLoader-0.xml: subject
TAG-NmLoader-0.xml: message
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: Set State Closed
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: aState
TAG-NmLoader-0.xml: ECP Rejected by Govt
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: Set ECO 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: ammendComments
TAG-NmLoader-0.xml: inInitialPhase
TAG-NmLoader-0.xml: ecoNumber
TAG-NmLoader-0.xml: ecoName
TAG-NmLoader-0.xml: ecoContainer
TAG-NmLoader-0.xml: ecoDescription
TAG-NmLoader-0.xml: Rework_Comments
TAG-NmLoader-0.xml: isRework
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 Submit Date# etc.
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: ammendComments
TAG-NmLoader-0.xml: inInitialPhase
TAG-NmLoader-0.xml: ecoNumber
TAG-NmLoader-0.xml: ecoName
TAG-NmLoader-0.xml: ecoContainer
TAG-NmLoader-0.xml: ecoDescription
TAG-NmLoader-0.xml: Rework_Comments
TAG-NmLoader-0.xml: isRework
TAG-NmLoader-0.xml: _ROBOT_EXPRESSION_
TAG-NmLoader-0.xml: submitDate=new Timestamp(System.currentTimeMillis());@ecoName = ((wt.change2.WTChangeOrder2)primaryBusinessObject).getName();@ecoNumber = ((wt.change2.WTChangeOrder2)primaryBusinessObject).getNumber();@ecoDescription = ((wt.change2.WTChangeOrder2)primaryBusinessObject).getDescription();@ecoContainer = ((wt.change2.WTChangeOrder2)primaryBusinessObject).getContainerName();@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.ECR AUTHOR";@com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.setRoleToECN((wt.change2.WTChangeOrder2)primaryBusinessObject# role);
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: ammendComments
TAG-NmLoader-0.xml: inInitialPhase
TAG-NmLoader-0.xml: ecoNumber
TAG-NmLoader-0.xml: ecoName
TAG-NmLoader-0.xml: ecoContainer
TAG-NmLoader-0.xml: ecoDescription
TAG-NmLoader-0.xml: Rework_Comments
TAG-NmLoader-0.xml: isRework
TAG-NmLoader-0.xml: _SYNCH_EXPRESSION_
TAG-NmLoader-0.xml: // This code returns COMPLETED if at least one Change Activity is in state @// "Completed" and the rest are in state "Completed" or "Cancelled". @// It returns CANCELLED if all Change Activities are in state "Cancelled" or@// NOT_FINISHED if at least one Change Activity is pending @// (i.e. has not reached either state "Completed" or "Cancelled").@@wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeActivities( (wt.change2.ChangeOrder2) primaryBusinessObject );@@String result_value = "NO_SUBORDINATES";@while( qResult.hasMoreElements() ) {@ wt.fc.Persistable persistable = (wt.fc.Persistable) qResult.nextElement();@ if( persistable instanceof wt.lifecycle.LifeCycleManaged ) {@ wt.lifecycle.LifeCycleManaged life_cycle_managed = (wt.lifecycle.LifeCycleManaged) persistable;@ if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState("COMPLETED")) ) {@ result_value = "COMPLETED";@ } else@ if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState("CANCELLED")) ) {@ if( result_value == "NO_SUBORDINATES" || !result_value.equals("COMPLETED") )@ result_value = "CANCELLED";@ } else {@ result_value = "NOT_FINISHED";@ }@ }@}@@if( (result_value.equals("COMPLETED") || result_value.equals("NO_SUBORDINATES")) && !isRework )@ result = "Complete";@else if( result_value.equals("CANCELLED") )@ result = "Cancelled";@else if( result_value.equals("NOT_FINISHED") )@ result = null;
TAG-NmLoader-0.xml: _INITIAL_SYNCH_EXPRESSION_
TAG-NmLoader-0.xml: // This code returns COMPLETED if at least one Change Activity is in state @@// "Completed" and the rest are in state "Completed" or "Cancelled". @@// It returns CANCELLED if all Change Activities are in state "Cancelled" or@@// NOT_FINISHED if at least one Change Activity is pending @@// (i.e. has not reached either state "Completed" or "Cancelled").@@@@wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeActivities( (wt.change2.ChangeOrder2) primaryBusinessObject );@@@@String result_value = "NO_SUBORDINATES";@@while( qResult.hasMoreElements() ) {@@ wt.fc.Persistable persistable = (wt.fc.Persistable) qResult.nextElement();@@ if( persistable instanceof wt.lifecycle.LifeCycleManaged ) {@@ wt.lifecycle.LifeCycleManaged life_cycle_managed = (wt.lifecycle.LifeCycleManaged) persistable;@@ if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState("COMPLETED")) ) {@@ result_value = "COMPLETED";@@ } else@@ if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState("CANCELLED")) ) {@@ if( result_value == "NO_SUBORDINATES" || !result_value.equals("COMPLETED") )@@ result_value = "CANCELLED";@@ } else {@@ result_value = "NOT_FINISHED";@@ }@@ }@@}@@@@if( (result_value.equals("COMPLETED") || result_value.equals("NO_SUBORDINATES")) && !isRework )@@ result = "Complete";@@else if( result_value.equals("CANCELLED") )@@ result = "Cancelled";@@else if( result_value.equals("NOT_FINISHED") )@@ 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: ammendComments
TAG-NmLoader-0.xml: inInitialPhase
TAG-NmLoader-0.xml: ecoNumber
TAG-NmLoader-0.xml: ecoName
TAG-NmLoader-0.xml: ecoContainer
TAG-NmLoader-0.xml: ecoDescription
TAG-NmLoader-0.xml: Rework_Comments
TAG-NmLoader-0.xml: isRework
TAG-NmLoader-0.xml: _SYNCH_EXPRESSION_
TAG-NmLoader-0.xml: // This code returns COMPLETED if at least one Change Activity is in state @// "Completed" and the rest are in state "Completed" or "Cancelled". @// It returns CANCELLED if all Change Activities are in state "Cancelled" or@// NOT_FINISHED if at least one Change Activity is pending @// (i.e. has not reached either state "Completed" or "Cancelled").@@wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeActivities( (wt.change2.ChangeOrder2) primaryBusinessObject );@@String result_value = "NO_SUBORDINATES";@while( qResult.hasMoreElements() ) {@ wt.fc.Persistable persistable = (wt.fc.Persistable) qResult.nextElement();@ if( persistable instanceof wt.lifecycle.LifeCycleManaged ) {@ wt.lifecycle.LifeCycleManaged life_cycle_managed = (wt.lifecycle.LifeCycleManaged) persistable;@ if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState("COMPLETED")) ) {@ result_value = "COMPLETED";@ } else@ if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState("CANCELLED")) ) {@ if( result_value == "NO_SUBORDINATES" || !result_value.equals("COMPLETED") )@ result_value = "CANCELLED";@ } else {@ result_value = "NOT_FINISHED";@ }@ }@}@@if( (result_value.equals("COMPLETED") || result_value.equals("NO_SUBORDINATES")) && !isRework )@ result = "Complete";@else if( result_value.equals("CANCELLED") )@ result = "Cancelled";@else if( result_value.equals("NOT_FINISHED") )@ result = null;
TAG-NmLoader-0.xml: _INITIAL_SYNCH_EXPRESSION_
TAG-NmLoader-0.xml: // This code returns COMPLETED if at least one Change Activity is in state @@// "Completed" and the rest are in state "Completed" or "Cancelled". @@// It returns CANCELLED if all Change Activities are in state "Cancelled" or@@// NOT_FINISHED if at least one Change Activity is pending @@// (i.e. has not reached either state "Completed" or "Cancelled").@@@@wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeActivities( (wt.change2.ChangeOrder2) primaryBusinessObject );@@@@String result_value = "NO_SUBORDINATES";@@while( qResult.hasMoreElements() ) {@@ wt.fc.Persistable persistable = (wt.fc.Persistable) qResult.nextElement();@@ if( persistable instanceof wt.lifecycle.LifeCycleManaged ) {@@ wt.lifecycle.LifeCycleManaged life_cycle_managed = (wt.lifecycle.LifeCycleManaged) persistable;@@ if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState("COMPLETED")) ) {@@ result_value = "COMPLETED";@@ } else@@ if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState("CANCELLED")) ) {@@ if( result_value == "NO_SUBORDINATES" || !result_value.equals("COMPLETED") )@@ result_value = "CANCELLED";@@ } else {@@ result_value = "NOT_FINISHED";@@ }@@ }@@}@@@@if( (result_value.equals("COMPLETED") || result_value.equals("NO_SUBORDINATES")) && !isRework )@@ result = "Complete";@@else if( result_value.equals("CANCELLED") )@@ result = "Cancelled";@@else if( result_value.equals("NOT_FINISHED") )@@ result = null;
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: ammendComments
TAG-NmLoader-0.xml: inInitialPhase
TAG-NmLoader-0.xml: ecoNumber
TAG-NmLoader-0.xml: ecoName
TAG-NmLoader-0.xml: ecoContainer
TAG-NmLoader-0.xml: ecoDescription
TAG-NmLoader-0.xml: Rework_Comments
TAG-NmLoader-0.xml: isRework
TAG-NmLoader-0.xml: _SYNCH_EXPRESSION_
TAG-NmLoader-0.xml: // Continue if the primaryBusinessObject has progressed past the initial state@// If the ECO is in state UNDERREVIEW# set to IMPLEMENTATION (Workaround for incedibly stupid OOTB implementation of AbstractUpdateChange2Delegate)@@wt.lifecycle.LifeCycleManaged lifecyclemanaged = (wt.lifecycle.LifeCycleManaged) primaryBusinessObject;@inInitialPhase =wt.lifecycle.LifeCycleHelper.service.isInInitialPhase( lifecyclemanaged ) ;@if( inInitialPhase != true ) {@ if( lifecyclemanaged.getLifeCycleState() == wt.lifecycle.State.toState("UNDERREVIEW") ) {@ wt.session.SessionContext sessioncontext = wt.session.SessionContext.getContext();@ try {@ wt.session.SessionHelper.manager.setAdministrator();@ primaryBusinessObject = (wt.fc.WTObject) wt.lifecycle.LifeCycleHelper.service.setLifeCycleState( lifecyclemanaged# wt.lifecycle.State.toState("IMPLEMENTATION") );@ } finally {@ wt.session.SessionContext.setContext( sessioncontext );@ }@ }@ 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@// If the ECO is in state UNDERREVIEW# set to IMPLEMENTATION (Workaround for incedibly stupid OOTB implementation of AbstractUpdateChange2Delegate)@@wt.lifecycle.LifeCycleManaged lifecyclemanaged = (wt.lifecycle.LifeCycleManaged) primaryBusinessObject;@@System.out.println("DEBUG# ECO Process# Submit Now; LifeCycleState = " + lifecyclemanaged.getLifeCycleState());@@inInitialPhase =wt.lifecycle.LifeCycleHelper.service.isInInitialPhase( lifecyclemanaged ) ;@if( inInitialPhase != true ) {@ if( lifecyclemanaged.getLifeCycleState() == wt.lifecycle.State.toState("UNDERREVIEW") ) {@ wt.session.SessionContext sessioncontext = wt.session.SessionContext.getContext();@ try {@ wt.session.SessionHelper.manager.setAdministrator();@ primaryBusinessObject = (wt.fc.WTObject) wt.lifecycle.LifeCycleHelper.service.setLifeCycleState( lifecyclemanaged# wt.lifecycle.State.toState("IMPLEMENTATION") );@ } finally {@ wt.session.SessionContext.setContext( sessioncontext );@ }@ }@ result = "Go";@} else {@ result = null;@}
TAG-NmLoader-0.xml: Update XXI
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: Government Review
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: Comments
TAG-NmLoader-0.xml: approval_date
TAG-NmLoader-0.xml: Rework_Comments
TAG-NmLoader-0.xml: Approve
TAG-NmLoader-0.xml: approval_date=new Timestamp(System.currentTimeMillis());
TAG-NmLoader-0.xml: Rework ECO
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: Comments
TAG-NmLoader-0.xml: Rework_Instructions
TAG-NmLoader-0.xml: isRework
TAG-NmLoader-0.xml: START
TAG-NmLoader-0.xml: isRework=true;
TAG-NmLoader-0.xml: COMPLETE
TAG-NmLoader-0.xml: isRework=false;
TAG-NmLoader-0.xml: Rework ECO
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: Comments
TAG-NmLoader-0.xml: Rework_Instructions
TAG-NmLoader-0.xml: isRework
TAG-NmLoader-0.xml: START
TAG-NmLoader-0.xml: isRework=true;
TAG-NmLoader-0.xml: COMPLETE
TAG-NmLoader-0.xml: isRework=false;
TAG-NmLoader-0.xml: Submit ECO
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: Verify ECO & Create ECN
TAG-NmLoader-0.xml: primaryBusinessObject
TAG-NmLoader-0.xml: Comments
TAG-NmLoader-0.xml: approval_date
TAG-NmLoader-0.xml: Rework_Comments
TAG-NmLoader-0.xml: Approve
TAG-NmLoader-0.xml: approval_date=new Timestamp(System.currentTimeMillis());