Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feature/connector-d…
Browse files Browse the repository at this point in the history
…eployment-models
  • Loading branch information
wederbn committed Jul 25, 2023
2 parents 80e64f6 + 92df886 commit 6ecb610
Show file tree
Hide file tree
Showing 37 changed files with 1,137 additions and 106 deletions.
3 changes: 0 additions & 3 deletions components/bpmn-q/modeler-component/QuantumWorkflowModeler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import 'bpmn-js/dist/assets/diagram-js.css';
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
import 'bpmn-js-properties-panel/dist/assets/element-templates.css';
import 'bpmn-js-properties-panel/dist/assets/properties-panel.css';
import './editor/resources/styling/modeler.css';
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class DataFlowReplaceMenuProvider {
// create replacement entries for each loaded transformation task configuration
let options = createConfigurationsEntries(
element,
'dataflow-transformation-task-icon',
'bpmn-icon-dataflow-transformation-task',
getTransformationTaskConfigurations(),
bpmnFactory,
modeling,
Expand All @@ -156,7 +156,7 @@ export default class DataFlowReplaceMenuProvider {
'Transformation Tasks',
popupMenu,
options,
'dataflow-transformation-task-icon'
'dataflow-transformation-tasks-menu-icon'
)
};
}
Expand Down Expand Up @@ -184,7 +184,7 @@ export default class DataFlowReplaceMenuProvider {
const definition = {
label: 'Transformation Association',
id: entryId,
className: 'dataflow-transformation-association-icon',
className: 'bpmn-icon-dataflow-transformation-association',
};

// define action to replace with a transformation association
Expand Down Expand Up @@ -225,7 +225,7 @@ export default class DataFlowReplaceMenuProvider {
const definition = {
label: 'Data Association',
id: entryId,
className: 'dataflow-data-association-icon',
className: 'bpmn-icon-dataflow-data-association-icon',
};

// create action to replace the transformation association by a data association
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const TASK = [
{
id: 'dataflow-transformation-task',
label: 'Data Transformation Task',
className: 'dataflow-transformation-task-icon',
className: 'dataflow-transformation-task-menu-icon',
target: {
type: consts.TRANSFORMATION_TASK
}
Expand All @@ -29,7 +29,7 @@ export const DATA_OBJECT = [
{
id: 'dataflow-data-map-object',
label: 'Data Map Object',
className: 'dataflow-data-map-object-icon',
className: 'dataflow-data-map-object-menu-icon',
target: {
type: consts.DATA_MAP_OBJECT
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import * as consts from '../Constants';

/**
* Custom palette provider to add entries for creating the modelling elements of the DataFlow extension to the
* palette of the bpmn-js modeler.
*/
export default class DataFlowPaletteProvider {

constructor(bpmnFactory, create, elementFactory, palette, translate) {
Expand All @@ -16,21 +12,15 @@ export default class DataFlowPaletteProvider {
palette.registerProvider(this);
}

/**
* Returns the palette entries for the DataFlow elements
*/
getPaletteEntries() {
return this.createDataFlowEntries();
return this.createPlanqkServiceTaskEntry();
}

/**
* Returns palette entries to create DataMapObjects, DataStoreMaps and TransformationTasks
*/
createDataFlowEntries() {
createPlanqkServiceTaskEntry() {
const {bpmnFactory, create, elementFactory, translate} = this;

// start creation of a DataMapObject
function createDataMapObject(event) {
// start creation of a DataMapObject
function createDataMapObject(event) {
const businessObject = bpmnFactory.create(consts.DATA_MAP_OBJECT);
let shape = elementFactory.createShape({
type: consts.DATA_MAP_OBJECT,
Expand Down Expand Up @@ -58,8 +48,8 @@ export default class DataFlowPaletteProvider {
});
create.start(event, shape);
}


// create and return new palette entries
return {
// add separator line to delimit the new group
'dataflow-separator': {
Expand Down Expand Up @@ -92,7 +82,7 @@ export default class DataFlowPaletteProvider {
click: createTransformationTask,
dragstart: createTransformationTask,
}
},
}
};
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.dataflow-transformation-task-icon:before {
content: "";
width: 20px;
height: 15px;
width: 5px;
height: 5px;
background-size: contain;
background-image: url("../resources/icons/change-exchange-icon.svg");
background-repeat: no-repeat;
Expand All @@ -10,10 +10,14 @@
margin: 0 6px 0 0;
}

.dataflow-transformation-task-icon:hover {
filter: invert(0.5) sepia(1) hue-rotate(165deg) saturate(4) brightness(1);
}

.dataflow-data-store-map-icon:before {
content: "";
width: 20px;
height: 15px;
width: 30px;
height: 30px;
background-size: contain;
background-image: url("../resources/icons/data-store-map-icon.svg");
background-repeat: no-repeat;
Expand All @@ -22,40 +26,72 @@
margin: 0 6px 0 0;
}

.dataflow-data-store-map-icon:hover {
filter: invert(0.5) sepia(1) hue-rotate(165deg) saturate(4) brightness(1);
}

.dataflow-data-map-object-icon:before {
content: "";
width: 20px;
height: 15px;
width: 10px;
height: 10px;
background-size: contain;
background-image: url("../resources/icons/data-map-object-icon.svg");
background-repeat: no-repeat;
display: inline-block;
float: left;
margin: 0 6px 0 0;
}

.dataflow-data-map-object-menu-icon:before {
content: "";
width: 10px;
height: 10px;
background-size: contain;
background-image: url("../resources/icons/data-map-object-icon.svg");
background-repeat: no-repeat;
display: inline-block;
}

.dataflow-data-map-object-icon:hover {
filter: invert(0.5) sepia(1) hue-rotate(165deg) saturate(4) brightness(1);
}

.dataflow-transformation-task-palette-icon {
content: url("../resources/icons/transformation-task.svg");
padding: 11px 8px 11px 10px;
box-sizing: border-box;
margin: 0;
outline: none;
content: "";
width: 12px;
height: 12px;
background-size: contain;
background-image: url("../resources/icons/transformation-task.svg");
background-repeat: no-repeat;
display: inline-block;
transform: scale(0.6);
}

.dataflow-transformation-task-palette-icon:hover {
filter: invert(0.5) sepia(1) hue-rotate(165deg) saturate(4) brightness(1);
}

.dataflow-data-store-map-task-palette-icon {
content: url("../resources/icons/data-store-map-icon.svg");
padding: 10px;
box-sizing: border-box;
margin: 0;
outline: none;
content: "";
background-size: contain;
background-image: url("../resources/icons/data-store-map-icon.svg");
background-repeat: no-repeat;
display: inline-block;
transform: scale(0.6);
}

.dataflow-data-store-map-task-palette-icon:hover {
filter: invert(0.5) sepia(1) hue-rotate(165deg) saturate(4) brightness(1);
}

.dataflow-data-map-object-palette-icon {
content: url("../resources/icons/data-map-object-icon.svg");
padding: 10px 13px 10px 14px;
box-sizing: border-box;
margin: 0;
outline: none;
content: "";
background-size: contain;
background-image: url("../resources/icons/data-map-object-icon.svg");
background-repeat: no-repeat;
transform: scale(0.8);
}

.dataflow-data-map-object-palette-icon:hover {
filter: invert(0.5) sepia(1) hue-rotate(165deg) saturate(4) brightness(1);
}

.dataflow-transformation-association-icon:before {
Expand Down Expand Up @@ -104,4 +140,24 @@
display: inline-block;
float: left;
margin: 0 6px 0 0;
}

.dataflow-transformation-tasks-menu-icon:before {
content: "";
width: 5px;
height: 5px;
background-size: contain;
background-image: url("../resources/icons/transformation-task.svg");
background-repeat: no-repeat;
display: inline-block;
}

.dataflow-transformation-task-menu-icon:before {
content: "";
width: 5px;
height: 5px;
background-size: contain;
background-image: url("../resources/icons/change-exchange-icon.svg");
background-repeat: no-repeat;
display: inline-block;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6ecb610

Please sign in to comment.