Class DefaultFlowInvocationContext

  • All Implemented Interfaces:
    org.ikasan.spec.flow.FlowInvocationContext

    public class DefaultFlowInvocationContext
    extends java.lang.Object
    implements org.ikasan.spec.flow.FlowInvocationContext
    This 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 Detail

      • DefaultFlowInvocationContext

        public DefaultFlowInvocationContext()
    • Method Detail

      • getLastComponentName

        public java.lang.String getLastComponentName()
        Accessor for the name of the last component invoked
        Specified by:
        getLastComponentName in interface org.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:
        setLastComponentName in interface org.ikasan.spec.flow.FlowInvocationContext
      • addElementInvocation

        public void addElementInvocation​(org.ikasan.spec.flow.FlowElementInvocation flowElementInvocation)
        Specified by:
        addElementInvocation in interface org.ikasan.spec.flow.FlowInvocationContext
      • getElementInvocations

        public java.util.List<org.ikasan.spec.flow.FlowElementInvocation> getElementInvocations()
        Specified by:
        getElementInvocations in interface org.ikasan.spec.flow.FlowInvocationContext
      • startFlowInvocation

        public void startFlowInvocation()
        Specified by:
        startFlowInvocation in interface org.ikasan.spec.flow.FlowInvocationContext
      • endFlowInvocation

        public void endFlowInvocation()
        Specified by:
        endFlowInvocation in interface org.ikasan.spec.flow.FlowInvocationContext
      • getFlowStartTimeMillis

        public long getFlowStartTimeMillis()
        Specified by:
        getFlowStartTimeMillis in interface org.ikasan.spec.flow.FlowInvocationContext
      • getFlowEndTimeMillis

        public long getFlowEndTimeMillis()
        Specified by:
        getFlowEndTimeMillis in interface org.ikasan.spec.flow.FlowInvocationContext
      • combine

        public void combine​(org.ikasan.spec.flow.FlowInvocationContext flowInvocationContext)
        Specified by:
        combine in interface org.ikasan.spec.flow.FlowInvocationContext
      • setFinalAction

        public void setFinalAction​(org.ikasan.spec.flow.FinalAction exceptionAction)
        Specified by:
        setFinalAction in interface org.ikasan.spec.flow.FlowInvocationContext
      • getFinalAction

        public org.ikasan.spec.flow.FinalAction getFinalAction()
        Specified by:
        getFinalAction in interface org.ikasan.spec.flow.FlowInvocationContext
      • getErrorUri

        public java.lang.String getErrorUri()
        Specified by:
        getErrorUri in interface org.ikasan.spec.flow.FlowInvocationContext
      • setErrorUri

        public void setErrorUri​(java.lang.String errorUri)
        Specified by:
        setErrorUri in interface org.ikasan.spec.flow.FlowInvocationContext