Skip to content

Commit

Permalink
Artifacts are now included in DI ordering (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Ladleif authored Dec 21, 2020
1 parent 17d78a2 commit 3ea6bd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/features/di-ordering/ChoreoDiOrdering.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function ChoreoDiOrdering(eventBus, canvas, choreoUtil) {
* @param planeElements
*/
function getChildrenAndParticipantDIs(choreography, planeElements) {
let children = [].concat(choreography.flowElements || []);
let children = [].concat(choreography.flowElements || [], choreography.artifacts || []);
let orderedDIs = [];
while (children.length > 0) {
const nextBusinessObject = children.shift();
Expand All @@ -88,6 +88,9 @@ function getChildrenAndParticipantDIs(choreography, planeElements) {
if (nextBusinessObject.flowElements) {
children = children.concat(nextBusinessObject.flowElements);
}
if (nextBusinessObject.artifacts) {
children = children.concat(nextBusinessObject.artifacts);
}
}
return orderedDIs;
}
Expand Down

0 comments on commit 3ea6bd2

Please sign in to comment.