added in debug logging for launching call activity editor w/ burnettk

This commit is contained in:
jasquat 2023-01-09 16:24:36 -05:00
parent 73302c9ef6
commit fa3d727b60
3 changed files with 8 additions and 4 deletions

View File

@ -29,7 +29,6 @@ else
export FLASK_DEBUG=1 export FLASK_DEBUG=1
if [[ "${SPIFFWORKFLOW_BACKEND_RUN_DATA_SETUP:-}" != "false" ]]; then 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 SPIFFWORKFLOW_BACKEND_FAIL_ON_INVALID_PROCESS_MODELS=false poetry run python bin/save_all_bpmn.py
fi fi
FLASK_APP=src/spiffworkflow_backend poetry run flask run -p 7000 FLASK_APP=src/spiffworkflow_backend poetry run flask run -p 7000

View File

@ -264,11 +264,13 @@ export default function ReactDiagramEditor({
handleLaunchMarkdownEditor(element, value, eventBus); 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) => { diagramModeler.on('spiff.callactivity.edit', (event: any) => {
console.log('Received event spiff.callactivity.edit');
if (onLaunchBpmnEditor) { if (onLaunchBpmnEditor) {
console.log(
'Calling function onLaunchBpmnEditor with ',
event.processId
);
onLaunchBpmnEditor(event.processId); onLaunchBpmnEditor(event.processId);
} }
}); });

View File

@ -826,10 +826,13 @@ export default function ProcessModelEditDiagram() {
}; };
const onLaunchBpmnEditor = (processId: string) => { const onLaunchBpmnEditor = (processId: string) => {
console.log('onLaunchBpmnEditor - processId: ', processId);
console.log('processes', processes);
const processRef = processes.find((p) => { const processRef = processes.find((p) => {
return p.identifier === processId; return p.identifier === processId;
}); });
if (processRef) { if (processRef) {
console.log('Found ProcessRef: ', processRef);
const path = generatePath( const path = generatePath(
'/admin/process-models/:process_model_path/files/:file_name', '/admin/process-models/:process_model_path/files/:file_name',
{ {