diff --git a/components/bpmn-q/modeler-component/editor/plugin/PluginHandler.js b/components/bpmn-q/modeler-component/editor/plugin/PluginHandler.js index 7cb84589..a4f9f696 100644 --- a/components/bpmn-q/modeler-component/editor/plugin/PluginHandler.js +++ b/components/bpmn-q/modeler-component/editor/plugin/PluginHandler.js @@ -77,13 +77,13 @@ export function getActivePlugins() { export function checkEnabledStatus(pluginName) { switch (pluginName) { case "dataflow": - return process.env.ENABLE_DATA_FLOW_PLUGIN; + return process.env.ENABLE_DATA_FLOW_PLUGIN !== "false"; case "planqk": - return process.env.ENABLE_PLANQK_PLUGIN; + return process.env.ENABLE_PLANQK_PLUGIN !== "false"; case "qhana": - return process.env.ENABLE_QHANA_PLUGIN; + return process.env.ENABLE_QHANA_PLUGIN !== "false"; case "quantme": - return process.env.ENABLE_QUANTME_PLUGIN; + return process.env.ENABLE_QUANTME_PLUGIN !== "false"; } } /** diff --git a/components/bpmn-q/modeler-component/extensions/quantme/configTabs/QuantMETab.js b/components/bpmn-q/modeler-component/extensions/quantme/configTabs/QuantMETab.js index c3a51755..0145572f 100644 --- a/components/bpmn-q/modeler-component/extensions/quantme/configTabs/QuantMETab.js +++ b/components/bpmn-q/modeler-component/extensions/quantme/configTabs/QuantMETab.js @@ -39,7 +39,10 @@ export default function BPMNConfigTab() { const [scriptSplitterThreshold, setScriptSplitterThreshold] = useState( config.getScriptSplitterThreshold() ); - let hybridRuntimeProvenanceBoolean = hybridRuntimeProvenance; + let hybridRuntimeProvenanceBoolean = + hybridRuntimeProvenance === "false" + ? false + : Boolean(hybridRuntimeProvenance); const modeler = getModeler(); diff --git a/components/bpmn-q/webpack.config.js b/components/bpmn-q/webpack.config.js index 073a6d76..3f5fae24 100644 --- a/components/bpmn-q/webpack.config.js +++ b/components/bpmn-q/webpack.config.js @@ -64,14 +64,14 @@ module.exports = { DATA_CONFIG: "https://raw.githubusercontent.com/PlanQK/workflow-modeler/master/components/bpmn-q/modeler-component/extensions/quantme/configurations/quantmeDataObjects.json", DOWNLOAD_FILE_NAME: "quantum-workflow-model", - ENABLE_DATA_FLOW_PLUGIN: true, - ENABLE_PLANQK_PLUGIN: true, - ENABLE_QHANA_PLUGIN: true, - ENABLE_QUANTME_PLUGIN: true, + ENABLE_DATA_FLOW_PLUGIN: "true", + ENABLE_PLANQK_PLUGIN: "true", + ENABLE_QHANA_PLUGIN: "true", + ENABLE_QUANTME_PLUGIN: "true", GITHUB_TOKEN: "", OPENTOSCA_ENDPOINT: "http://localhost:1337/csars", NISQ_ANALYZER_ENDPOINT: "http://localhost:8098/nisq-analyzer", - PROVENANCE_COLLECTION: false, + PROVENANCE_COLLECTION: "false", QHANA_GET_PLUGIN_URL: "http://localhost:5006/api/plugins/", QHANA_LIST_PLUGINS_URL: "http://localhost:5006/api/plugins/?item-count=100",