diff --git a/plugins/orchestrator/src/components/WorkflowInstancePageContent.tsx b/plugins/orchestrator/src/components/WorkflowInstancePageContent.tsx index 7e5c2fcb78..2f45b3857b 100644 --- a/plugins/orchestrator/src/components/WorkflowInstancePageContent.tsx +++ b/plugins/orchestrator/src/components/WorkflowInstancePageContent.tsx @@ -16,6 +16,7 @@ import { WorkflowProgress } from './WorkflowProgress'; import { WorkflowResult } from './WorkflowResult'; import { WorkflowRunDetail } from './WorkflowRunDetail'; import { WorkflowRunDetails } from './WorkflowRunDetails'; +import { WorkflowVariablesViewer } from './WorkflowVariablesViewer'; export const mapProcessInstanceToDetails = ( instance: ProcessInstanceDTO, @@ -48,9 +49,10 @@ const useStyles = makeStyles(_ => ({ height: '20rem', }, middleRowCard: { - height: 'calc(2 * 20rem)', + height: '20rem', }, bottomRowCard: { + minHeight: '40rem', height: '100%', }, autoOverflow: { overflow: 'auto' }, @@ -72,10 +74,22 @@ export const WorkflowInstancePageContent: React.FC<{ [assessedInstance.instance], ); + const workflowdata = assessedInstance.instance?.workflowdata; + let instanceVariables; + if (workflowdata) { + instanceVariables = { + /* Since we are about to remove just the top-level property, shallow copy of the object is sufficient */ + ...workflowdata, + }; + if (instanceVariables.hasOwnProperty('result')) { + delete instanceVariables.result; + } + } + return ( - + + + + + {instanceVariables && ( + + )} + {!instanceVariables && ( +
The workflow instance has no variables
+ )} +
+
@@ -102,7 +129,7 @@ export const WorkflowInstancePageContent: React.FC<{