Interface SubInstanceStateNotification

    • Method Detail

      • instanceFinished

        void instanceFinished​(SessionToken session,
                              UUID instanceID,
                              EBPInstanceReference superLWP,
                              DataContainer dataContainer)
        Notifies that the designated subprocess instance has finished normally and provides the output parameters of the instance. In case the instance does not have output parameters, null is provided as data container.
        Parameters:
        session - The session for synchronising ADEPT2 internal method calls.
        instanceID - The ID of the subprocess instance that has finished normally.
        superLWP - A reference to the corresponding parent LWP.
        dataContainer - The corresponding data container that contains the values of the output parameters of the subprocess instance or null in case the instance does not have output parameters.
      • instanceSuspended

        void instanceSuspended​(SessionToken session,
                               UUID instanceID,
                               EBPInstanceReference superLWP,
                               DataContainer dataContainer)
        Notifies that the designated subprocess instance has been suspended.
        Parameters:
        session - The session for synchronising ADEPT2 internal method calls.
        instanceID - The ID of the subprocess instance that has been suspended.
        superLWP - A reference to the corresponding parent LWP.
        dataContainer - The corresponding data container that contains the values of the parameters of the subprocess instance or null in case the instance does not have parameters at all. The values of the output parameters may not be the final ones since the subprocess instance is only suspended and has not finished yet. Please note that many output parameters may be Null due to the intermediate suspension.
      • instanceResumed

        void instanceResumed​(SessionToken session,
                             UUID instanceID,
                             EBPInstanceReference superLWP)
        Notifies that the designated subprocess instance has been resumed.
        Parameters:
        session - The session for synchronising ADEPT2 internal method calls.
        instanceID - The ID of the subprocess instance that has been resumed.
        superLWP - A reference to the corresponding parent LWP.
      • instanceFailed

        void instanceFailed​(SessionToken session,
                            UUID instanceID,
                            EBPInstanceReference superLWP,
                            DataContainer dataContainer,
                            String errorMessage,
                            String state,
                            long errorCode)
        Notifies that the designated subprocess instance has failed and provides the necessary failure information.
        Parameters:
        session - The session for synchronising ADEPT2 internal method calls.
        instanceID - The ID of the subprocess instance that failed or was aborted.
        superLWP - A reference to the corresponding parent LWP.
        dataContainer - The corresponding data container that contains the values of the output parameters of the subprocess instance which have been produced until the failure occurred or null in case the instance does not have output parameters. Please note that many output parameters may be Null due to the failure.
        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.