Class AbstractBoundaryEventBuilder<B extends AbstractBoundaryEventBuilder<B>>

    • Method Detail

      • cancelActivity

        public B cancelActivity​(Boolean cancelActivity)
        Set if the boundary event cancels the attached activity.
        Parameters:
        cancelActivity - true if the boundary event cancels the activiy, false otherwise
        Returns:
        the builder object
      • error

        public B error()
        Sets a catch all error definition.
        Returns:
        the builder object
      • error

        public B error​(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​(String errorCode,
                       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 with the given error message is created.
        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
      • errorEventDefinition

        public ErrorEventDefinitionBuilder errorEventDefinition​(String id)
        Creates an error event definition with an unique id and returns a builder for the error event definition.
        Returns:
        the error event definition builder object
      • errorEventDefinition

        public ErrorEventDefinitionBuilder errorEventDefinition()
        Creates an error event definition and returns a builder for the error event definition.
        Returns:
        the error event definition builder object
      • escalation

        public B escalation()
        Sets a catch all escalation definition.
        Returns:
        the builder object
      • escalation

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