<commit_before>import {
  getBusinessObject,
  is
} from 'bpmn-js/lib/util/ModelUtil';

import TextField, { isEdited as textFieldIsEdited } from '@bpmn-io/properties-panel/lib/components/entries/TextField';

import {
  useService
} from '../../../hooks';

import {
  getTimerEventDefinition
} from 'src/provider/bpmn/utils/EventDefinitionUtil';

import {
  createElement
} from '../../bpmn/utils/ElementUtil';

import {
  getExtensionElementsList
} from 'src/provider/zeebe/utils/ExtensionElementsUtil';


export function JobExecutionProps(props) {
  const {
    element
  } = props;

  const businessObject = getBusinessObject(element);

  const entries = [];

  // (1) add jobPriority field for camunda:jobPriorized with async enabled
  //  or Processes
  //  or Processes referred to by participants
  //  or TimerEvents
  if ((is(element, 'camunda:JobPriorized') && isAsync(businessObject)) ||
    is(element, 'bpmn:Process') ||
    (is(element, 'bpmn:Participant') && businessObject.get('processRef')) ||
    isTimerEvent(element)) {
    entries.push({
      id: 'jobPriority',
      component: <JobPriority element={ element } />,
      isEdited: textFieldIsEdited
    });
  }

  // (2) add retryTimeCycle field for camunda:asyncCapable enabled Elements
  // or TimerEvents
  if ((is(element, 'camunda:AsyncCapable') && isAsync(businessObject)) ||
      isTimerEvent(element)) {
    entries.push({
      id: 'jobPriority',<commit_msg>chore(JobExecutionProps): correct wrong group id<commit_after>import {
  getBusinessObject,
  is
} from 'bpmn-js/lib/util/ModelUtil';

import TextField, { isEdited as textFieldIsEdited } from '@bpmn-io/properties-panel/lib/components/entries/TextField';

import {
  useService
} from '../../../hooks';

import {
  getTimerEventDefinition
} from 'src/provider/bpmn/utils/EventDefinitionUtil';

import {
  createElement
} from '../../bpmn/utils/ElementUtil';

import {
  getExtensionElementsList
} from 'src/provider/zeebe/utils/ExtensionElementsUtil';


export function JobExecutionProps(props) {
  const {
    element
  } = props;

  const businessObject = getBusinessObject(element);

  const entries = [];

  // (1) add jobPriority field for camunda:jobPriorized with async enabled
  //  or Processes
  //  or Processes referred to by participants
  //  or TimerEvents
  if ((is(element, 'camunda:JobPriorized') && isAsync(businessObject)) ||
    is(element, 'bpmn:Process') ||
    (is(element, 'bpmn:Participant') && businessObject.get('processRef')) ||
    isTimerEvent(element)) {
    entries.push({
      id: 'jobPriority',
      component: <JobPriority element={ element } />,
      isEdited: textFieldIsEdited
    });
  }

  // (2) add retryTimeCycle field for camunda:asyncCapable enabled Elements
  // or TimerEvents
  if ((is(element, 'camunda:AsyncCapable') && isAsync(businessObject)) ||
      isTimerEvent(element)) {
    entries.push({
      id: 'retryTimeCycle',
{'fraction_non_alphanumeric': 0.13468128855380399, 'fraction_numerical': 0.0013708019191226869, 'mean_word_length': 3.9224283305227656, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3138538', 'n_tokens_mistral': 923, 'n_tokens_neox': 901, 'n_words': 193}