org.ikasan.framework.flow.invoker
Class FlowInvocationContext

java.lang.Object
  extended by org.ikasan.framework.flow.invoker.FlowInvocationContext

public class FlowInvocationContext
extends Object

This class acts as a transfer object holding flow invocation time data relevent only to a single invocation of an Event down a Flow. At time of writing, the only data item that we are interested in is the name of the last component invoked, and only then when dealing with an error scenario. Unlike the Event object, the same FlowInvocation object will be present immediately prior to the invocation of any component in a flow. The Events of course may be split, aggregated, etc. It remains to be seen if we will need to transport any other data in this object, of if at some later stage, the FlowComponents themselves will need access to this information

Author:
Ikasan Development Team

Constructor Summary
FlowInvocationContext()
           
 
Method Summary
 void addInvokedComponentName(String componentName)
          Allows a new componentName to be added to the stack of invoked components
 List<String> getInvokedComponents()
          Safe accessor for the entire stack of invoked components
 String getLastComponentName()
          Accessor for the name of the last component invoked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowInvocationContext

public FlowInvocationContext()
Method Detail

getLastComponentName

public String getLastComponentName()
Accessor for the name of the last component invoked

Returns:
name of the last component invoked, or null if none exists yet

addInvokedComponentName

public void addInvokedComponentName(String componentName)
Allows a new componentName to be added to the stack of invoked components

Parameters:
componentName -

getInvokedComponents

public List<String> getInvokedComponents()
Safe accessor for the entire stack of invoked components

Returns:
List of componentNames of all invoked components


Copyright © 2007-2012 Ikasan. All Rights Reserved.