From 7db2710b8146265a55ce8f3062e43a6053fbc023 Mon Sep 17 00:00:00 2001 From: Trung Mai Date: Wed, 26 Jun 2024 13:59:19 +0700 Subject: [PATCH] TE-623: Update docuement --- .../ProcessInspectorTable.xhtml | 3 +-- .../InspectorSelection/InspectorSelection.xhtml | 3 +-- process-inspector-product/README.md | 8 ++++---- ...o.png => advancedProcessInspectorResultDemo.png} | Bin ...ng => advancedProcessInspectorSelectionDemo.png} | Bin .../utils/process/inspector/ProcessInspector.java | 8 +++++--- 6 files changed, 11 insertions(+), 11 deletions(-) rename process-inspector-product/images/{advancedProcessAnalyzerResultDemo.png => advancedProcessInspectorResultDemo.png} (100%) rename process-inspector-product/images/{advancedProcessAnalyzerSelectionDemo.png => advancedProcessInspectorSelectionDemo.png} (100%) diff --git a/process-inspector-demo/src_hd/com/axonivy/utils/process/inspector/demo/ProcessInspectorTable/ProcessInspectorTable.xhtml b/process-inspector-demo/src_hd/com/axonivy/utils/process/inspector/demo/ProcessInspectorTable/ProcessInspectorTable.xhtml index cf0ef8e4..66e3bd0f 100644 --- a/process-inspector-demo/src_hd/com/axonivy/utils/process/inspector/demo/ProcessInspectorTable/ProcessInspectorTable.xhtml +++ b/process-inspector-demo/src_hd/com/axonivy/utils/process/inspector/demo/ProcessInspectorTable/ProcessInspectorTable.xhtml @@ -8,7 +8,7 @@ xmlns:c="http://java.sun.com/jsp/jstl/core"> - ProcessAnalyzerDetail + ProcessInspectorDetail

Process Inspector

@@ -22,7 +22,6 @@ diff --git a/process-inspector-demo/src_hd/com/axonivy/utils/process/inspector/demo/component/InspectorSelection/InspectorSelection.xhtml b/process-inspector-demo/src_hd/com/axonivy/utils/process/inspector/demo/component/InspectorSelection/InspectorSelection.xhtml index 864dad4c..d7ca0d5a 100644 --- a/process-inspector-demo/src_hd/com/axonivy/utils/process/inspector/demo/component/InspectorSelection/InspectorSelection.xhtml +++ b/process-inspector-demo/src_hd/com/axonivy/utils/process/inspector/demo/component/InspectorSelection/InspectorSelection.xhtml @@ -8,8 +8,7 @@ xmlns:pe="http://primefaces.org/ui/extensions" xmlns:c="http://java.sun.com/jsp/jstl/core"> - - + diff --git a/process-inspector-product/README.md b/process-inspector-product/README.md index 4d41f405..d86f46fc 100644 --- a/process-inspector-product/README.md +++ b/process-inspector-product/README.md @@ -125,13 +125,13 @@ In the project, you only add the dependency in your pom.xml and call public APIs **2. How to analyze the workflow base on the process flow override?** ```java - // We create a new process analyzer with flowName is null. + // We create a new process inspector with flowName is null. // Basically, the path taken after alternative will base on default path. But we will override it by setProcessFlowOverrides API var processInspector = new AdvancedProcessInspector(process); var flowOverrides = new HashMap(); flowOverrides.put("18E180A64355D4D9-f4", "18E180A64355D4D9-f13"); //alter1 -> sequence flow {internal}\n{external}\n{mixed} flowOverrides.put("18E180A64355D4D9-f12", "18E180A64355D4D9-f14"); //int/ext? -> sequence flow {internal} - processAnalyzer.setProcessFlowOverrides(flowOverrides); + processInspector.setProcessFlowOverrides(flowOverrides); public List detectedTasks = processInspector.findTasksOnPath(start, null, null); @@ -141,9 +141,9 @@ In the project, you only add the dependency in your pom.xml and call public APIs ## Demo - Select the process and some configuration which need for your analysis -![process-inspector-demo](images/advancedProcessAnalyzerSelectionDemo.png) +![process-inspector-demo](images/advancedProcessInspectorSelectionDemo.png) - Hit the **Run** button to get the analysis result -![process-inspector-demo](images/advancedProcessAnalyzerResultDemo.png) +![process-inspector-demo](images/advancedProcessInspectorResultDemo.png) diff --git a/process-inspector-product/images/advancedProcessAnalyzerResultDemo.png b/process-inspector-product/images/advancedProcessInspectorResultDemo.png similarity index 100% rename from process-inspector-product/images/advancedProcessAnalyzerResultDemo.png rename to process-inspector-product/images/advancedProcessInspectorResultDemo.png diff --git a/process-inspector-product/images/advancedProcessAnalyzerSelectionDemo.png b/process-inspector-product/images/advancedProcessInspectorSelectionDemo.png similarity index 100% rename from process-inspector-product/images/advancedProcessAnalyzerSelectionDemo.png rename to process-inspector-product/images/advancedProcessInspectorSelectionDemo.png diff --git a/process-inspector/src/com/axonivy/utils/process/inspector/ProcessInspector.java b/process-inspector/src/com/axonivy/utils/process/inspector/ProcessInspector.java index 88d6737c..9a8594e3 100644 --- a/process-inspector/src/com/axonivy/utils/process/inspector/ProcessInspector.java +++ b/process-inspector/src/com/axonivy/utils/process/inspector/ProcessInspector.java @@ -19,10 +19,12 @@ * A (1h) -> [alternative] -{internal}-> Task B (2h) -> EndTask * |------------> Task C (3h) -> EndTask * How to find all tasks ? - * ProcessInspector ProcessInspector = new ProcessAnalyzer(); - * List result = processAnalyzer.findAllTasks(start, UseCase.BIGPROJECT); Result: + * ProcessInspector processInspector = new ProcessProcessInspector(); + * List result = processInspector.findAllTasks(start, UseCase.BIGPROJECT); Result: * Task A (1h), Task B (3h), Task C (4h) => So duration to finish all tasks will task 4hours - * How to find tasks on path? ProcessInspector processInspector = new ProcessInspector(); + * + * How to find tasks on path? + * ProcessInspector processInspector = new ProcessInspector(); * List result = processInspector.findTasksOnPath(start, UseCase.BIGPROJECT, "internal"); * Result: Task A (1h), Task B (3h) So duration to finish all tasks will task 3hours */