mirror of
https://github.com/sartography/bpmn-js-spiffworkflow.git
synced 2025-02-21 20:18:20 +00:00
commit
9dcca6c80b
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3 #Checkout Repo
|
||||
- uses: actions/setup-node@v3 #Setup Node
|
||||
- uses: nanasess/setup-chromedriver@v1
|
||||
- uses: nanasess/setup-chromedriver@v2 #Setup ChromeDriver
|
||||
with:
|
||||
node-version: '18'
|
||||
- name: Run Karma Tests
|
||||
|
@ -148,14 +148,24 @@ function getRetrievalExpressionFromCorrelationProperty(
|
||||
export function findCorrelationProperties(businessObject, moddle) {
|
||||
const root = getRoot(businessObject, moddle);
|
||||
const correlationProperties = [];
|
||||
for (const rootElement of root.rootElements) {
|
||||
if (rootElement.$type === 'bpmn:CorrelationProperty') {
|
||||
correlationProperties.push(rootElement);
|
||||
if (isIterable(root.rootElements)) {
|
||||
for (const rootElement of root.rootElements) {
|
||||
if (rootElement.$type === 'bpmn:CorrelationProperty') {
|
||||
correlationProperties.push(rootElement);
|
||||
}
|
||||
}
|
||||
}
|
||||
return correlationProperties;
|
||||
}
|
||||
|
||||
function isIterable(obj) {
|
||||
// checks for null and undefined
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
return typeof obj[Symbol.iterator] === 'function';
|
||||
}
|
||||
|
||||
export function findCorrelationKeys(businessObject, moddle) {
|
||||
const root = getRoot(businessObject, moddle);
|
||||
const correlationKeys = [];
|
||||
|
@ -35,6 +35,9 @@ export function MessageSelect(props) {
|
||||
commandStack.execute('element.updateModdleProperties', {
|
||||
element: shapeElement,
|
||||
moddleElement: businessObject,
|
||||
properties: {
|
||||
messageRef: message,
|
||||
},
|
||||
});
|
||||
} else if (
|
||||
businessObject.$type === 'bpmn:ReceiveTask' ||
|
||||
|
2984
test/spec/bpmn/request_new_role.bpmn
Normal file
2984
test/spec/bpmn/request_new_role.bpmn
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user