code: 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;
      }
docs: Sets definition
  @param string $definition
  @return $this