Class MQTTWorkflowEventHandler

    • Constructor Detail

      • MQTTWorkflowEventHandler

        public MQTTWorkflowEventHandler​(String p_strGuid)
    • Method Detail

      • getMQTTSourceGuid

        public String getMQTTSourceGuid()
      • setMQTTSourceGuid

        public void setMQTTSourceGuid​(String p_strMQTTSourceGuid)
      • isHandleBeforeStartEvent

        public boolean isHandleBeforeStartEvent()
      • setHandleBeforeStartEvent

        public void setHandleBeforeStartEvent​(boolean p_bHandleBeforeStartEvent)
      • isHandleAfterStopEvent

        public boolean isHandleAfterStopEvent()
      • setHandleAfterStopEvent

        public void setHandleAfterStopEvent​(boolean p_bHandleAfterStopEvent)
      • isHandleMessageEvent

        public boolean isHandleMessageEvent()
      • setHandleMessageEvent

        public void setHandleMessageEvent​(boolean p_bHandleMessageEvent)
      • isHandlerFor

        public boolean isHandlerFor​(IWorkflowEvent p_evt,
                                    de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx)
        Description copied from interface: IWorkflowEventHandler
        Check if this event handler may handle the given event.

        This method should return false if this event handler's state is inactive.

        Note: despite this method returns true the event handler is not required to return its efferent transition when process is being called.

        p_evt - The event.
        p_wfCtx - The workflow processing context.
        true if this event handler may process this event, or false otherwise.
      • process

        public WorkflowTransition process​(IWorkflowEvent p_evt,
                                          de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx,
                                          de.uplanet.lucy.server.IProcessingContext p_ctx)
        Description copied from interface: IWorkflowEventHandler
        Process a workflow event in the given context.

        This method is called by the workflow engine if a call to isHandlerFor returned true. However this method is not required to return a non-null efferent transition in such cases.

        A workflow event handler must return null if it is not active.

        p_evt - The event to be processed.
        p_wfCtx - The workflow processing context.
        p_ctx - The processing context.
        The efferent transition, or null.