Package org.ikasan.flow.visitorPattern
Class DefaultFlowInvocationContext
- java.lang.Object
-
- org.ikasan.flow.visitorPattern.DefaultFlowInvocationContext
-
- All Implemented Interfaces:
org.ikasan.spec.flow.FlowInvocationContext
public class DefaultFlowInvocationContext extends java.lang.Object implements org.ikasan.spec.flow.FlowInvocationContextThis class acts as a transfer object holding flow invocation time data relevant only to a single invocation of an Event down a Flow. Unlike the FlowEvent object, the same FlowInvocation object will be present immediately prior to the invocation of any component in a flow. The FlowEvents 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
Constructors Constructor Description DefaultFlowInvocationContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElementInvocation(org.ikasan.spec.flow.FlowElementInvocation flowElementInvocation)voidcombine(org.ikasan.spec.flow.FlowInvocationContext flowInvocationContext)voidendFlowInvocation()java.util.List<org.ikasan.spec.flow.FlowElementInvocation>getElementInvocations()java.lang.StringgetErrorUri()org.ikasan.spec.flow.FinalActiongetFinalAction()longgetFlowEndTimeMillis()longgetFlowStartTimeMillis()java.lang.StringgetLastComponentName()Accessor for the name of the last component invokedvoidsetErrorUri(java.lang.String errorUri)voidsetFinalAction(org.ikasan.spec.flow.FinalAction exceptionAction)voidsetLastComponentName(java.lang.String componentName)voidstartFlowInvocation()
-
-
-
Method Detail
-
getLastComponentName
public java.lang.String getLastComponentName()
Accessor for the name of the last component invoked- Specified by:
getLastComponentNamein interfaceorg.ikasan.spec.flow.FlowInvocationContext- Returns:
- name of the last component invoked, or null if none exists yet
-
setLastComponentName
public void setLastComponentName(java.lang.String componentName)
- Specified by:
setLastComponentNamein interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
addElementInvocation
public void addElementInvocation(org.ikasan.spec.flow.FlowElementInvocation flowElementInvocation)
- Specified by:
addElementInvocationin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
getElementInvocations
public java.util.List<org.ikasan.spec.flow.FlowElementInvocation> getElementInvocations()
- Specified by:
getElementInvocationsin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
startFlowInvocation
public void startFlowInvocation()
- Specified by:
startFlowInvocationin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
endFlowInvocation
public void endFlowInvocation()
- Specified by:
endFlowInvocationin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
getFlowStartTimeMillis
public long getFlowStartTimeMillis()
- Specified by:
getFlowStartTimeMillisin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
getFlowEndTimeMillis
public long getFlowEndTimeMillis()
- Specified by:
getFlowEndTimeMillisin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
combine
public void combine(org.ikasan.spec.flow.FlowInvocationContext flowInvocationContext)
- Specified by:
combinein interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
setFinalAction
public void setFinalAction(org.ikasan.spec.flow.FinalAction exceptionAction)
- Specified by:
setFinalActionin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
getFinalAction
public org.ikasan.spec.flow.FinalAction getFinalAction()
- Specified by:
getFinalActionin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
getErrorUri
public java.lang.String getErrorUri()
- Specified by:
getErrorUriin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
setErrorUri
public void setErrorUri(java.lang.String errorUri)
- Specified by:
setErrorUriin interfaceorg.ikasan.spec.flow.FlowInvocationContext
-
-