|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.apps.fnd.wf.common.Element | +--oracle.apps.fnd.wf.common.BaseComponent | +--oracle.apps.fnd.wf.engine.EngineBaseComponent | +--oracle.apps.fnd.wf.engine.WorkItem
This is the container component that holds all runtime components for a given itemtype and itemkey. It is registered in a store and is created by a factory. For example, to create a new WorkItem, WorkItemFactory
itemFactory = WorkItemFactory.getInstance();
WorkItem item = itemFactory.createWorkItem(rctx,mItemType,mItemKey,mProcessName);
Its id takes format of "<ItemType>:<ItemKey>".
It holds a reference to a WorkflowContext instance and a root process. The root process interfaces with a workflow engine while the WorkflowContext contains the contextual information for engine and data loader to use. This class is not responsible for creating nor destroying context object. It simply releases the reference once it is done with it.
Field Summary | |
static java.lang.String |
RCS_ID
|
static boolean |
RCS_ID_RECORDED
|
Fields inherited from class oracle.apps.fnd.wf.engine.EngineBaseComponent |
ACTIVE, BLOCK, CANCELLED, COMPLETE, ERROR, FORCED_COMPLETE, NOT_INITIALIZED, SUSPENDED, WAITING |
Fields inherited from class oracle.apps.fnd.wf.common.Element |
ELEMENT_DB_CREATED, ELEMENT_DB_CREATING, ELEMENT_DB_DIRTY, ELEMENT_DB_LOADED, ELEMENT_DB_LOADING, ELEMENT_DB_NOT_INITIALIZED, ELEMENT_DB_SAVED, ELEMENT_DB_SAVING |
Method Summary | |
java.lang.Object[] |
getAttributeValueArray()
Returns an array of item attributes |
java.lang.String |
getItemKey()
Returns item key of this instnace |
java.lang.String |
getItemType()
Returns item type of this instnace |
DesignBaseComponent |
getMetaType()
Returns ItemType on which this workitem is based |
java.lang.String |
getOwner()
Returns owner of of this item instnace |
java.lang.String |
getParentContext()
Returns item parent context |
java.lang.String |
getParentKey()
Gets parent item key |
java.lang.String |
getParentType()
Returns item parent type |
WorkItemProcess |
getProcess()
Returns root process of this instnace. |
java.lang.String |
getStatusInXML()
Return runtime status of this component in xml |
java.lang.String |
getUserKey()
Returns user defined key of this instnace |
void |
setAttributeValues(java.util.Map values)
Sets attribute values for this workitem. |
void |
setOwner(java.lang.String pOwner)
Sets new owner of this item instnace. |
void |
setParentContext(java.lang.String pParentType,
java.lang.String pParentKey,
java.lang.String pParentContext)
Sets context information for its parent workitem. |
void |
setUserKey(java.lang.String pUserKey)
Sets a user defined key of this instnace |
Methods inherited from class oracle.apps.fnd.wf.engine.EngineBaseComponent |
addChild, getAttributeValue, getAttributeValues, getEndDate, getInstancePath, getStartDate, getStatus, getWorkItem, isActive, isComplete, save, setAttributeValue, setMetaType, setStatus |
Methods inherited from class oracle.apps.fnd.wf.common.BaseComponent |
getChildByTypeAndName, getChildren, getChildrenByName, getChildrenByType, getName, getParent, removeChild, removeChildren |
Methods inherited from class oracle.apps.fnd.wf.common.Element |
create, getDBStatus, getId, load, setStore, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String RCS_ID
public static final boolean RCS_ID_RECORDED
Method Detail |
public WorkItemProcess getProcess() throws WorkflowException
WorkflowException
- when failed to create a processWorkItemProcess
public java.lang.String getItemType()
public java.lang.String getItemKey()
public void setUserKey(java.lang.String pUserKey) throws WorkflowException
pUserKey
- new user reference key for this item instanceWorkflowException
- Exceptionpublic java.lang.String getUserKey()
public void setOwner(java.lang.String pOwner) throws WorkflowException
pOwner
- new owner for this item instanceWorkflowException
- Exceptionpublic java.lang.String getOwner() throws WorkflowException
WorkflowException
- Exceptionpublic void setParentContext(java.lang.String pParentType, java.lang.String pParentKey, java.lang.String pParentContext) throws WorkflowException
pParentType
- type of the parent workitempParentKey
- id of the parent workitempParentContext
- context information for the parent workitemWorkflowException
- when failes persistent data operationpublic java.lang.String getParentType() throws WorkflowException
WorkflowException
- when failes persistent data operationpublic java.lang.String getParentKey() throws WorkflowException
WorkflowException
- when failes persistent data operationpublic java.lang.String getParentContext() throws WorkflowException
WorkflowException
- when failes persistent data operationpublic void setAttributeValues(java.util.Map values) throws WorkflowException
setAttributeValues
in class EngineBaseComponent
values
- Hashtable new attribute valuesWorkflowException
- when failes persistent data operationpublic java.lang.Object[] getAttributeValueArray() throws WorkflowException
WorkflowException
- when failes to retieve the attribute listpublic DesignBaseComponent getMetaType()
getMetaType
in class EngineBaseComponent
WorkflowRuntimeException
- when failes to loaded the definition of
the named item type.public java.lang.String getStatusInXML()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |