Skip to content

Commit

Permalink
TE-623: Update docuement
Browse files Browse the repository at this point in the history
  • Loading branch information
trungmaihova committed Jun 26, 2024
1 parent d307fbf commit 7db2710
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:body>
<ui:composition template="/layouts/frame-10-full-width.xhtml">
<ui:define name="title">ProcessAnalyzerDetail</ui:define>
<ui:define name="title">ProcessInspectorDetail</ui:define>
<ui:define name="content">

<h2>Process Inspector</h2>
Expand All @@ -22,7 +22,6 @@
<ic:com.axonivy.utils.process.inspector.demo.component.InspectorSelection
id="inspector-selection"
updateFormId="process-inspector:inspector-detail-group"
dialogWidgetVarId="analyzerDialog"
processInspectorBean="#{data.processInspectorBean}" />

<h:panelGroup id="inspector-detail-group">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
xmlns:pe="http://primefaces.org/ui/extensions"
xmlns:c="http://java.sun.com/jsp/jstl/core">

<cc:interface componentType="IvyComponent">
<cc:attribute name="dialogWidgetVarId" required="true" />
<cc:interface componentType="IvyComponent">
<cc:attribute name="updateFormId" />
</cc:interface>
<cc:implementation>
Expand Down
8 changes: 4 additions & 4 deletions process-inspector-product/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String>();
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<DetectedElement> detectedTasks = processInspector.findTasksOnPath(start, null, null);

Expand All @@ -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)



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<DetectedElement> result = processAnalyzer.findAllTasks(start, UseCase.BIGPROJECT); Result:
* ProcessInspector processInspector = new ProcessProcessInspector();
* List<DetectedElement> 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<DetectedElement> result = processInspector.findTasksOnPath(start, UseCase.BIGPROJECT, "internal");
* Result: Task A (1h), Task B (3h) So duration to finish all tasks will task 3hours
*/
Expand Down

0 comments on commit 7db2710

Please sign in to comment.