fnm_eco_process\TAG-NmLoader-0.xml:    <csvexprBody>// This code returns COMPLETED if at least one Change Activity is in state @// &quot;Completed&quot; and the rest are in state &quot;Completed&quot; or &quot;Cancelled&quot;. @// It returns CANCELLED if all Change Activities are in state &quot;Cancelled&quot; or@// NOT_FINISHED if at least one Change Activity is pending @// (i.e. has not reached either state &quot;Completed&quot; or &quot;Cancelled&quot;).@@wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeActivities( (wt.change2.ChangeOrder2) primaryBusinessObject );@@String result_value = &quot;NO_SUBORDINATES&quot;;@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(&quot;COMPLETED&quot;)) ) {@			result_value = &quot;COMPLETED&quot;;@		} else@		if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState(&quot;CANCELLED&quot;)) ) {@			if( result_value == &quot;NO_SUBORDINATES&quot; || !result_value.equals(&quot;COMPLETED&quot;) )@				result_value = &quot;CANCELLED&quot;;@		} else {@			result_value = &quot;NOT_FINISHED&quot;;@		}@	}@}@@if( (result_value.equals(&quot;COMPLETED&quot;) || result_value.equals(&quot;NO_SUBORDINATES&quot;)) &amp;&amp; !isRework )@   result = &quot;Complete&quot;;@else if( result_value.equals(&quot;CANCELLED&quot;) )@   result = &quot;Cancelled&quot;;@else if( result_value.equals(&quot;NOT_FINISHED&quot;) )@   result = null;</csvexprBody>
fnm_eco_process\TAG-NmLoader-0.xml:    <csvexprBody>// This code returns COMPLETED if at least one Change Activity is in state @@// &quot;Completed&quot; and the rest are in state &quot;Completed&quot; or &quot;Cancelled&quot;. @@// It returns CANCELLED if all Change Activities are in state &quot;Cancelled&quot; or@@// NOT_FINISHED if at least one Change Activity is pending @@// (i.e. has not reached either state &quot;Completed&quot; or &quot;Cancelled&quot;).@@@@wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeActivities( (wt.change2.ChangeOrder2) primaryBusinessObject );@@@@String result_value = &quot;NO_SUBORDINATES&quot;;@@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(&quot;COMPLETED&quot;)) ) {@@			result_value = &quot;COMPLETED&quot;;@@		} else@@		if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState(&quot;CANCELLED&quot;)) ) {@@			if( result_value == &quot;NO_SUBORDINATES&quot; || !result_value.equals(&quot;COMPLETED&quot;) )@@				result_value = &quot;CANCELLED&quot;;@@		} else {@@			result_value = &quot;NOT_FINISHED&quot;;@@		}@@	}@@}@@@@if( (result_value.equals(&quot;COMPLETED&quot;) || result_value.equals(&quot;NO_SUBORDINATES&quot;)) &amp;&amp; !isRework )@@   result = &quot;Complete&quot;;@@else if( result_value.equals(&quot;CANCELLED&quot;) )@@   result = &quot;Cancelled&quot;;@@else if( result_value.equals(&quot;NOT_FINISHED&quot;) )@@   result = null;</csvexprBody>
fnm_eco_process\TAG-NmLoader-0.xml:    <csvexprBody>// This code returns COMPLETED if at least one Change Activity is in state @// &quot;Completed&quot; and the rest are in state &quot;Completed&quot; or &quot;Cancelled&quot;. @// It returns CANCELLED if all Change Activities are in state &quot;Cancelled&quot; or@// NOT_FINISHED if at least one Change Activity is pending @// (i.e. has not reached either state &quot;Completed&quot; or &quot;Cancelled&quot;).@@wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeActivities( (wt.change2.ChangeOrder2) primaryBusinessObject );@@String result_value = &quot;NO_SUBORDINATES&quot;;@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(&quot;COMPLETED&quot;)) ) {@			result_value = &quot;COMPLETED&quot;;@		} else@		if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState(&quot;CANCELLED&quot;)) ) {@			if( result_value == &quot;NO_SUBORDINATES&quot; || !result_value.equals(&quot;COMPLETED&quot;) )@				result_value = &quot;CANCELLED&quot;;@		} else {@			result_value = &quot;NOT_FINISHED&quot;;@		}@	}@}@@if( (result_value.equals(&quot;COMPLETED&quot;) || result_value.equals(&quot;NO_SUBORDINATES&quot;)) &amp;&amp; !isRework )@   result = &quot;Complete&quot;;@else if( result_value.equals(&quot;CANCELLED&quot;) )@   result = &quot;Cancelled&quot;;@else if( result_value.equals(&quot;NOT_FINISHED&quot;) )@   result = null;</csvexprBody>
fnm_eco_process\TAG-NmLoader-0.xml:    <csvexprBody>// This code returns COMPLETED if at least one Change Activity is in state @@// &quot;Completed&quot; and the rest are in state &quot;Completed&quot; or &quot;Cancelled&quot;. @@// It returns CANCELLED if all Change Activities are in state &quot;Cancelled&quot; or@@// NOT_FINISHED if at least one Change Activity is pending @@// (i.e. has not reached either state &quot;Completed&quot; or &quot;Cancelled&quot;).@@@@wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeActivities( (wt.change2.ChangeOrder2) primaryBusinessObject );@@@@String result_value = &quot;NO_SUBORDINATES&quot;;@@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(&quot;COMPLETED&quot;)) ) {@@			result_value = &quot;COMPLETED&quot;;@@		} else@@		if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState(&quot;CANCELLED&quot;)) ) {@@			if( result_value == &quot;NO_SUBORDINATES&quot; || !result_value.equals(&quot;COMPLETED&quot;) )@@				result_value = &quot;CANCELLED&quot;;@@		} else {@@			result_value = &quot;NOT_FINISHED&quot;;@@		}@@	}@@}@@@@if( (result_value.equals(&quot;COMPLETED&quot;) || result_value.equals(&quot;NO_SUBORDINATES&quot;)) &amp;&amp; !isRework )@@   result = &quot;Complete&quot;;@@else if( result_value.equals(&quot;CANCELLED&quot;) )@@   result = &quot;Cancelled&quot;;@@else if( result_value.equals(&quot;NOT_FINISHED&quot;) )@@   result = null;</csvexprBody>
fnm_eco_task_process\TAG-NmLoader-0.xml:    <csvexprBody>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(&quot;UNDERREVIEW&quot;) );@		}@	}@	trx.commit();@} catch( Exception e ) {@	if(trx != null)@		trx.rollback();@}</csvexprBody>
fnm_eco_task_process\TAG-NmLoader-0.xml:    <csvexprBody>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(&quot;CANCELLED&quot;) );@		}@	}@	trx.commit();@} catch( Exception e ) {@	if(trx != null)@		trx.rollback();@}</csvexprBody>
fnm_eco_task_process\TAG-NmLoader-0.xml:    <csvexprBody>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(&quot;RELEASED&quot;) );@		}@	}@	trx.commit();@} catch( Exception e ) {@	if(trx != null)@		trx.rollback();@}</csvexprBody>
fnm_eco_task_process\TAG-NmLoader-0.xml:    <csvexprBody>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(&quot;INWORK&quot;) );@		}@	}@	trx.commit();@} catch( Exception e ) {@	if(trx != null)@		trx.rollback();@}</csvexprBody>
fnm_ecr_process\TAG-NmLoader-0.xml:    <csvexprBody>// This code returns CLOSED if at least one Change Order is in state @// &quot;Closed&quot; and the rest are in state &quot;Closed&quot; or &quot;Cancelled&quot;. @// It returns CANCELLED if all Change Orders are in state &quot;Cancelled&quot; or@// NOT_FINISHED if at least one Change Order is pending @// (i.e. has not reached either state &quot;Closed&quot; or &quot;Cancelled&quot;).@@wt.fc.QueryResult qResult = wt.change2.ChangeHelper2.service.getChangeOrders( (wt.change2.ChangeRequest2) primaryBusinessObject );@@String result_value = &quot;NO_SUBORDINATES&quot;;@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(&quot;CLOSED&quot;)) ) {@			result_value = &quot;CLOSED&quot;;@		} else@		if( life_cycle_managed.getLifeCycleState().equals(wt.lifecycle.State.toState(&quot;CANCELLED&quot;)) ) {@			if( result_value == &quot;NO_SUBORDINATES&quot; || !result_value.equals(&quot;CLOSED&quot;) )@				result_value = &quot;CANCELLED&quot;;@		} else {@			result_value = &quot;NOT_FINISHED&quot;;@		}@	}@}@@if( result_value.equals(&quot;CLOSED&quot;) )@   result = &quot;Closed&quot;;@else if( result_value.equals(&quot;CANCELLED&quot;) )@   result = &quot;Cancelled&quot;;@else if( result_value.equals(&quot;NOT_FINISHED&quot;) )@   result = null;</csvexprBody>
