Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getZeebeLoopCharacteristics = (bo) => {
const extensions = extensionElementsHelper.getExtensionElements(
bo.loopCharacteristics,
'zeebe:LoopCharacteristics'
);
return (extensions || [])[0];
};
const getTaskDefinitions = (bo) => {
return extensionElementsHelper.getExtensionElements(bo, 'zeebe:TaskDefinition');
};
const getElements = (bo, type, prop) => {
const elems = extensionElementsHelper.getExtensionElements(bo, type) || [];
return !prop ? elems : (elems[0] || {})[prop] || [];
};
const getSubscriptionDefinitions = (bo) => {
return extensionElementsHelper.getExtensionElements(bo, 'zeebe:Subscription');
};
function getElements(bo, type, prop) {
const elems = extensionElementsHelper.getExtensionElements(bo, type) || [];
return !prop ? elems : (elems[0] || {})[prop] || [];
}
const getElements = (bo, type, prop) => {
const elems = extensionElementsHelper.getExtensionElements(bo, type) || [];
return !prop ? elems : (elems[0] || {})[prop] || [];
};
function getElements(bo, type, prop) {
const elems = extensionElementsHelper.getExtensionElements(bo, type) || [];
return !prop ? elems : (elems[0] || {})[prop] || [];
}