Interface ActivityStateNotification

    • Method Detail

      • activityClosed

        void activityClosed​(EBPInstanceReference activity,
                            String sessionID)
        Notifies that the designated activity in the designated execution session has been closed.
        Parameters:
        activity - The activity that has been closed.
        sessionID - The ID of the execution session of the closed activity.
      • activitySuspended

        void activitySuspended​(EBPInstanceReference activity,
                               String sessionID)
        Notifies that the designated activity in the designated execution session has been suspended normally. There may be an resume and further notifications afterwards.
        Parameters:
        activity - The activity that has been suspended normally.
        sessionID - The ID of the execution session of the suspended activity.
      • activitySuspended

        void activitySuspended​(EBPInstanceReference activity,
                               String sessionID,
                               long timeout)
        Notifies that the designated activity in the designated execution session has been suspended and needs to be resumed after the designated timeout. Usually this will be started by a ResumingRuntimeManager and thus there will be a resume and further notifications afterwards.
        Parameters:
        activity - The activity that has been suspended normally.
        sessionID - The ID of the execution session of the suspended activity.
        timeout - The time period (in milliseconds) when the suspended application wants to be resumed automatically.
      • activityReset

        void activityReset​(EBPInstanceReference activity,
                           String sessionID)
        Notifies that the designated activity in the designated execution session has been reset.
        Parameters:
        activity - The activity that has been reset.
        sessionID - The ID of the execution session of the reset activity.
      • activitySignalled

        void activitySignalled​(EBPInstanceReference activity,
                               String sessionID,
                               int signal)
        Notifies that the designated activity in the designated execution session has terminated with the designated signal.
        Parameters:
        activity - The activity that has been terminated.
        sessionID - The ID of the execution session of the signalled activity.
        signal - The signal that led to the termination of the activity.
      • activityFailed

        void activityFailed​(EBPInstanceReference activity,
                            String sessionID,
                            String errorMessage,
                            String state,
                            long errorCode)
        Notifies that the designated activity in the designated execution session has failed with the designated additional failure information.
        Parameters:
        activity - The activity that has failed.
        sessionID - The ID of the execution session of the failed activity.
        errorMessage - The error message to be interpreted by a user or by a failure handling routine.
        state - Arbitrary state information specific to the instance, comparable to the vendor code in SQLException.
        errorCode - The error code specifying the type of error.