Data obj show use params (#1160)
* wip spiff lib upgrade * unit and script tests are now passing w/ burnettk * tests and pre-commit are passing * fallback to params if a matching task cannot tbe found when trying to view the contents of a data object from the web ui --------- Co-authored-by: burnettk <burnettk@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com> Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
This commit is contained in:
parent
3416843329
commit
1167187557
|
@ -10,3 +10,4 @@ process_models/
|
||||||
.ipynb_checkpoints
|
.ipynb_checkpoints
|
||||||
.env*
|
.env*
|
||||||
.cache
|
.cache
|
||||||
|
.mypy_cache
|
||||||
|
|
|
@ -794,8 +794,16 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
|
||||||
});
|
});
|
||||||
if (matchingTask) {
|
if (matchingTask) {
|
||||||
additionalParams = `?process_identifier=${processIdentifier}&bpmn_process_guid=${matchingTask.guid}`;
|
additionalParams = `?process_identifier=${processIdentifier}&bpmn_process_guid=${matchingTask.guid}`;
|
||||||
|
} else if (
|
||||||
|
searchParams.get('process_identifier') &&
|
||||||
|
searchParams.get('bpmn_process_guid')
|
||||||
|
) {
|
||||||
|
additionalParams = `?process_identifier=${searchParams.get(
|
||||||
|
'process_identifier'
|
||||||
|
)}&bpmn_process_guid=${searchParams.get('bpmn_process_guid')}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpService.makeCallToBackend({
|
HttpService.makeCallToBackend({
|
||||||
path: `/process-data/${category}/${params.process_model_id}/${dataObjectIdentifer}/${params.process_instance_id}${additionalParams}`,
|
path: `/process-data/${category}/${params.process_model_id}/${dataObjectIdentifer}/${params.process_instance_id}${additionalParams}`,
|
||||||
httpMethod: 'GET',
|
httpMethod: 'GET',
|
||||||
|
|
Loading…
Reference in New Issue