Requirement:
Bring over supervisor field from the pm to a child workorder of a parent workorder when
routes are being used for multiple route stops
Since this is 6.2.x and there is no route stop id like in version 7, need to do extra steps.
Background info:
This method assumes the out of the box relationship PARENT exists:
In the wo.class there’s a piece of code
newWO.setValue("worts1", stopMbo.getString("rts1"), 2L);
the code sets the value of workorder.worts1 to be the same as route_stop.rts1
STEPS:
Go to database config
Bring up the ROUTE_STOP object
Set the default value to be X for RTS1
Save
Shut down app server and run configdb.bat under maximo\tools\maximo
Start the app server back up
setting the default value should take care of the new routes
for existing routes, run the sql statement to set default value
update route_stop set RTS1=’X’;
COMMIT;
TEST:
run PM wogen for PM 1009, route 1002, work order L1157 got generated with 7 children
If you unhide the WORTS1 on the screen, the child work orders will have ‘X’ in the WORTS1 field
Create an index on work order based on historyflag, istask and rts1.
Create a non-repeating escalation that looks for open child work orders with a route stop id ( i.e. WORTS1
= 'X') and no supervisor and fill it in with the parent.
Escalation point condition:
WORTS1 = 'X' and historyflag = 0 and istask = 0
Go to the actions application , create a new Action to set the value for supervisor to be the same as parent’s
supervisor
add this action to the escalation
go to the crontask application, bring up escalation crontask
go to the childwo escalation and tick active checkbox
go to actions menu, reload request
tick the escchildwo, click OK
go to the generated child work order e.g. L1158
supervisor’s field has been populated in the child work order
© Copyright 2026 Paperzz