-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AAE-28451 Add subproceses to process instance #1617
base: develop
Are you sure you want to change the base?
AAE-28451 Add subproceses to process instance #1617
Conversation
...l/src/main/java/org/activiti/cloud/api/process/model/impl/QueryCloudProcessInstanceImpl.java
Show resolved
Hide resolved
...cess-model/src/main/java/org/activiti/cloud/api/process/model/QueryCloudProcessInstance.java
Show resolved
Hide resolved
...rg/activiti/cloud/services/query/app/repository/CustomizedProcessInstanceRepositoryImpl.java
Outdated
Show resolved
Hide resolved
import org.springframework.data.jpa.repository.support.QuerydslRepositorySupport; | ||
import org.springframework.data.support.PageableExecutionUtils; | ||
|
||
public class CustomizedProcessInstanceRepositoryImpl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the mapSubprocesses methods, the process of loading subprocesses should be the same. Could you try using a single method for the find and set part of the subprocesses? Maybe by calling the mapSubprocesses(ProcessInstanceEntity processInstance) method from mapSubprocesses(Page processInstances, Pageable pageable)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what I tried in the beginning but due to pageable it is difficult. Also mapSubprocess is used only for a single process instance . If we try calling it from mapSubprocesses(Page processInstances, Pageable pageable) it would mean a lot more database calls and I dont think we want that
...rg/activiti/cloud/services/query/app/repository/CustomizedProcessInstanceRepositoryImpl.java
Show resolved
Hide resolved
...st/src/main/java/org/activiti/cloud/services/query/rest/ProcessInstanceControllerHelper.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
Could you please move the helpers(like ProcessInstanceControllerHelper) from package rest to a new package rest.helper?
Also please add the tests to cover the new changes.
05f2145
to
a263c64
Compare
130eea8
to
6746b50
Compare
a4c68b6
to
2277a02
Compare
Quality Gate passedIssues Measures |
Issue Link : AAE-28451
This PR is focusses around introducing a new subprocesses property with ProcessInstances