From fa3d727b6073d4abcd8755bc9b9b139c378574d7 Mon Sep 17 00:00:00 2001 From: jasquat Date: Mon, 9 Jan 2023 16:24:36 -0500 Subject: [PATCH] added in debug logging for launching call activity editor w/ burnettk --- spiffworkflow-backend/bin/run_server_locally | 1 - .../src/components/ReactDiagramEditor.tsx | 8 +++++--- .../src/routes/ProcessModelEditDiagram.tsx | 3 +++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/spiffworkflow-backend/bin/run_server_locally b/spiffworkflow-backend/bin/run_server_locally index 17691b9e..3e9f712b 100755 --- a/spiffworkflow-backend/bin/run_server_locally +++ b/spiffworkflow-backend/bin/run_server_locally @@ -29,7 +29,6 @@ else export FLASK_DEBUG=1 if [[ "${SPIFFWORKFLOW_BACKEND_RUN_DATA_SETUP:-}" != "false" ]]; then - echo "RUNING STUFF" SPIFFWORKFLOW_BACKEND_FAIL_ON_INVALID_PROCESS_MODELS=false poetry run python bin/save_all_bpmn.py fi FLASK_APP=src/spiffworkflow_backend poetry run flask run -p 7000 diff --git a/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx b/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx index 3e744ddc..82996b6a 100644 --- a/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx +++ b/spiffworkflow-frontend/src/components/ReactDiagramEditor.tsx @@ -264,11 +264,13 @@ export default function ReactDiagramEditor({ handleLaunchMarkdownEditor(element, value, eventBus); }); - /** - * fixme: this is not in use yet, we need the ability to find bpmn files by id. - */ diagramModeler.on('spiff.callactivity.edit', (event: any) => { + console.log('Received event spiff.callactivity.edit'); if (onLaunchBpmnEditor) { + console.log( + 'Calling function onLaunchBpmnEditor with ', + event.processId + ); onLaunchBpmnEditor(event.processId); } }); diff --git a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx index cc3ac878..f4984cfc 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx @@ -826,10 +826,13 @@ export default function ProcessModelEditDiagram() { }; const onLaunchBpmnEditor = (processId: string) => { + console.log('onLaunchBpmnEditor - processId: ', processId); + console.log('processes', processes); const processRef = processes.find((p) => { return p.identifier === processId; }); if (processRef) { + console.log('Found ProcessRef: ', processRef); const path = generatePath( '/admin/process-models/:process_model_path/files/:file_name', {