ECO Task Process
primaryBusinessObject
parentChangeOrder
ca_comments
Rework_Comments
START
// Initialize the parentChangeRequest variable@parentChangeOrder=com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.findChangeOrder( (wt.change2.WTChangeActivity2) primaryBusinessObject);@
Set State Completed
primaryBusinessObject
aState
Set State Implementation
primaryBusinessObject
aState
Set State Under Review
primaryBusinessObject
aState
Set State Implementation
primaryBusinessObject
aState
Set State Implementation
primaryBusinessObject
aState
Set Resulting Items Under Review
primaryBusinessObject
parentChangeOrder
ca_comments
Rework_Comments
_ROBOT_EXPRESSION_
wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeablesAfter( (wt.change2.ChangeActivity2)primaryBusinessObject );@wt.pom.Transaction trx = new wt.pom.Transaction();@trx.start();@try {@ 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;@ wt.lifecycle.LifeCycleHelper.service.setLifeCycleState(life_cycle_managed# wt.lifecycle.State.toState("UNDERREVIEW") );@ }@ }@ trx.commit();@} catch( Exception e ) {@ if(trx != null)@ trx.rollback();@}
Set Resulting Items Cancelled
primaryBusinessObject
parentChangeOrder
ca_comments
Rework_Comments
_ROBOT_EXPRESSION_
wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeablesAfter( (wt.change2.ChangeActivity2)primaryBusinessObject );@wt.pom.Transaction trx = new wt.pom.Transaction();@trx.start();@try {@ 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;@ wt.lifecycle.LifeCycleHelper.service.setLifeCycleState(life_cycle_managed# wt.lifecycle.State.toState("CANCELLED") );@ }@ }@ trx.commit();@} catch( Exception e ) {@ if(trx != null)@ trx.rollback();@}
Set Resulting Items Released
primaryBusinessObject
parentChangeOrder
ca_comments
Rework_Comments
_ROBOT_EXPRESSION_
wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeablesAfter( (wt.change2.ChangeActivity2)primaryBusinessObject );@wt.pom.Transaction trx = new wt.pom.Transaction();@trx.start();@try {@ 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;@ wt.lifecycle.LifeCycleHelper.service.setLifeCycleState(life_cycle_managed# wt.lifecycle.State.toState("RELEASED") );@ }@ }@ trx.commit();@} catch( Exception e ) {@ if(trx != null)@ trx.rollback();@}
Set Resulting Items In Work
primaryBusinessObject
parentChangeOrder
ca_comments
Rework_Comments
_ROBOT_EXPRESSION_
wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeablesAfter( (wt.change2.ChangeActivity2)primaryBusinessObject );@wt.pom.Transaction trx = new wt.pom.Transaction();@trx.start();@try {@ 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;@ wt.lifecycle.LifeCycleHelper.service.setLifeCycleState(life_cycle_managed# wt.lifecycle.State.toState("INWORK") );@ }@ }@ trx.commit();@} catch( Exception e ) {@ if(trx != null)@ trx.rollback();@}
Sync on ECO
primaryBusinessObject
parentChangeOrder
ca_comments
Rework_Comments
_SYNCH_EXPRESSION_
// Determine the state of the parent change request and branch accordingly@String state = com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.checkImplementation(parentChangeOrder);@if( state.equals("CLOSED") )@ result = "Closed";@else@if( state.equals("CANCELLED") )@ result = "Cancelled";@else@if( state.equals("IMPLEMENTATION") )@ result = "Implementation";@else@ result = null;
_INITIAL_SYNCH_EXPRESSION_
// Determine the state of the parent change request and branch accordingly@String state = com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.checkImplementation(parentChangeOrder);@if( state.equals("CLOSED") )@ result = "Closed";@else@if( state.equals("CANCELLED") )@ result = "Cancelled";@else@ result = null;
Synch on ECO Implementation
primaryBusinessObject
parentChangeOrder
ca_comments
Rework_Comments
_SYNCH_EXPRESSION_
// Determine the state of the parent change request and branch accordingly@String state = com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.checkImplementation(parentChangeOrder);@if (state.equals(com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.IMPLEMENTATION))@ result = "Go";@else@ result = null;
_INITIAL_SYNCH_EXPRESSION_
// Determine the state of the parent change request and branch accordingly@String state = com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.checkImplementation(parentChangeOrder);@if (state.equals(com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.IMPLEMENTATION))@ result = "Go";@else@ result = null;
Submit Task for Rework
primaryBusinessObject
Comments
Finalize ECO Review Task
primaryBusinessObject
Comments
Rework_Comments
Rework ECO Task
primaryBusinessObject
Comments
Rework_Instructions
parentChangeOrder
Complete ECO Task
primaryBusinessObject
parentChangeOrder
Review ECO Task
primaryBusinessObject
Comments
Rework_Comments