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 |
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, 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