public class JobPlan extends StatefulMbo implements JobPlanRemote
This is system level object that can be defined to exist at the system level, organization level or site level.
The key attributes for this object are OrgId, SiteId and Jpnum.
The attributes in this object are as follows::
Attribute Name | Description |
---|---|
Calendar | Calendar to determine the shift in which work is to be done. Foreign key to Calendar
|
CrewId | Identifier of the crew to perform this Job Plan. |
Description | Description of the Job Plan. |
Downtime | Indicates whether the asset must be down when the job plan is implemented. |
Interruptable | Indicates whether the job plan can be interrupted once it has started. |
Jobplanid | A system generated unique identifier for this job plan. |
Jpduration | Indicates the estimated number of hours it will take to complete the Job Plan. |
Jpnum | Identifier for the Job Plan. |
LaborCode | Indicates the craft primarily responsible for the work. |
OrgId | Identifier of the organization for this Job Plan.
|
Owner | |
OwnerGroup | |
Persongroup | |
Priority | Indicates the priority used for scheduling the work order to which this Job Plan may be assigned. |
Status | The status of the Job Plan. |
SiteId | Identifier of the site for the Job Plan.
|
Supervisor | Identifier for the person responsible for implementing the work. |
JP6 through JP15 | Extra Fields. |
onListTab, statusChangeButtonSigoption, targetStatusOption
MULTILANGCOPY, phantomList, phantomQueue
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
Constructor and Description |
---|
JobPlan(MboSet ms)
Construct the job plan object
|
Modifier and Type | Method and Description |
---|---|
void |
active(MboRemote jobplan,
java.lang.String currentMaxStatus,
java.lang.String desiredStatus,
java.util.Date date) |
void |
add()
Adds a new Job Plan.
|
void |
appValidate()
This method will be called to make sure it is a valid Job Plan record.
If this jobplan is not being added, the validateJPKey() method is called to validate the jpnum, orgid, siteid key combination. |
void |
canChangeStatus(JobPlanRemote jobplan,
java.lang.String currentStatus,
java.lang.String desiredStatus)
Checks the nested jobplans, parent to see if status change is allowed.
|
void |
canDelete()
Can this job plan be deleted ?
Deletion of a job plan will only be allowed if there is no reference to the job plan in WORKORDER, PM or PMSEQUENCE. |
void |
canDeleteAttachedDocs()
Check if the attached document can be deleted.
|
void |
canRevise()
Checks if a new revison can be created from the current job plan.
|
void |
changeChildrensFieldValue(java.lang.String fieldname,
java.lang.String fieldvalue,
long accessModifier) |
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
This method is overridden to add a wrapper to exceptions thrown during change status
and to write warnings whether or not the status change is successful
|
void |
clearClassification()
This method clears the classtructureid of the job plan.
|
void |
componentAdded()
Called when a component is added to this Job Plan.
|
void |
copyCrewTypeToWpLaborSet(MboSetRemote crewTypeSet)
copyCrewTypeCreates method - job plan labor set for the selected crew Type set.
|
void |
copySparePartsToJPMatSet(MboSetRemote sparePartSet)
Copies the passed SpareParts set to job Material set.
|
void |
createJPAssetFromWOAsset(Mbo fromWO,
MboSet jpAssets)
Create a Job Plan Asset Set from information on the given Work Order mbo.
|
Mbo |
createJPLaborFromWOLabor(Mbo fromWO,
Mbo fromWOLabor,
MboSet jpLabors)
Create a Job Plan Labor mbo from information on the given Work Order Labor mbo.
|
Mbo |
createJPMaterialFromWOMaterial(Mbo fromWO,
Mbo fromWOMaterial,
MboSet jpMaterials)
Create a Job Plan Material mbo from information on the given Work Order Material mbo.
|
Mbo |
createJPServiceFromWPService(Mbo fromWO,
Mbo fromWPService,
MboSet jpServiceSet)
Create a Job Plan Service mbo from information on the given WP Service mbo.
|
Mbo |
createJPTaskFromWOChild(Mbo fromWO,
Mbo fromWOChild,
MboSet jpTasks)
Create a Nested Job Plan Task mbo from information on the given Work Order Task mbo.
|
Mbo |
createJPTaskFromWOTask(Mbo fromWO,
Mbo fromWOTask,
MboSet jpTasks)
Create a Job Plan Task mbo from information on the given Work Order Task mbo.
|
Mbo |
createJPTaskRelFromWOTaskRel(Mbo fromWO,
Mbo fromWOTaskRel,
MboSet jptaskRelations,
java.util.Map<java.lang.String,Mbo> woTaskLookup)
Create a Job Plan Task Relation mbo from information
on the given Work Order Task Relation mbo.
|
Mbo |
createJPToolFromWOTool(Mbo fromWO,
Mbo fromWOTool,
MboSet jpTools)
Create a Job Plan Tool mbo from information on the given Work Order Tool mbo.
|
void |
delete(long accessModifier)
Delete job plan record.
|
void |
deleteJobTaskComponents(int jptask,
java.lang.String taskorg,
java.lang.String tasksite)
Deletes the jobtask component records that belong to the given
Task Number:Orgid:Siteid key combination.
|
void |
doChangeStatus(JobPlanRemote jobplan,
java.lang.String currentStatus,
java.lang.String desiredStatus,
java.util.Date date,
java.lang.String memo)
Does the actual work of changing the status down the hierarchy.
|
MboRemote |
duplicate()
This method creates a duplicate record for JobPlan and related objects.
|
java.util.Stack<MboRemote> |
findMatchingTasks(MboSetRemote taskSet,
java.lang.String orgid,
java.lang.String siteid,
java.lang.String jptask) |
void |
generateAutoKey()
generates an autokey for a new JobPlan.
|
boolean |
getHistoryFlag()
From StatefulMo: "For stateful mbo, there should always be a history flag.
|
MboSetRemote |
getJobPlanComponentSet(java.lang.String maxRelName,
java.lang.String orgid,
java.lang.String siteid)
Get a set of components for this job plan based on relationship name, orgid and siteid.
|
boolean |
getListPage()
Return true if it's coming from List Page Job Plan.
|
int |
getMaxValidStatusRevNum() |
MboSetRemote |
getMboSet(java.lang.String name)
Return related Job Plan sets that belong to the orgs and sites the user has access to.
|
int |
getNextRevNum() |
boolean |
getRevisedStatus()
Return JobPlan if it's Revised status or not.
|
java.lang.String |
getSpecificStringOfSites(MboSetRemote jobPlanSubSets)
IV59026: this is a different way of 12-14141/IV26317 to avoid while looping mbosets of jpassetsplink, joblabor,jobmaterial,jobservice, jobtool, and jobtasks
this method is used in conjuntion with getMboSet(String) for the sub sets of
a jobplan such as Materials/tools/services/tasks.
|
java.lang.String |
getStatusListName()
Returns the name of the jobplan status list , which is JPSTATUS
|
java.util.Vector |
getTotals(java.lang.String siteid)
Returns a vector of the totals for a given jobplan.
|
void |
init()
Initialization routine.
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
The logic of setting the readonly and required field flags to the mbo.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
Called whenever a relationship is initialized or reset from this Mbo to another MboSet.
|
boolean |
isDuringDUPLICATE()
IJ09032: Return true if it's coming from the app bean DUPLICATE method
|
boolean |
isRevEnabled()
Checks if is jobplan revision is enabled.
|
boolean |
isRevisionStatusNotAllowed()
Checks if the actual status is PNDRV OR REVISED
|
boolean |
nestedJobPlans(JobPlanRemote jobplan,
java.lang.String currentStatus,
java.lang.String desiredStatus)
Check the nested status's and throws a message prompting the user to change the status.
|
void |
propagateRevisionNumber(JobPlanRemote newRevision)
Propagate the new revision number to related objects.
|
void |
propagateRevisionStatus(JobPlanRemote newRevision)
Propagate the new Status number to related objects.
|
MboRemote |
revise(java.lang.String revDescription)
Creates a new revision of the current Job Plan.
|
void |
setChildrensFlowControl(boolean torf) |
void |
setDuringDUPLICATE(boolean value)
IJ09032: Used by JobPlanAppBean to set whether the DUPLICATE method is executing
|
void |
setListPage(boolean value)
Set listPage flag to be true, if it's coming from List Page Job Plan.
|
void |
setReadOnlyFields()
Sets the read-only status of fields and related objects according to
this object's status.
|
void |
setRelatedMboEditibility(java.lang.String relationName,
MboSetRemote relatedSet)
Sets appropriate read-only flags for related MboSets.
|
void |
setRevisedStatus(boolean value)
Set JobPlan Revised status.
|
void |
setStatusHistoryFields(JobPlan jp,
java.util.Date date,
java.lang.String memo) |
void |
suspendChildrensProcessFlow(boolean torf) |
void |
undeleteJobTaskComponents(int jptask,
java.lang.String taskorg,
java.lang.String tasksite)
Undeletes the jobtask component records that belong to the given
Task Number:Orgid:Siteid key combination.
|
void |
updatePredecessorFields() |
void |
validateJPKey()
This method will be called to verify the Job Plan key combination.
|
void |
validateNetwork(java.util.Hashtable<java.lang.String,java.util.LinkedList> htSuccessors,
java.util.LinkedList<java.lang.String> startingNodes,
boolean printDebugMsgs) |
void |
validateProcessFlow() |
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete
canChangeMaxStatus, canChangeStatus, canChangeStatus, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public JobPlan(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void initFieldFlagsOnMbo(java.lang.String attrName) throws MXException
Mbo
initFieldFlagsOnMbo
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXException
java.rmi.RemoteException
JobTask.delete(long)
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXException
java.rmi.RemoteException
delete
public void generateAutoKey() throws java.rmi.RemoteException, MXException
generateAutoKey
in interface MboRemote
generateAutoKey
in class Mbo
java.rmi.RemoteException
MXException
MboValue.autoKey()
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
public java.util.Vector getTotals(java.lang.String siteid) throws MXException, java.rmi.RemoteException
getTotals
in interface JobPlanRemote
siteid
- the site the jobplan applies to.MXException
java.rmi.RemoteException
JobPlanRemote.getTotals(String siteid)
public void copySparePartsToJPMatSet(MboSetRemote sparePartSet) throws MXException, java.rmi.RemoteException
copySparePartsToJPMatSet
in interface JobPlanRemote
sparePartSet
- the sparepart set to be copied.MXException
java.rmi.RemoteException
copySparePartsToJPMatSet(psdi.mbo.MboSetRemote)
public Mbo createJPTaskFromWOTask(Mbo fromWO, Mbo fromWOTask, MboSet jpTasks) throws MXException, java.rmi.RemoteException
fromWO
- = The WO mbo being copied from.fromWOTask
- = The WO Task mbo being copied.jpTasks
- = The set of Task mbo's for this Job Plan.MXException
java.rmi.RemoteException
public Mbo createJPTaskFromWOChild(Mbo fromWO, Mbo fromWOChild, MboSet jpTasks) throws MXException, java.rmi.RemoteException
fromWO
- = The WO mbo being copied from.fromWOTask
- = The WO Child mbo being copied.jpTasks
- = The set of Task mbo's for this Job Plan.MXException
java.rmi.RemoteException
public Mbo createJPLaborFromWOLabor(Mbo fromWO, Mbo fromWOLabor, MboSet jpLabors) throws MXException, java.rmi.RemoteException
fromWO
- = The WO mbo being copied from.fromWOLabor
- = The WO Labor mbo being copied.jpLabors
- = The set of Labor mbo's for this Job Plan.MXException
java.rmi.RemoteException
public Mbo createJPMaterialFromWOMaterial(Mbo fromWO, Mbo fromWOMaterial, MboSet jpMaterials) throws MXException, java.rmi.RemoteException
fromWO
- = The WO mbo being copied from.fromWOMaterial
- = The WO Material mbo being copied.jpMaterials
- = The set of Material mbo's for this Job Plan.MXException
java.rmi.RemoteException
public Mbo createJPServiceFromWPService(Mbo fromWO, Mbo fromWPService, MboSet jpServiceSet) throws MXException, java.rmi.RemoteException
fromWO
- = The WO mbo being copied from.fromWPService
- = The WO Material mbo being copied.jpServiceSet
- = The set of Service mbo's for this Job Plan.MXException
java.rmi.RemoteException
public Mbo createJPToolFromWOTool(Mbo fromWO, Mbo fromWOTool, MboSet jpTools) throws MXException, java.rmi.RemoteException
fromWO
- = The WO mbo being copied from.fromWOTool
- = The WO Tool mbo being copied.jpTools
- = The set of Tool mbo's for this Job Plan.MXException
java.rmi.RemoteException
public void createJPAssetFromWOAsset(Mbo fromWO, MboSet jpAssets) throws MXException, java.rmi.RemoteException
fromWO
- = The WO mbo being copied from.jpAssets
- = The set of Asset mbo's for this Job Plan.MXException
java.rmi.RemoteException
public Mbo createJPTaskRelFromWOTaskRel(Mbo fromWO, Mbo fromWOTaskRel, MboSet jptaskRelations, java.util.Map<java.lang.String,Mbo> woTaskLookup) throws MXException, java.rmi.RemoteException
fromWO
- = The WO mbo being copied from.fromWOTaskRel
- = The WO task relationship mbo being copied.jpTaskRelations
- = The set of task relationship mbo's for this Job Plan.woTaskLookup
- = A Map containing original wo numbers and new task idsMXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
- If jobplan key is invalid then an MXApplicationException will be thrownjava.rmi.RemoteException
public void validateJPKey() throws MXException, java.rmi.RemoteException
MXException
- If job plan key is invalid for a specific leveljava.rmi.RemoteException
public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
getMboSet
in interface MboRemote
getMboSet
in class Mbo
name
- The relationship provided to retrieve a
related mboSet, usually using foreign keys.
For example,
"psdi.app.workorder.WOSetRemote.ASSET" is
a relationship for the work order object to
access the asset Set where
"workorder.assetnum=asset.assetnum". The relationship can
also be chained. Such as ASSET.ASSETSTATUS.MXException
- "A relationship called {0} does not exist
for the {1} business object" exception
will be thrown if the relationship was not
found.
"Unknown Object" exception will be thrown
if the database object can not be
found through the relationship.java.rmi.RemoteException
Mbo.getMboSet(String)
public void deleteJobTaskComponents(int jptask, java.lang.String taskorg, java.lang.String tasksite) throws MXException, java.rmi.RemoteException
jptask
- Job Task numberorgid
- Job Task orgsiteid
- Job Task siteMXException
java.rmi.RemoteException
public void undeleteJobTaskComponents(int jptask, java.lang.String taskorg, java.lang.String tasksite) throws MXException, java.rmi.RemoteException
jptask
- Job Task numberorgid
- Job Task orgsiteid
- Job Task siteMXException
java.rmi.RemoteException
public void updatePredecessorFields() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void componentAdded() throws MXException, java.rmi.RemoteException
componentAdded
in interface JobPlanRemote
MXException
java.rmi.RemoteException
componentAdded()
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public void changeStatus(java.lang.String status, java.util.Date date, java.lang.String memo, long accessModifier) throws MXException, java.rmi.RemoteException
changeStatus
in interface StatefulMboRemote
changeStatus
in class StatefulMbo
status
- The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value
), not
the internal status value (valuelist.maxvalue
).date
- The effective date of the new status (java.util.Date
). If null
the current date/time is used.memo
- A string briefly describing the circumstances of the change. The
memo can be null.accessModifier
- A value of NOACCESSCHECK will cause the method not to call canChangeStatus.
Callers using this flag are responsible for ensuring that they are attempting a valid status change.MXException
- Thrown if there is a problem.java.rmi.RemoteException
StatefulMbo.canChangeStatus(String)
public void canChangeStatus(JobPlanRemote jobplan, java.lang.String currentStatus, java.lang.String desiredStatus) throws MXException, java.rmi.RemoteException
jobplan
- The current jobplan mbo.currentStatus
- The current status of the jobplan.desiredStatus
- The desired status of the jobplan, that its being changed to.MXException
java.rmi.RemoteException
public boolean nestedJobPlans(JobPlanRemote jobplan, java.lang.String currentStatus, java.lang.String desiredStatus) throws MXException, java.rmi.RemoteException
jobplan
- The current jobplan mbo.currentStatus
- The current status of the jobplan.desiredStatus
- The desired status of the jobplan, that its being changed to.MXException
java.rmi.RemoteException
public void doChangeStatus(JobPlanRemote jobplan, java.lang.String currentStatus, java.lang.String desiredStatus, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
jobplan
- The current jobplan, in the nest.currentStatus
- The current status of the jobplan.desiredStatus
- The desired status of the jobplan, that its being changed to.memo
- date
- MXException
java.rmi.RemoteException
public MboSetRemote getJobPlanComponentSet(java.lang.String maxRelName, java.lang.String orgid, java.lang.String siteid) throws MXException, java.rmi.RemoteException
getJobPlanComponentSet
in interface JobPlanRemote
maxRelName
- - name of the job plan component relationshiporgid
- - organization idsiteid
- - site idMXException
java.rmi.RemoteException
getJobPlanComponentSet(java.lang.String, java.lang.String, java.lang.String)
public void clearClassification() throws java.rmi.RemoteException, MXException
clearClassification
in interface JobPlanRemote
java.rmi.RemoteException
MXException
clearClassification()
public void validateProcessFlow() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void validateNetwork(java.util.Hashtable<java.lang.String,java.util.LinkedList> htSuccessors, java.util.LinkedList<java.lang.String> startingNodes, boolean printDebugMsgs) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Stack<MboRemote> findMatchingTasks(MboSetRemote taskSet, java.lang.String orgid, java.lang.String siteid, java.lang.String jptask) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void suspendChildrensProcessFlow(boolean torf) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setChildrensFlowControl(boolean torf) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void changeChildrensFieldValue(java.lang.String fieldname, java.lang.String fieldvalue, long accessModifier) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void propagateRevisionStatus(JobPlanRemote newRevision) throws java.rmi.RemoteException, MXException
newRevision
- the new job plan revisionMXException
java.rmi.RemoteException
public void propagateRevisionNumber(JobPlanRemote newRevision) throws java.rmi.RemoteException, MXException
newRevision
- the new job plan revisionMXException
java.rmi.RemoteException
public MboRemote revise(java.lang.String revDescription) throws MXException, java.rmi.RemoteException
revise
in interface JobPlanRemote
MXException
java.rmi.RemoteException
canRevise
public void canRevise() throws MXException, java.rmi.RemoteException
canRevise
in interface JobPlanRemote
MXApplicationException("pluscjp",
- "AlreadyRevised") - thrown if the current job plan is in the REVISED status.MXApplicationException("pluscjp",
- "ShouldBeActive") - thrown if the currenct job plan is not activeMXException
java.rmi.RemoteException
canRevise()
public void setReadOnlyFields() throws MXException, java.rmi.RemoteException
setReadOnlyFields
in interface JobPlanRemote
MXException
java.rmi.RemoteException
setReadOnlyFields()
public boolean isRevEnabled() throws MXException, java.rmi.RemoteException
isRevEnabled
in interface JobPlanRemote
MXException
- the mX exceptionjava.rmi.RemoteException
- the remote exceptionisRevEnabled()
public boolean isRevisionStatusNotAllowed() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
- the remote exceptionMXException
- the mX exceptionpublic void setStatusHistoryFields(JobPlan jp, java.util.Date date, java.lang.String memo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void active(MboRemote jobplan, java.lang.String currentMaxStatus, java.lang.String desiredStatus, java.util.Date date) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int getNextRevNum() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public int getMaxValidStatusRevNum() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.lang.String getSpecificStringOfSites(MboSetRemote jobPlanSubSets) throws MXException, java.rmi.RemoteException
jobPlanSubSets
- MXException
java.rmi.RemoteException
public void copyCrewTypeToWpLaborSet(MboSetRemote crewTypeSet) throws MXException, java.rmi.RemoteException
crewTypeSet
- MXException
java.rmi.RemoteException
public boolean getHistoryFlag() throws java.rmi.RemoteException, MXException
MXException
java.rmi.RemoteException
public void canDeleteAttachedDocs() throws MXException, java.rmi.RemoteException
StatefulMbo
canDeleteAttachedDocs
in interface StatefulMboRemote
canDeleteAttachedDocs
in class StatefulMbo
MXException
java.rmi.RemoteException
StatefulMbo.canDeleteAttachedDocs()
public void initRelationship(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
initRelationship
in class Mbo
relationName
- The relationship name of the related MboSet which needs to initialize.mboSet
- The related MboSet which needs to initialize.MXException
java.rmi.RemoteException
setRelatedMboEditibility(java.lang.String, psdi.mbo.MboSetRemote)
public void setRelatedMboEditibility(java.lang.String relationName, MboSetRemote relatedSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
initRelationship(java.lang.String, psdi.mbo.MboSetRemote)
,
PO#setRelatedMboEditibility
public void setRevisedStatus(boolean value) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean getRevisedStatus() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setListPage(boolean value) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean getListPage() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isDuringDUPLICATE()
public void setDuringDUPLICATE(boolean value)