public class WOService extends AppService implements WOServiceRemote
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXPRIORITY
The maximum priority value.
|
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, urlcritAPPROVED, 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 |
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 |
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) |
java.util.Map |
getAssistUri(OslcRequest request)
Get Uri from Assist API
|
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 |
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) |
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 |
startTimerStartDate(MboRemote wo,
java.util.Date startDateTime,
java.lang.Long anywhererefid,
java.lang.String transtype) |
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, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, isAppService, isRunning, isSingletonService, setName, setProxy, setRunning, setURL, verifyUser, verifyUserclone, equals, finalize, 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.RemoteExceptionMXExceptionpublic void ownership(MboRemote wo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic boolean removeWorkPlan(MboRemote wo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void removeSafetyPlan(MboRemote wo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic 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
MXExceptionjava.rmi.RemoteExceptionpublic void startTimer(MboRemote wo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void startTimerStartDate(MboRemote wo, java.util.Date startDateTime, java.lang.Long anywhererefid, java.lang.String transtype) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void stopTimer(MboRemote wo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void stopTimerStartFinishDates(MboRemote wo, java.util.Date finishDateTime, java.util.Date startDateTime, java.lang.Boolean noStopTimerPopup) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createFollowUp(MboRemote wo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createChange(MboRemote wo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getQuickReportingWO(UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createProblem(MboRemote wo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createJPFromWO(MboRemote wo, java.lang.String jpnum, java.lang.String description, java.lang.String longdescription) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Vector getParentsInChangeStatus()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void clearParentsInChangeStatus()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void assignLabor(MboRemote assignment, java.lang.String laborcode, java.lang.String orgid) throws MXException, java.rmi.RemoteException
assignLabor in interface WOServiceRemoteMXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic void startAssignment(MboRemote assignment) throws MXException, java.rmi.RemoteException
startAssignment in interface WOServiceRemoteMXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic void interruptAssignment(MboRemote assignment) throws MXException, java.rmi.RemoteException
interruptAssignment in interface WOServiceRemoteMXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic void finishAssignment(MboRemote assignment) throws MXException, java.rmi.RemoteException
finishAssignment in interface WOServiceRemoteMXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic MboSetRemote getLaborCraftRateSet(MboRemote assignment) throws MXException, java.rmi.RemoteException
assignment - MXExceptionjava.rmi.RemoteExceptionpublic 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 WOServiceRemoteworkorder - laborcode - orgid - laborhrs - MXExceptionjava.rmi.RemoteExceptionthrows 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 WOServiceRemoteMXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic void applyOwner(MboRemote wo, java.lang.String owner) throws MXException, java.rmi.RemoteException
applyOwner in interface WOServiceRemotewo - owner - MXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic void applyOwnerGroup(MboRemote wo, java.lang.String ownergroup) throws MXException, java.rmi.RemoteException
applyOwnerGroup in interface WOServiceRemotewo - ownergroup - MXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic MboSetRemote getWorkLog(MboRemote wo, java.lang.Boolean viewSR) throws MXException, java.rmi.RemoteException
getWorkLog in interface WOServiceRemoteMXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic void generateWORelRecord(MboRemote wo, java.lang.String wonum, java.lang.String siteId) throws MXException, java.rmi.RemoteException
wo - wonum - MXExceptionjava.rmi.RemoteExceptionpublic 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.MboRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.util.Map checkEAcfg()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Map getEAToken()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic 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 OnlyMXExceptionjava.rmi.RemoteExceptionpublic 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")MXExceptionjava.rmi.RemoteExceptionpublic void completeAssignment(MboRemote assignment) throws MXException, java.rmi.RemoteException
assignment - - Assignment object.MXExceptionjava.rmi.RemoteExceptionpublic 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 WOServiceRemoteMXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteExceptionpublic java.util.Map getAssistUri(OslcRequest request) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException