Class AbstractEndEventBuilder<B extends AbstractEndEventBuilder<B>>

    • Constructor Detail

      • AbstractEndEventBuilder

        protected AbstractEndEventBuilder​(BpmnModelInstance modelInstance,
                                          EndEvent element,
                                          java.lang.Class<?> selfType)
    • Method Detail

      • error

        public B error​(java.lang.String errorCode)
        Sets an error definition for the given error code. If already an error with this code exists it will be used, otherwise a new error is created.
        Parameters:
        errorCode - the code of the error
        Returns:
        the builder object
      • error

        public B error​(java.lang.String errorCode,
                       java.lang.String errorMessage)
        Sets an error definition for the given error code. If already an error with this code exists it will be used, otherwise a new error is created with the given errorMessage.
        Parameters:
        errorCode - the code of the error
        errorMessage - the error message that is used when a new error needs to be created
        Returns:
        the builder object