lib/Model/EventAttributes.php
public function setDefinition($definition)
    {
        $allowed_values = array('NONE', 'CANCEL', 'COMPENSATION', 'ERROR', 'ESCALATION', 'MESSAGE', 'LINK', 'SIGNAL', 'TERMINATE', 'TIMER');
        if (!in_array($definition, $allowed_values)) {
            throw new \InvalidArgumentException("Invalid value for 'definition', must be one of 'NONE', 'CANCEL', 'COMPENSATION', 'ERROR', 'ESCALATION', 'MESSAGE', 'LINK', 'SIGNAL', 'TERMINATE', 'TIMER'");
        }
        $this->container['definition'] = $definition;

        return $this;
    }
public function setDefinition($definition)
    {
        $allowed_values = array('NONE', 'CANCEL', 'COMPENSATION', 'ERROR', 'ESCALATION', 'MESSAGE', 'LINK', 'SIGNAL', 'TERMINATE', 'TIMER');
        if (!in_array($definition, $allowed_values)) {
            throw new \InvalidArgumentException("Invalid value for 'definition', must be one of 'NONE', 'CANCEL', 'COMPENSATION', 'ERROR', 'ESCALATION', 'MESSAGE', 'LINK', 'SIGNAL', 'TERMINATE', 'TIMER'");
        }
        $this->container['definition'] = $definition;

        return $this;
    }
Sets definition
@param string $definition
@return $this