| 
||||||||
| 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.WorkItemProcessActivity
                          |
                          +--oracle.apps.fnd.wf.engine.WorkItemProcess
This public class represents an instance of a group of activities that forms a logical process unit. Its children are the individual activity instance created at runtime to fulfill the business logic defined by the process. It delegates the workflow functionality to an engine class. It is owned either by a WorkItem or another WorkItemProcess. It encapsulates all flow functions
 startFlow  
 continueFlow 
 suspendFlow 
 abortFlow 
 resumeFlow 
 
| Field Summary | |
static java.lang.String | 
RCS_ID
 | 
static boolean | 
RCS_ID_RECORDED
 | 
| Fields inherited from class oracle.apps.fnd.wf.engine.WorkItemProcessActivity | 
IGNORE, LOOP, RESET | 
| 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 | 
| Constructor Summary | |
WorkItemProcess(java.lang.String name)
Constructor with a name.  | 
|
| Method Summary | |
 void | 
abortFlow()
Aborts an existing this process  | 
 void | 
addChild(WorkItemProcessActivity pActivity)
This method override the parent method to be sure that workitem is assigned to each child of this process.  | 
 WorkItemProcessActivity | 
addStartActivity(ProcessActivity processActivity)
This method used by an engine only.  | 
 boolean | 
cancel(WorkflowContext pCtx,
       ActivityResult pActivityResult,
       WorkItemProcessActivity pActivity)
Called to cancel this process.  | 
 ActivityResult | 
continueFlow(java.lang.String pActivityId,
             ActivityResult pActivityResult)
A convenient method for continueFlow with a runtime id  | 
 ActivityResult | 
continueFlow(WorkItemProcessActivity pActivity,
             ActivityResult pActivityResult)
Continues flow with a previously blocked activity.  | 
 void | 
continueFlow(WorkItemProcessActivity pActivity,
             java.lang.String pActivityResult)
For backward compabilility  | 
 ActivityResult | 
execute(WorkflowContext pCtx,
        ActivityResult pActivityResult)
Execution entry point of a process.  | 
 Activity | 
getActivity()
This method override WorkItemProcessActivity to deal with root process that does not have a ProcessActivity instance  | 
 WorkItemProcessActivity | 
getActivityByLabel(java.lang.String pLabel)
Get the process activity instance, identified by given design time label.  | 
 WorkItemProcessActivity | 
getActivityByName(java.lang.String pName)
Get the process activity instance, identified by given runtime id It is possbile that there may be more than one instance.  | 
 java.util.List | 
getBlockedActivities(WorkflowContext pCtx)
This list all current blocking activities, including those of subprocesses of this activity.  | 
 java.util.List | 
getInstancesByNode(ProcessActivity pProcessActivity)
Convenient method to list all WorkItemProcessActivities for a given ProcessActivity.  | 
 java.lang.String | 
getName()
Get internal name of this process  | 
 java.util.List | 
getPendingActivities(WorkflowContext pCtx)
Returns a list of activity currently pending for execution.  | 
 Process | 
getProcess()
Retrieve the meta defintion of this process.  | 
 java.lang.String | 
getProcessName()
Return the name of process defintion  | 
 ActivityResult | 
handleError(WorkflowContext pCtx,
            java.lang.Throwable pThrowable)
Handle errors that occurs in this process.  | 
 void | 
resumeFlow()
Resume a previous suspended this process  | 
 void | 
retryActivity(WorkItemProcessActivity pActivity)
Retry a blocked activity  | 
 void | 
skipActivity(WorkItemProcessActivity pActivity,
             java.lang.String pReturnCode)
Skip a blocked activity  | 
 ActivityResult | 
startFlow()
Starts a previously created flow.  | 
 void | 
suspendFlow()
Suspends an existing this process  | 
 void | 
updateProcessStatus(WorkflowContext pCtx,
                    ActivityResult pActivityResult)
Force closing all pending activity.  | 
| Methods inherited from class oracle.apps.fnd.wf.engine.WorkItemProcessActivity | 
createExitTransitioins, getErrorProcess, getInstancePath, getOnRevisit, getOutTransitions, getProcessActivity, getRuntimeMsg, getWorkItemProcess, isEndActivity, isHistory | 
| Methods inherited from class oracle.apps.fnd.wf.engine.EngineBaseComponent | 
addChild, getAttributeValue, getAttributeValues, getEndDate, getMetaType, getStartDate, getStatus, getWorkItem, isActive, isComplete, save, setAttributeValue, setAttributeValues, setMetaType, setStatus | 
| Methods inherited from class oracle.apps.fnd.wf.common.BaseComponent | 
getChildByTypeAndName, getChildren, getChildrenByName, getChildrenByType, 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
| Constructor Detail | 
public WorkItemProcess(java.lang.String name)
name - :String internal name of the process. It should be unique
        within the scope of WorkItem| Method Detail | 
