-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TE-585: Restructure SubProcess Elements
- Loading branch information
1 parent
d62ac61
commit 59e1a00
Showing
6 changed files
with
114 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
process-analyzer/src/com/axonivy/utils/process/analyzer/internal/model/SubProcessGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.axonivy.utils.process.analyzer.internal.model; | ||
|
||
import static org.apache.commons.lang3.StringUtils.EMPTY; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
import ch.ivyteam.ivy.process.model.BaseElement; | ||
import ch.ivyteam.ivy.process.model.value.PID; | ||
|
||
public class SubProcessGroup implements ProcessElement { | ||
private BaseElement element; | ||
List<AnalysisPath> internalPaths; | ||
|
||
public SubProcessGroup(BaseElement element) { | ||
this.element = element; | ||
} | ||
|
||
public List<AnalysisPath> getInternalPaths() { | ||
return internalPaths; | ||
} | ||
|
||
public void setInternalPaths(List<AnalysisPath> internalPaths) { | ||
this.internalPaths = internalPaths; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(this.element, this.internalPaths); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.format("%s : %s ", Objects.toString(element, EMPTY), Objects.toString(internalPaths, EMPTY)); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object other) { | ||
if (this == other) { | ||
return true; | ||
} | ||
if (other == null) { | ||
return false; | ||
} | ||
if (!(other instanceof SubProcessGroup)) { | ||
return false; | ||
} | ||
SubProcessGroup task = (SubProcessGroup) other; | ||
return Objects.equals(task.element, this.element) && Objects.equals(task.internalPaths, this.internalPaths); | ||
} | ||
|
||
@Override | ||
public PID getPid() { | ||
return element.getPid(); | ||
} | ||
|
||
@Override | ||
public BaseElement getElement() { | ||
return element; | ||
} | ||
|
||
} |