added in debug logging for launching call activity editor w/ burnettk
This commit is contained in:
parent
a30d08bc86
commit
610067ee92
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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',
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue