Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(inject(function(elementRegistry, selection) {
let item = elementRegistry.get('BoundaryErrorEvent');
selection.select(item);
let businessObject = item.businessObject;
errorEventDefinition = eventDefinitionHelper.getErrorEventDefinition(businessObject);
field = getInputField(container, 'camunda-error-element-name', 'name');
triggerValue(field, 'FOO', 'change');
}));
beforeEach(inject(function(elementRegistry, propertiesPanel, selection) {
container = propertiesPanel._container;
let shape = elementRegistry.get('StartErrorEvent');
selection.select(shape);
let bo = getBusinessObject(shape);
errorEventDefinition = eventDefinitionHelper.getErrorEventDefinition(bo);
}));
beforeEach(inject(function(elementRegistry, propertiesPanel, selection) {
container = propertiesPanel._container;
let shape = elementRegistry.get('StartErrorEvent');
selection.select(shape);
let businessObject = getBusinessObject(shape);
errorEventDefinition = eventDefinitionHelper.getErrorEventDefinition(businessObject);
}));
export default function(group, element, bpmnFactory, translate) {
const errorEventDefinition = eventDefinitionHelper.getErrorEventDefinition(element);
if (errorEventDefinition) {
error(group, element, bpmnFactory, errorEventDefinition, translate);
}
}