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, critUNAPPROVEDAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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 |
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 |
destroy()
Unregister event listeners.
|
Assignment |
getAssingment(java.lang.String assignmentid,
UserInfo userInfo) |
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.
|
Labor |
getLaborCode(UserInfo userInfo) |
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 |
restart()
Indicates that the Service should reload any cached information.
|
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, verifyUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonServicepublic static final int MAXPRIORITY
public WOService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic WOService(MXServer mxServer) throws java.rmi.RemoteException
mxServer - the "Server Environment" this Service is being created in.java.rmi.RemoteExceptionpublic void restart()
throws java.rmi.RemoteException
restart in interface ServiceRemoterestart in class AppServicejava.rmi.RemoteExceptionpublic void calculateWorkPriority(MboRemote forWO, UserInfo ui) throws MXException, java.rmi.RemoteException
calculateWorkPriority in interface WOServiceRemoteforWO - the workorder which its CalcPriority need be calculated.ui - The user info object for the user.MXExceptionjava.rmi.RemoteExceptionpublic void calculateResponseDate(WO forWO) throws MXException, java.rmi.RemoteException
forWO - the workorder which its RespondBy need be calculated.MXExceptionjava.rmi.RemoteExceptionpublic WoEditSettings getEditSettings(WO forWO) throws MXException, java.rmi.RemoteException
forWO - The workorder to get edit settings for.MXExceptionjava.rmi.RemoteExceptionpublic 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.MXExceptionjava.rmi.RemoteExceptionpublic void updateWoForMovedAsset(MboRemote movedAsset) throws MXException, java.rmi.RemoteException
updateWoForMovedAsset in interface WOServiceRemotemovedAsset - the asset Mbo which has moved.MXExceptionjava.rmi.RemoteExceptionpublic void initCriteriaList(java.util.Hashtable criteriaTable)
throws MXException,
java.rmi.RemoteException
initCriteriaList in class AppServicecriteriaTable - the Hashtable to store Criterias.MXExceptionjava.rmi.RemoteExceptionpublic boolean tagoutsMustBelongToHazards()
throws MXException,
java.rmi.RemoteException
TAGOUTSHAVEHAZARDS,
but now always returns True.MXExceptionjava.rmi.RemoteExceptionpublic void init()
init in interface Serviceinit in class AppServiceWorkOrderListener,
WOStatusChangeListenerpublic void destroy()
destroy in interface Servicedestroy in class AppServiceAppService.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 WOServiceRemotewo - 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")MXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic 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.RemoteExceptionMXExceptionpublic Labor getLaborCode(UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXException