Class SequenceMediator

    • Constructor Detail

      • SequenceMediator

        public SequenceMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext synCtx)
        If this mediator refers to another named Sequence, execute that. Else execute the list of mediators (children) contained within this. If a referenced named sequence mediator instance cannot be found at runtime, an exception is thrown. This may occur due to invalid configuration of an erroneous runtime change of the synapse configuration. It is the responsibility of the SynapseConfiguration builder to ensure that dead references are not present.
        Specified by:
        mediate in interface Mediator
        Overrides:
        mediate in class AbstractListMediator
        Parameters:
        synCtx - the synapse message
        Returns:
        as per standard mediator result
      • mediate

        public boolean mediate​(MessageContext synCtx,
                               ContinuationState continuationState)
        Description copied from interface: FlowContinuableMediator
        Mediate the message using a ContinuationState. This is used when mediating the response message when service is invoked using a Call Mediator.
        Specified by:
        mediate in interface FlowContinuableMediator
        Parameters:
        synCtx - MessageContext
        continuationState - ContinuationState
        Returns:
        whether mediation flow is completed
      • getName

        public String getName()
        To get the name of the sequence
        Specified by:
        getName in interface Nameable
        Returns:
        the name of the sequence
      • setName

        public void setName​(String name)
        setting the name of the sequence
        Specified by:
        setName in interface Nameable
        Parameters:
        name - the name of the this sequence
      • getKey

        public Value getKey()
        To get the key which is used to pick the sequence definition from the local registry
        Returns:
        return the key which is used to pick the sequence definition from the local registry
      • setKey

        public void setKey​(Value key)
        To set the local registry key in order to pick the sequence definition
        Parameters:
        key - the local registry key
      • getErrorHandler

        public String getErrorHandler()
        Returns:
        Returns the errorhandler sequence name
      • setErrorHandler

        public void setErrorHandler​(String errorHandler)
        Parameters:
        errorHandler - to used handle error will appear during the mediation through this sequence
      • isDynamic

        public boolean isDynamic()
        Is this a dynamic sequence?
        Returns:
        true if dynamic
      • setDynamic

        public void setDynamic​(boolean dynamic)
        Mark this as a dynamic sequence
        Parameters:
        dynamic - true if this is a dynamic sequence
      • getRegistryKey

        public String getRegistryKey()
        Return the registry key used to load this sequence dynamically
        Returns:
        registry key
      • setRegistryKey

        public void setRegistryKey​(String registryKey)
        To get the registry key used to load this sequence dynamically
        Parameters:
        registryKey - returns the registry key which point to this sequence
      • getAuditId

        public String getAuditId()
      • getFileName

        public String getFileName()
      • setFileName

        public void setFileName​(String fileName)
      • isInitialized

        public boolean isInitialized()
      • setArtifactContainerName

        public void setArtifactContainerName​(String name)
      • getArtifactContainerName

        public String getArtifactContainerName()
      • isEdited

        public boolean isEdited()
      • setIsEdited

        public void setIsEdited​(boolean isEdited)
      • setSequenceType

        public void setSequenceType​(SequenceType sequenceType)
      • getSequenceNameForStatistics

        public String getSequenceNameForStatistics()