diff --git a/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx b/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx index 6408be2d..23d2558e 100644 --- a/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx +++ b/spiffworkflow-frontend/src/components/ProcessBreadcrumb.tsx @@ -32,7 +32,7 @@ const explodeCrumb = (crumb: HotCrumbItem) => { if (lastPathItem !== undefined) { paths.push(lastPathItem); } - // process_models to process-models + // process_model to process-models const lastUrl = `/admin/${endingUrlType .replace('_', '-') .replace(/s*$/, 's')}/${paths.join(':')}`; diff --git a/spiffworkflow-frontend/src/routes/MessageInstanceList.tsx b/spiffworkflow-frontend/src/routes/MessageInstanceList.tsx index 6bc0a57d..55e885ae 100644 --- a/spiffworkflow-frontend/src/routes/MessageInstanceList.tsx +++ b/spiffworkflow-frontend/src/routes/MessageInstanceList.tsx @@ -7,6 +7,8 @@ import ProcessBreadcrumb from '../components/ProcessBreadcrumb'; import { convertSecondsToFormattedDate, getPageInfoFromSearchParams, + modifyProcessModelPath, + unModifyProcessModelPath, } from '../helpers'; import HttpService from '../services/HttpService'; @@ -44,15 +46,9 @@ export default function MessageInstanceList() { - {rowToUse.process_group_identifier} - - - - {rowToUse.process_model_identifier} @@ -60,7 +56,9 @@ export default function MessageInstanceList() { {rowToUse.process_instance_id} @@ -80,7 +78,6 @@ export default function MessageInstanceList() { Instance Id - Process Group Process Model Process Instance Message Model @@ -107,9 +104,21 @@ export default function MessageInstanceList() { )}&process_instance_id=${searchParams.get('process_instance_id')}`; breadcrumbElement = ( ); } diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx index 3bec8aef..22303dec 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx @@ -8,6 +8,7 @@ import { getPageInfoFromSearchParams, convertSecondsToFormattedDate, modifyProcessModelPath, + unModifyProcessModelPath, } from '../helpers'; import HttpService from '../services/HttpService'; @@ -33,7 +34,6 @@ export default function ProcessInstanceLogList() { }, [searchParams, params]); const buildTable = () => { - // return null; const rows = processInstanceLogs.map((row) => { const rowToUse = row as any; return ( @@ -56,7 +56,7 @@ export default function ProcessInstanceLogList() { ); }); return ( - +
@@ -74,13 +74,24 @@ export default function ProcessInstanceLogList() { }; if (pagination) { + console.log('params.process_model_id', params.process_model_id); const { page, perPage } = getPageInfoFromSearchParams(searchParams); return (
{ return ( -
  • - - {label} - -
  • + + {label} + ); }; @@ -150,7 +155,7 @@ export default function ProcessInstanceShow() { return null; } - return spiffStepLink(processInstanceToUse, 'Previous Step', -1); + return spiffStepLink(processInstanceToUse, '<<', -1); }; const nextStepLink = (processInstanceToUse: any) => { @@ -158,7 +163,7 @@ export default function ProcessInstanceShow() { return null; } - return spiffStepLink(processInstanceToUse, 'Next Step', 1); + return spiffStepLink(processInstanceToUse, '>>', 1); }; const getInfoTag = (processInstanceToUse: any) => { @@ -177,7 +182,7 @@ export default function ProcessInstanceShow() { } return ( -
      +
    • Started:{' '} {convertSecondsToFormattedDate(processInstanceToUse.start_in_seconds)} @@ -200,13 +205,7 @@ export default function ProcessInstanceShow() { Messages
    • -
    • - Step {currentSpiffStep(processInstanceToUse)} of{' '} - {processInstanceToUse.spiff_step} -
    • - {previousStepLink(processInstanceToUse)} - {nextStepLink(processInstanceToUse)} -
    + ); }; @@ -433,6 +432,21 @@ export default function ProcessInstanceShow() { return null; }; + const stepsElement = (processInstanceToUse: any) => { + return ( + + + + {previousStepLink(processInstanceToUse)} + Step {currentSpiffStep(processInstanceToUse)} of{' '} + {processInstanceToUse.spiff_step} + {nextStepLink(processInstanceToUse)} + + + + ); + }; + if (processInstance && tasks) { const processInstanceToUse = processInstance as any; const taskIds = getTaskIds(); @@ -449,22 +463,28 @@ export default function ProcessInstanceShow() { `Process Model: ${processModelId}`, `process_model:${processModelId}:link`, ], - [`Process Instance: ${params.process_instance_id}`], + [`${processInstanceToUse.id}`], ]} /> +

    Process Instance Id: {processInstanceToUse.id}

    -

    Process Instance Id: {processInstanceToUse.id}

    {terminateButton(processInstanceToUse)} {suspendButton(processInstanceToUse)} {resumeButton(processInstanceToUse)}
    +
    +
    {getInfoTag(processInstanceToUse)} +
    {taskDataDisplayArea()} + {stepsElement(processInstanceToUse)} +
    -

    Edit Process Model: {(processModel as any).id}

    - +
    Bpmn Process Identifier