|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.apps.fnd.wf.engine.ActivityResult
This class is used by engines to navigate and locate the next activity to execute. An custom method uses this class to return a desired return mCode based on which the engine will find all match candidates and enlist them for execution.
This class is used mostly by standard activities with a fixed java interface.
Field Summary | |
static java.lang.String |
ANY_RESULT
|
static java.lang.String |
BLOCK_RESULT
|
static java.lang.String |
DEFAULT_RESULT
|
static java.lang.String |
ERROR_RESULT
|
static java.lang.String |
RCS_ID
|
static boolean |
RCS_ID_RECORDED
|
static java.lang.String |
WAITING_RESULT
|
Constructor Summary | |
ActivityResult(java.lang.String pCode,
java.lang.Object pSource)
Constructor, that takes in a return mCode |
|
ActivityResult(java.lang.String pCode,
java.lang.Object pSource,
java.util.Map pParameters)
Constructor, that takes in a return mCode and a list of mParameters |
Method Summary | |
void |
addParameter(java.lang.String pKey,
java.lang.Object pValue)
method to dynamically add mParameters |
static ActivityResult |
createAnyResult()
Utility factory method to create an Any result |
static ActivityResult |
createAnyResult(WorkItemProcessActivity pActivity)
Utility factory method to create an Any result |
static ActivityResult |
createBlockResult(WorkItemProcessActivity pActivity)
Utility factory method to create a blocking event |
static ActivityResult |
createErrorResult(WorkItemProcessActivity pActivity)
Utility factory method to create an error result |
static ActivityResult |
createWaitResult(WorkItemProcessActivity pActivity)
Utility factory method to create a waiting result |
java.lang.Object |
getParameter(java.lang.String pKey)
return named value stored in the mParameters |
java.lang.String |
getReturnCode()
Return event mCode when the activity result was constructed. |
java.lang.Object |
getSource()
return the source object that results in this event. |
boolean |
isAnyEvent()
Test if this event is an any event |
boolean |
isBlockEvent()
Test if this event is a block event |
static boolean |
isDefaultEvent(java.lang.String pCode)
Utitlity method to test if a mCode is default or not |
boolean |
isErrorEvent()
Test if this event is an error event |
boolean |
isWaitingEvent()
Test if this event is a waiting event |
java.lang.String |
toString()
Return a string representation of this activity result |
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
public static final java.lang.String DEFAULT_RESULT
public static final java.lang.String BLOCK_RESULT
public static final java.lang.String ANY_RESULT
public static final java.lang.String ERROR_RESULT
public static final java.lang.String WAITING_RESULT
Constructor Detail |
public ActivityResult(java.lang.String pCode, java.lang.Object pSource)
pCode
- returnCode that this wrapper class usespSource
- object that this result is associatedpublic ActivityResult(java.lang.String pCode, java.lang.Object pSource, java.util.Map pParameters)
pCode
- return mCode that this wrapper class usespSource
- : object that this result is associatedpParameters
- a list of name value pair that can be shared between
activities.Method Detail |
public boolean isErrorEvent()
public boolean isAnyEvent()
public boolean isBlockEvent()
public boolean isWaitingEvent()
public java.lang.Object getParameter(java.lang.String pKey)
pKey
- name of the parameterpublic void addParameter(java.lang.String pKey, java.lang.Object pValue)
pKey
- name of the parameterpValue
- obejct to be addedpublic java.lang.Object getSource()
public java.lang.String getReturnCode()
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean isDefaultEvent(java.lang.String pCode)
pCode
- : String result mCode to be testedpublic static ActivityResult createBlockResult(WorkItemProcessActivity pActivity)
pActivity
- :WorkItemProcessActivity
activity that this
result is associatedpublic static ActivityResult createErrorResult(WorkItemProcessActivity pActivity)
pActivity
- :WorkItemProcessActivity
activity that this
result is associatedpublic static ActivityResult createWaitResult(WorkItemProcessActivity pActivity)
pActivity
- :WorkItemProcessActivity
activity that this
result is associatedpublic static ActivityResult createAnyResult(WorkItemProcessActivity pActivity)
pActivity
- :WorkItemProcessActivity
activity that this
result is associatedpublic static ActivityResult createAnyResult()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |