Skip to content

Commit

Permalink
Update planqk replacement (#138)
Browse files Browse the repository at this point in the history
* add boundaryevent, add iterations, add merge gateway

* reorganize planqk plugin for consistency

* add call service

* add maxIterations param

* update replacement

* update replacement

* update endpoint

* fix scripts

* fix test

* remove url

* fix lint
  • Loading branch information
LaviniaStiliadou authored Feb 19, 2024
1 parent 000c51b commit 13f8b40
Show file tree
Hide file tree
Showing 16 changed files with 327 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { deployWorkflowToCamunda } from "../util/IoUtilities";
import { getCamundaEndpoint } from "../config/EditorConfigManager";
import { getRootProcess } from "../util/ModellingUtilities";
import DeploymentSelectionModal from "./DeploymentSelectionModal";
import { startPlanqkReplacementProcess } from "../../extensions/planqk/exec-completion/PlanQKServiceTaskCompletion";
import { startPlanqkReplacementProcess } from "../../extensions/planqk/replacement/PlanQKTransformator";
import { startDataFlowReplacementProcess } from "../../extensions/data-extension/transformation/TransformationManager";
import { checkEnabledStatus } from "../plugin/PluginHandler";
import { pluginNames } from "../EditorConstants";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import planqkStyles from "./resources/css/planqk-icons.css";
import PlanQKExtensionModule from "./";
import { startPlanqkReplacementProcess } from "./exec-completion/PlanQKServiceTaskCompletion";
import PlanQKExtensionModule from "./modeling";
import { startPlanqkReplacementProcess } from "./replacement/PlanQKTransformator";
import TransformationButton from "../../editor/ui/TransformationButton";

let planqkModdleDescriptor = require("./resources/planqk-service-task-ext.json");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as consts from "./utilities/Constants";
import * as consts from "../utilities/Constants";

export default class PlanQKPaletteProvider {
constructor(bpmnFactory, create, elementFactory, palette, translate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { is } from "bpmn-js/lib/util/ModelUtil";

import BpmnRenderer from "bpmn-js/lib/draw/BpmnRenderer";

import * as consts from "./utilities/Constants";
import * as consts from "../utilities/Constants";
import { getSVG } from "./SVGMap";
import {
drawDataElementSVG,
drawTaskSVG,
} from "../../editor/util/RenderUtilities";
} from "../../../editor/util/RenderUtilities";

const HIGH_PRIORITY = 14001,
TASK_BORDER_RADIUS = 2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as planqkReplaceOptions from "./PlanQKReplaceOptions";
import { is } from "bpmn-js/lib/util/ModelUtil";
import * as consts from "./utilities/Constants";
import * as consts from "../utilities/Constants";
import {
createMenuEntries,
createMoreOptionsEntryWithReturn,
} from "../../editor/util/PopupMenuUtilities";
import { getPluginConfig } from "../../editor/plugin/PluginConfigHandler";
import * as planqkConsts from "./utilities/Constants";
} from "../../../editor/util/PopupMenuUtilities";
import { getPluginConfig } from "../../../editor/plugin/PluginConfigHandler";
import * as planqkConsts from "../utilities/Constants";
import { filter } from "min-dash";
import { isDifferentType } from "bpmn-js/lib/features/popup-menu/util/TypeUtil";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as consts from "./utilities/Constants";
import * as consts from "../utilities/Constants";

// replace options for a BPMN task
export const TASK = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import PlanQKReplaceMenuProvider from "./PlanQKReplaceMenuProvider";
import PlanQKPaletteProvider from "./PlanQKPaletteProvider";
import PlanQKRenderer from "./PlanQKRenderer";
import ServiceTaskPropertiesProvider from "./propeties/service-task-properties/ServiceTaskPropertiesProvider";
import DataPoolPropertiesProvider from "./propeties/data-pool-properties/DataPoolPropertiesProvider";
import { getPluginConfig } from "../../editor/plugin/PluginConfigHandler";
import ServiceTaskPropertiesProvider from "./properties/service-task-properties/ServiceTaskPropertiesProvider";
import DataPoolPropertiesProvider from "./properties/data-pool-properties/DataPoolPropertiesProvider";
import { getPluginConfig } from "../../../editor/plugin/PluginConfigHandler";

export default {
__init__: [
"planqkPaletteProvider",
"customRenderer",
"planqkRenderer",
"serviceTaskPropertiesProvider",
"dataPoolPropertiesProvider",
"planqkReplaceMenuProvider",
Expand All @@ -17,7 +17,7 @@ export default {
],
planqkReplaceMenuProvider: ["type", PlanQKReplaceMenuProvider],
planqkPaletteProvider: ["type", PlanQKPaletteProvider],
customRenderer: ["type", PlanQKRenderer],
planqkRenderer: ["type", PlanQKRenderer],
serviceTaskPropertiesProvider: ["type", ServiceTaskPropertiesProvider],
dataPoolPropertiesProvider: ["type", DataPoolPropertiesProvider],
activeSubscriptions: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import planqkDataPoolProps from "./DataPoolProperties";
import * as consts from "../../utilities/Constants";
import * as consts from "../../../utilities/Constants";

import { is } from "bpmn-js/lib/util/ModelUtil";

Expand Down
Loading

0 comments on commit 13f8b40

Please sign in to comment.