Class AbstractThrowEventBuilder<B extends AbstractThrowEventBuilder<B,​E>,​E extends ThrowEvent>

    • Constructor Detail

      • AbstractThrowEventBuilder

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

      • message

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

        public MessageEventDefinitionBuilder messageEventDefinition()
        Creates an empty message event definition with an unique id and returns a builder for the message event definition.
        Returns:
        the message event definition builder object
      • messageEventDefinition

        public MessageEventDefinitionBuilder messageEventDefinition​(java.lang.String id)
        Creates an empty message event definition with the given id and returns a builder for the message event definition.
        Parameters:
        id - the id of the message event definition
        Returns:
        the message event definition builder object
      • signal

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

        public SignalEventDefinitionBuilder signalEventDefinition​(java.lang.String signalName)
        Sets an event definition for the given Signal name. If a signal with this name already exists it will be used, otherwise a new signal is created. It returns a builder for the Signal Event Definition.
        Parameters:
        signalName - the name of the signal
        Returns:
        the signal event definition builder object
      • escalation

        public B escalation​(java.lang.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