public ActivityResult continueFlow(WorkItemProcessActivity pActivity,
                                   ActivityResult pActivityResult)
                            throws WorkflowException
pActivity - :WorkItemProcessActivity that activity from which
        this flow will continuepActivityResult - :ActivityResult the return code used to
        continue the flow, this value dictates the route the flows out the
        activityActivityResult result from last activityWorkflowException - for failing assertion, or other engine
            errors.java.lang.IllegalArgumentException - Exception
public ActivityResult continueFlow(java.lang.String pActivityId,
                                   ActivityResult pActivityResult)
                            throws WorkflowException
pActivityId - : String activity runtime id from which the engine will
        continue the flowpActivityResult - : ActivityResult result with wich the engine will
        be used to decide the exit routes.WorkflowException - for failing assertion, or other engine
         errors.
public void continueFlow(WorkItemProcessActivity pActivity,
                         java.lang.String pActivityResult)
                  throws WorkflowException
pActivity - within which the engine is runningpActivityResult - - String representation of an activity resultWorkflowException - Exception
 To be deprecated
public ActivityResult startFlow()
                         throws WorkflowException
WorkflowException - for failing assertion, or other engine
         errors.
public void abortFlow()
               throws WorkflowException
WorkflowException - for failing assertion, or other engine
            errors.
public void suspendFlow()
                 throws WorkflowException
WorkflowException - for failing assertion, or other engine
         errors.
public void resumeFlow()
                throws WorkflowException
WorkflowException - for failing assertion, or other engine
         errors.
public ActivityResult handleError(WorkflowContext pCtx,
                                  java.lang.Throwable pThrowable)
                           throws UnhandledFaultException
WorkItemProcessActivity, but if that activity decides to buble up
 the error handling, this method get invoked.handleError in class WorkItemProcessActivitypCtx - :WorkflowContext context information when error
        occuredpThrowable - : Throwable error detailsUnhandledFaultException - if fault is  not handled
public void skipActivity(WorkItemProcessActivity pActivity,
                         java.lang.String pReturnCode)
                  throws WorkflowException
pActivity - Activity to be skippedpReturnCode - the return code to be used when skipping occurs. It
        should be one of the valid return code for this activity, or null
        if does not neededWorkflowException - for failing assertion, or other engine
         errors.java.lang.IllegalArgumentException - Exception
public void retryActivity(WorkItemProcessActivity pActivity)
                   throws WorkflowException
pActivity - Activity to be retried one of the valid return code for
        this activity, or null if does not neededWorkflowException - for failing assertion, or other engine
         errors.java.lang.IllegalArgumentException - Exception
public WorkItemProcessActivity getActivityByLabel(java.lang.String pLabel)
                                           throws WorkflowException
pLabel - the label for the process activityWorkflowException - for failing assertion, or other engine
         errors.
public WorkItemProcessActivity getActivityByName(java.lang.String pName)
                                          throws WorkflowException
pName - the internal name for the process activityWorkflowException - for failing assertion, or other engine
         errors.public java.lang.String getName()
getName in class BaseComponentpublic java.util.List getInstancesByNode(ProcessActivity pProcessActivity)
pProcessActivity - interested inpublic java.util.List getBlockedActivities(WorkflowContext pCtx)
pCtx - within which the engine is runningpublic java.util.List getPendingActivities(WorkflowContext pCtx)
pCtx - within which the engine is running
public Process getProcess()
                   throws WorkflowException
WorkflowException - Exception
public Activity getActivity()
                     throws WorkflowException
getActivity in class WorkItemProcessActivityWorkflowException - Exception
public ActivityResult execute(WorkflowContext pCtx,
                              ActivityResult pActivityResult)
                       throws WorkflowException
execute in class WorkItemProcessActivitypCtx - within which the engine is runningpActivityResult - - Activity result that leads to this process startsWorkflowException - when engine fails to start this process
public void updateProcessStatus(WorkflowContext pCtx,
                                ActivityResult pActivityResult)
pCtx - within which the engine is runningpActivityResult - Parameter
public boolean cancel(WorkflowContext pCtx,
                      ActivityResult pActivityResult,
                      WorkItemProcessActivity pActivity)
               throws WorkflowException
cancel in class WorkItemProcessActivitypCtx - :WorkflowContext context when cancel gets calledpActivityResult - : ActivityResult result code that to be used for
        cancel call for each of its activitiespActivity - : WorkItemProcessActivity instance from which the cancel
        process is started.WorkflowException - when cancel an activity fails.public void addChild(WorkItemProcessActivity pActivity)
pActivity - WorkItemProcessActivity to be addedpublic java.lang.String getProcessName()
public WorkItemProcessActivity addStartActivity(ProcessActivity processActivity)
                                         throws WorkflowException
processActivity - meta data for this instanceWorkflowException -  
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||