Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 1 (11.1.1.4.0)

E10651-05

oracle.adf.controller
Interface TaskFlowContext


public interface TaskFlowContext

Context information associated with a task flow instance. TaskFlowContext for the task flow on top of the stack is EL accessible via "controllerContext" implicit object.
For example: #{controllerContext.currentViewPort.taskFlowContext}


Method Summary
 TaskFlowId getTaskFlowId()
          Returns TaskFlowId corresponding to this context.
 TaskFlowTrainModel getTaskFlowTrainModel()
          Returns a task flow train model for this task flow, if a task flow represents a train.
 org.apache.myfaces.trinidad.model.MenuModel getTrainModel()
          Returns a train menu model for this task flow, if a task flow represents a train.
 boolean isDataDirty()
          Returns true if task flow contains any uncommitted ADF model data.
 

Method Detail

getTaskFlowId

TaskFlowId getTaskFlowId()
Returns TaskFlowId corresponding to this context.

Returns:
the task flow id

getTrainModel

org.apache.myfaces.trinidad.model.MenuModel getTrainModel()
Returns a train menu model for this task flow, if a task flow represents a train. Otherwise returns null.

Returns:
a train model or null
See Also:
MenuModel

getTaskFlowTrainModel

TaskFlowTrainModel getTaskFlowTrainModel()
                                         throws java.lang.IllegalStateException
Returns a task flow train model for this task flow, if a task flow represents a train. Otherwise returns null.

Returns:
a train model or null
Throws:
java.lang.IllegalStateException - if called before the task flow has been initialized or after it has completed.

isDataDirty

boolean isDataDirty()
Returns true if task flow contains any uncommitted ADF model data. If task flow is not based on ADF model or all ADF data has been committed, returns false

Returns:
true, if uncommitted ADF model data exists

Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 1 (11.1.1.4.0)

E10651-05

Copyright © 1997, 2011, Oracle. All rights reserved.