fixing up routes for launching editor.
Also some fixes in the bpmn-js-spiffworkflow to avoid locking up the browser if no files are available.
This commit is contained in:
parent
afa8aae60e
commit
1423fe4c84
|
@ -31,7 +31,7 @@
|
||||||
"bootstrap": "^5.2.0",
|
"bootstrap": "^5.2.0",
|
||||||
"bpmn-js": "^9.3.2",
|
"bpmn-js": "^9.3.2",
|
||||||
"bpmn-js-properties-panel": "^1.10.0",
|
"bpmn-js-properties-panel": "^1.10.0",
|
||||||
"bpmn-js-spiffworkflow": "sartography/bpmn-js-spiffworkflow#feature/more_launch_buttons_and_dropdowns",
|
"bpmn-js-spiffworkflow": "sartography/bpmn-js-spiffworkflow#main",
|
||||||
"craco": "^0.0.3",
|
"craco": "^0.0.3",
|
||||||
"date-fns": "^2.28.0",
|
"date-fns": "^2.28.0",
|
||||||
"diagram-js": "^8.5.0",
|
"diagram-js": "^8.5.0",
|
||||||
|
@ -7485,7 +7485,7 @@
|
||||||
},
|
},
|
||||||
"node_modules/bpmn-js-spiffworkflow": {
|
"node_modules/bpmn-js-spiffworkflow": {
|
||||||
"version": "0.0.8",
|
"version": "0.0.8",
|
||||||
"resolved": "git+ssh://git@github.com/sartography/bpmn-js-spiffworkflow.git#84593aee1ead7328efdc7da03ab3c9cd34364496",
|
"resolved": "git+ssh://git@github.com/sartography/bpmn-js-spiffworkflow.git#24c2cc36067adf8fed75990c6bf4a1a67bc9122b",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"inherits": "^2.0.4",
|
"inherits": "^2.0.4",
|
||||||
|
@ -35755,8 +35755,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bpmn-js-spiffworkflow": {
|
"bpmn-js-spiffworkflow": {
|
||||||
"version": "git+ssh://git@github.com/sartography/bpmn-js-spiffworkflow.git#84593aee1ead7328efdc7da03ab3c9cd34364496",
|
"version": "git+ssh://git@github.com/sartography/bpmn-js-spiffworkflow.git#24c2cc36067adf8fed75990c6bf4a1a67bc9122b",
|
||||||
"from": "bpmn-js-spiffworkflow@sartography/bpmn-js-spiffworkflow#feature/more_launch_buttons_and_dropdowns",
|
"from": "bpmn-js-spiffworkflow@sartography/bpmn-js-spiffworkflow#main",
|
||||||
"requires": {
|
"requires": {
|
||||||
"inherits": "^2.0.4",
|
"inherits": "^2.0.4",
|
||||||
"inherits-browser": "^0.0.1",
|
"inherits-browser": "^0.0.1",
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
"bootstrap": "^5.2.0",
|
"bootstrap": "^5.2.0",
|
||||||
"bpmn-js": "^9.3.2",
|
"bpmn-js": "^9.3.2",
|
||||||
"bpmn-js-properties-panel": "^1.10.0",
|
"bpmn-js-properties-panel": "^1.10.0",
|
||||||
"bpmn-js-spiffworkflow": "sartography/bpmn-js-spiffworkflow#feature/more_launch_buttons_and_dropdowns",
|
"bpmn-js-spiffworkflow": "sartography/bpmn-js-spiffworkflow#main",
|
||||||
"craco": "^0.0.3",
|
"craco": "^0.0.3",
|
||||||
"date-fns": "^2.28.0",
|
"date-fns": "^2.28.0",
|
||||||
"diagram-js": "^8.5.0",
|
"diagram-js": "^8.5.0",
|
||||||
|
|
|
@ -689,9 +689,8 @@ export default function ProcessModelEditDiagram() {
|
||||||
const file = findFileNameForReferenceId(processId, 'bpmn');
|
const file = findFileNameForReferenceId(processId, 'bpmn');
|
||||||
if (file) {
|
if (file) {
|
||||||
const path = generatePath(
|
const path = generatePath(
|
||||||
'/admin/process-models/:process_group_id/:process_model_id/files/:file_name',
|
'/admin/process-models/:process_model_id/files/:file_name',
|
||||||
{
|
{
|
||||||
process_group_id: params.process_group_id,
|
|
||||||
process_model_id: params.process_model_id,
|
process_model_id: params.process_model_id,
|
||||||
file_name: file.name,
|
file_name: file.name,
|
||||||
}
|
}
|
||||||
|
@ -701,9 +700,8 @@ export default function ProcessModelEditDiagram() {
|
||||||
};
|
};
|
||||||
const onLaunchJsonEditor = (fileName: string) => {
|
const onLaunchJsonEditor = (fileName: string) => {
|
||||||
const path = generatePath(
|
const path = generatePath(
|
||||||
'/admin/process-models/:process_group_id/:process_model_id/form/:file_name',
|
'/admin/process-models/:process_model_id/files/:file_name',
|
||||||
{
|
{
|
||||||
process_group_id: params.process_group_id,
|
|
||||||
process_model_id: params.process_model_id,
|
process_model_id: params.process_model_id,
|
||||||
file_name: fileName,
|
file_name: fileName,
|
||||||
}
|
}
|
||||||
|
@ -713,10 +711,10 @@ export default function ProcessModelEditDiagram() {
|
||||||
const onLaunchDmnEditor = (processId: string) => {
|
const onLaunchDmnEditor = (processId: string) => {
|
||||||
const file = findFileNameForReferenceId(processId, 'dmn');
|
const file = findFileNameForReferenceId(processId, 'dmn');
|
||||||
if (file) {
|
if (file) {
|
||||||
|
console.log()
|
||||||
const path = generatePath(
|
const path = generatePath(
|
||||||
'/admin/process-models/:process_group_id/:process_model_id/files/:file_name',
|
'/admin/process-models/:process_model_id/files/:file_name',
|
||||||
{
|
{
|
||||||
process_group_id: params.process_group_id,
|
|
||||||
process_model_id: params.process_model_id,
|
process_model_id: params.process_model_id,
|
||||||
file_name: file.name,
|
file_name: file.name,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue