Interface Workflow

    • Field Detail

      • WORKFLOW_ID_KEY

        static final java.lang.String WORKFLOW_ID_KEY

        Metadata key used to store the ID of the workflow for processing bad messages.

        See Also:
        Constant Field Values
      • PREVIOUS_GUID_KEY

        static final java.lang.String PREVIOUS_GUID_KEY

        Metadata key for the unique ID of the message as it is being processed. When it is retried it will have a new UUID, this metadata is used to link the two messages.

        See Also:
        Constant Field Values
    • Method Detail

      • handleBadMessage

        void handleBadMessage​(AdaptrisMessage msg)
                       throws CoreException

        Handle a 'bad' message. A bad message is one which has caused an Exception in the ServceCollection or AdaptrisMessageProducer.

        Parameters:
        msg - the original version of the 'bad' message
        Throws:
        CoreException - wrapping any Exception that might occur
      • handleProduceException

        void handleProduceException()

        Handle an Exception encountered producing a message.

      • getConsumer

        AdaptrisMessageConsumer getConsumer()

        Returns this Workflow's AdaptrisMessageConsumer.

        Returns:
        this Workflow's AdaptrisMessageConsumer
      • getProducer

        AdaptrisMessageProducer getProducer()

        Returns this Workflow's AdaptrisMessageProducer.

        Returns:
        this Workflow's AdaptrisMessageProducer
      • obtainWorkflowId

        java.lang.String obtainWorkflowId()

        Returns what the workflow considers to be it's unique ID of the workflow.

        This may differ from any 'unique-id' element that has been set.

        Returns:
        the unique ID
      • getUniqueId

        java.lang.String getUniqueId()

        Returns any configured unique-id.

        Specified by:
        getUniqueId in interface AdaptrisComponent
        Returns:
        the unique ID
      • obtainChannel

        Channel obtainChannel()

        Returns a reference to this Workflow's Channel.

        Returns:
        a reference to this Workflow's Channel
      • registerChannel

        void registerChannel​(Channel ch)
                      throws CoreException

        Sets a reference to this Workflow's Channel.

        Parameters:
        ch - this Workflow's Channel
        Throws:
        CoreException
      • lastStartTime

        java.util.Date lastStartTime()
        Get the last time this workflow was started
        Returns:
        workflow start time
      • lastStopTime

        java.util.Date lastStopTime()
        Get the last time this workflow was stopped. This is set when the workflow is initialised so it may have been subsequently started.
        Returns:
        channel stop time
      • getInterceptors

        java.util.List<WorkflowInterceptor> getInterceptors()
        Return all the configured interceptors.
        Returns:
        all the configured interceptors.
      • disableMessageCount

        boolean disableMessageCount()
        Whether or not message-counts should be disabled on this workflow.
        Since:
        3.0.3