public class WOService extends AppService implements WOServiceRemote
Modifier and Type | Field and Description |
---|---|
static int |
MAXPRIORITY
The maximum priority value.
|
critAPPROVED, critAPPROVEDCHARGES, critHISTORY, critINCOMPLETE, critINCOMPLETECHARGES, critNOTCANCELLED, critNOTCOMPLETE, critOPEN, critOPENCHARGES, critUNAPPROVED
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
WOService()
constructor for WOService.
|
WOService(MXServer mxServer)
constructor for WOService.
|
Modifier and Type | Method and Description |
---|---|
void |
applyOwner(MboRemote wo,
java.lang.String owner)
Applies the selected owner to the current workorder.
|
void |
applyOwnerGroup(MboRemote wo,
java.lang.String ownergroup)
Applies the selected ownergroup to the current workorder.
|
void |
assignLabor(MboRemote assignment,
java.lang.String laborcode,
java.lang.String orgid) |
void |
calculateResponseDate(WO forWO)
Calculates the response time given the value of the CalcPriority attribute.
|
void |
calculateWorkPriority(MboRemote forWO,
UserInfo ui)
Calculates the value for the CalcPriority attribute, given the current values of
WoPriority and AssetLocPriority and the select priority formula.
|
void |
changeStatus(WORemote wo,
java.lang.String status,
java.util.Date date,
java.lang.String memo)
Service Method used to change status.
|
void |
changeWOStatus(WORemote wo,
java.lang.String status,
java.util.Date date,
java.lang.String memo)
Service Method used to change status.
|
java.util.Map<java.lang.String,java.lang.Object> |
checkEAcfg()
Check if EA configuration is valid.
|
void |
clearParentsInChangeStatus()
IV76966:called by WorkOrderListener postCommitAction
|
void |
completeAssignment(MboRemote assignment)
Completes the assignment, which will complete the work order as part of its action
if all assignments are completed.
|
void |
createAssignmentwithAssignedLabor(MboRemote workorder,
java.lang.String laborcode,
java.lang.String orgid,
java.lang.String laborhrs,
java.util.Date starttime)
Create an assignment from unplanned work.
|
MboRemote |
createChange(MboRemote wo) |
MboRemote |
createFollowUp(MboRemote wo) |
MboRemote |
createJPFromWO(MboRemote wo,
java.lang.String jpnum,
java.lang.String description,
java.lang.String longdescription) |
MboRemote |
createProblem(MboRemote wo) |
void |
destroy()
Unregister event listeners.
|
MboRemote |
downtimereport(MboRemote wo,
java.util.Date statuschangedate,
java.lang.String statuschangecode,
java.lang.String operational)
Change status of the asset by reporting downtime up/down.
|
void |
finishAssignment(MboRemote assignment) |
void |
generateWORelRecord(MboRemote wo,
java.lang.String wonum,
java.lang.String siteId)
Generates a new related record from workorder
|
Assignment |
getAssingment(java.lang.String assignmentid,
UserInfo userInfo) |
MboSetRemote |
getAvailableCrew(MboRemote wo,
java.util.Date fromdate,
java.util.Date todate,
java.lang.String persongroup,
java.lang.String amcrewtype,
java.lang.String company,
java.lang.Boolean assigned,
java.lang.String siteid,
java.lang.String orgid)
Gets the available crew for the current assignment.
|
MboSetRemote |
getAvailableLabor(MboRemote wo,
java.util.Date fromdate,
java.util.Date todate,
java.lang.String vendor,
java.lang.String contractnum,
java.lang.String location,
java.lang.Boolean assigned,
java.lang.String siteid,
java.lang.String craft,
java.lang.String skilllevel,
java.lang.String orgid)
Gets the available labor for the current assignment.
|
java.util.Map<java.lang.String,java.lang.Object> |
getEAToken()
Get token from EA
|
WoEditSettings |
getEditSettings(WO forWO)
Gets the edit settings for the status the workorder is at and its site.
|
WoEditSettings |
getISCalEditSettings(WO wo)
Gets the checks if is cal edit settings.
|
MboSetRemote |
getJobPlans(WORemote wo,
java.lang.Boolean jpincludeclassless,
java.lang.Boolean jpassets)
Service Method to fetch Possible Job plans for a work order
|
Labor |
getLaborCode(UserInfo userInfo) |
MboSetRemote |
getLaborCraftRateSet(MboRemote assignment)
Filters the LaborCraftRate Set
|
java.util.Vector |
getParentsInChangeStatus()
IV76966: Called by WO
|
MboRemote |
getQuickReportingWO(UserInfo userInfo) |
MboSetRemote |
getWorkLog(MboRemote wo,
java.lang.Boolean viewSR)
Gets the work log entries for the current workorder.
|
boolean |
getWorkTypeAttribute(WO forWO,
java.lang.String attr)
Determines the value for this workorder's worktype attribute.
|
void |
init()
Initialization
|
void |
initCriteriaList(java.util.Hashtable criteriaTable)
Criteria defined for the WOService object:
OPEN - all open work orders.
|
void |
interruptAssignment(MboRemote assignment) |
MboRemote |
multiAssetLocDowntimereport(MboRemote wo,
java.util.Date statuschangedate,
java.lang.String statuschangecode,
java.lang.String operational,
java.lang.String assetnum)
Change status of the multi asset location by reporting downtime up/down.
|
void |
ownership(MboRemote wo) |
void |
removeSafetyPlan(MboRemote wo) |
boolean |
removeWorkPlan(MboRemote wo) |
void |
reportDowntime(MboRemote wo,
java.util.Date startDate,
java.util.Date endDate,
double hoursDown,
java.lang.String code,
boolean operational) |
void |
restart()
Indicates that the Service should reload any cached information.
|
void |
startAssignment(MboRemote assignment) |
void |
startTimer(MboRemote wo) |
void |
stopTimer(MboRemote wo) |
void |
stopTimerStartFinishDates(MboRemote wo,
java.util.Date finishDateTime,
java.util.Date startDateTime,
java.lang.Boolean noStopTimerPopup) |
boolean |
tagoutsMustBelongToHazards()
Identify whether tagouts must belong to hazards.
|
void |
updateWoForMovedAsset(MboRemote movedAsset)
Updates the workorders which reference a piece of asset which has moved.
|
checkSecurity, configure, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, isAppService, isRunning, isSingletonService, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService
public static final int MAXPRIORITY
public WOService() throws java.rmi.RemoteException
java.rmi.RemoteException
public WOService(MXServer mxServer) throws java.rmi.RemoteException
mxServer
- the "Server Environment" this Service is being created in.java.rmi.RemoteException
public void restart() throws java.rmi.RemoteException
restart
in interface ServiceRemote
restart
in class AppService
java.rmi.RemoteException
public void calculateWorkPriority(MboRemote forWO, UserInfo ui) throws MXException, java.rmi.RemoteException
calculateWorkPriority
in interface WOServiceRemote
forWO
- the workorder which its CalcPriority need be calculated.ui
- The user info object for the user.MXException
java.rmi.RemoteException
public void calculateResponseDate(WO forWO) throws MXException, java.rmi.RemoteException
forWO
- the workorder which its RespondBy need be calculated.MXException
java.rmi.RemoteException
public WoEditSettings getEditSettings(WO forWO) throws MXException, java.rmi.RemoteException
forWO
- The workorder to get edit settings for.MXException
java.rmi.RemoteException
public boolean getWorkTypeAttribute(WO forWO, java.lang.String attr) throws MXException, java.rmi.RemoteException
forWO
- The work order needing work type informationattr
- The work type attribute desired. Either "PromptFail" or "PromptDown" for now.MXException
java.rmi.RemoteException
public void updateWoForMovedAsset(MboRemote movedAsset) throws MXException, java.rmi.RemoteException
updateWoForMovedAsset
in interface WOServiceRemote
movedAsset
- the asset Mbo which has moved.MXException
java.rmi.RemoteException
public void initCriteriaList(java.util.Hashtable criteriaTable) throws MXException, java.rmi.RemoteException
initCriteriaList
in class AppService
criteriaTable
- the Hashtable to store Criterias.MXException
java.rmi.RemoteException
public boolean tagoutsMustBelongToHazards() throws MXException, java.rmi.RemoteException
TAGOUTSHAVEHAZARDS
,
but now always returns True.MXException
java.rmi.RemoteException
public void init()
init
in interface Service
init
in class AppService
WorkOrderListener
,
WOStatusChangeListener
public void destroy()
destroy
in interface Service
destroy
in class AppService
AppService.destroy()
public void changeStatus(WORemote wo, java.lang.String status, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeStatus
in interface WOServiceRemote
wo
- Work Order Mbostatus
- The new statusdate
- The date of the status change. Defaults to the current date/time if null.memo
- The status change memo.MXException("access",
- "samestatus");
MXException("access", "UnrecogStatus")
MXException("workorder", "unappr")
MXException("workorder", "wappr")
MXException("workorder", "wappr")
MXException("workorder", "inprg")
MXException("workorder", "comp"")
MXException("workorder", "close")
MXException("workorder","can")
MXException("workorder","wsch")
MXException("access", "notauthorized")
MXException("workorder", "notcloselabtrans")
MXException("workorder", "actuals")
MXException("workorder", "CannotCancel")
MXException("workorder", "ReqApprContractToApprWO")
MXException("workorder", "processflowsuspended");
MXException("workorder", "cantcompletebeforestart")
MXException("workorder", "predecessorsnotcomp")
MXException("workorder", "parentnotstarted")
MXException("workorder", "invalidstatus")
MXException("workorder", "childrenmustbecompleted")MXException
java.rmi.RemoteException
throws MXException, RemoteException
public WoEditSettings getISCalEditSettings(WO wo) throws MXException, java.rmi.RemoteException
wo
- the woMXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionpublic Assignment getAssingment(java.lang.String assignmentid, UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public Labor getLaborCode(UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void ownership(MboRemote wo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public boolean removeWorkPlan(MboRemote wo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void removeSafetyPlan(MboRemote wo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void reportDowntime(MboRemote wo, java.util.Date startDate, java.util.Date endDate, double hoursDown, java.lang.String code, boolean operational) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void startTimer(MboRemote wo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void stopTimer(MboRemote wo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void stopTimerStartFinishDates(MboRemote wo, java.util.Date finishDateTime, java.util.Date startDateTime, java.lang.Boolean noStopTimerPopup) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote createFollowUp(MboRemote wo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote createChange(MboRemote wo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getQuickReportingWO(UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote createProblem(MboRemote wo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote createJPFromWO(MboRemote wo, java.lang.String jpnum, java.lang.String description, java.lang.String longdescription) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Vector getParentsInChangeStatus() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void clearParentsInChangeStatus() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void assignLabor(MboRemote assignment, java.lang.String laborcode, java.lang.String orgid) throws MXException, java.rmi.RemoteException
assignLabor
in interface WOServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public void startAssignment(MboRemote assignment) throws MXException, java.rmi.RemoteException
startAssignment
in interface WOServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public void interruptAssignment(MboRemote assignment) throws MXException, java.rmi.RemoteException
interruptAssignment
in interface WOServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public void finishAssignment(MboRemote assignment) throws MXException, java.rmi.RemoteException
finishAssignment
in interface WOServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public MboSetRemote getLaborCraftRateSet(MboRemote assignment) throws MXException, java.rmi.RemoteException
assignment
- MXException
java.rmi.RemoteException
public void createAssignmentwithAssignedLabor(MboRemote workorder, java.lang.String laborcode, java.lang.String orgid, java.lang.String laborhrs, java.util.Date starttime) throws MXException, java.rmi.RemoteException
createAssignmentwithAssignedLabor
in interface WOServiceRemote
workorder
- laborcode
- orgid
- laborhrs
- MXException
java.rmi.RemoteException
throws MXException, RemoteException;
public MboSetRemote getAvailableLabor(MboRemote wo, java.util.Date fromdate, java.util.Date todate, java.lang.String vendor, java.lang.String contractnum, java.lang.String location, java.lang.Boolean assigned, java.lang.String siteid, java.lang.String craft, java.lang.String skilllevel, java.lang.String orgid) throws MXException, java.rmi.RemoteException
getAvailableLabor
in interface WOServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public void applyOwner(MboRemote wo, java.lang.String owner) throws MXException, java.rmi.RemoteException
applyOwner
in interface WOServiceRemote
wo
- owner
- MXException
java.rmi.RemoteException
throws MXException, RemoteException
public void applyOwnerGroup(MboRemote wo, java.lang.String ownergroup) throws MXException, java.rmi.RemoteException
applyOwnerGroup
in interface WOServiceRemote
wo
- ownergroup
- MXException
java.rmi.RemoteException
throws MXException, RemoteException
public MboSetRemote getWorkLog(MboRemote wo, java.lang.Boolean viewSR) throws MXException, java.rmi.RemoteException
getWorkLog
in interface WOServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public void generateWORelRecord(MboRemote wo, java.lang.String wonum, java.lang.String siteId) throws MXException, java.rmi.RemoteException
wo
- wonum
- MXException
java.rmi.RemoteException
public MboRemote downtimereport(MboRemote wo, java.util.Date statuschangedate, java.lang.String statuschangecode, java.lang.String operational) throws MXException, java.rmi.RemoteException
wo
- - workorder object.statuschangedate-
- status change date.statuschangecode-
- status change code.operation-
- operational.MboRemote
MXException
java.rmi.RemoteException
public java.util.Map<java.lang.String,java.lang.Object> checkEAcfg() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Map<java.lang.String,java.lang.Object> getEAToken() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboSetRemote getJobPlans(WORemote wo, java.lang.Boolean jpincludeclassless, java.lang.Boolean jpassets) throws MXException, java.rmi.RemoteException
wo
- Work Order Mbojpincludeclassless
- Fetch Job Plans with No Classes Definedjpassets
- Fetch Job Plans for the Work Order's Asset and Location OnlyMXException
java.rmi.RemoteException
public void changeWOStatus(WORemote wo, java.lang.String status, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
wo
- Work Order Mbostatus
- The new statusdate
- The date of the status change. Defaults to the current date/time if null.memo
- The status change memo.MXException("access",
- "samestatus");
MXException("access", "UnrecogStatus")
MXException("workorder", "unappr")
MXException("workorder", "wappr")
MXException("workorder", "wappr")
MXException("workorder", "inprg")
MXException("workorder", "comp"")
MXException("workorder", "close")
MXException("workorder","can")
MXException("workorder","wsch")
MXException("access", "notauthorized")
MXException("workorder", "notcloselabtrans")
MXException("workorder", "actuals")
MXException("workorder", "CannotCancel")
MXException("workorder", "ReqApprContractToApprWO")
MXException("workorder", "processflowsuspended");
MXException("workorder", "cantcompletebeforestart")
MXException("workorder", "predecessorsnotcomp")
MXException("workorder", "parentnotstarted")
MXException("workorder", "invalidstatus")
MXException("workorder", "childrenmustbecompleted")
MXApplicationException("workorder","NeedDowntime")MXException
java.rmi.RemoteException
public void completeAssignment(MboRemote assignment) throws MXException, java.rmi.RemoteException
assignment
- - Assignment object.MXException
java.rmi.RemoteException
public MboSetRemote getAvailableCrew(MboRemote wo, java.util.Date fromdate, java.util.Date todate, java.lang.String persongroup, java.lang.String amcrewtype, java.lang.String company, java.lang.Boolean assigned, java.lang.String siteid, java.lang.String orgid) throws MXException, java.rmi.RemoteException
getAvailableCrew
in interface WOServiceRemote
MXException
java.rmi.RemoteException
throws MXException, RemoteException
public MboRemote multiAssetLocDowntimereport(MboRemote wo, java.util.Date statuschangedate, java.lang.String statuschangecode, java.lang.String operational, java.lang.String assetnum) throws MXException, java.rmi.RemoteException
wo
- - workorder object.statuschangedate-
- status change date.statuschangecode-
- status change code.operation-
- operational.assetnum-
- assetnum.MboRemote
MXException
java.rmi.RemoteException