-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Start date filter for modify operation #4586
Labels
type:feature
Issues that add a new user feature to the project.
version:7.22.0-alpha6
version:7.22.0
Comments
venetrius
added
type:feature
Issues that add a new user feature to the project.
version:7.22.0
labels
Sep 6, 2024
Dev2QA:@gbetances089
|
Tested on the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
type:feature
Issues that add a new user feature to the project.
version:7.22.0-alpha6
version:7.22.0
User Story (Required on creation)
When filtering for process instances to modify in cockpit modify workflow I want to be able to apply a filter to the
startDate
of the process instance.Functional Requirements (Required before implementation)
API:
incidentIdIn
filter is available onhistoricProcessInstanceQuery
activityIdIn
filter is available onhistoricProcessInstanceQuery
. It returns all non completed / deleted activity with an exception regarding :asyncBefore
/asyncAfter
andcompensation
. More about exception in this note/camunda/api/engine/engine/default/modification/executeAsync
) accepts historicProcessInstanceQuery param to select instancesClient - Cockpit
Swap processInstanceQuery to historicProcessInstanceQuery in modify operation
Users can filter on
startDate
in process instance modify workflow.All the existing filters are working
Saved filters are not shared between process instance modify workflow and other pages/workflows.
Breakdown
Add
IncidentIdIn
filter toHistoricProcessInstanceQuery
Java API
incidentIdIn(String... incidentIds);
to theHistoricProcessInstanceQuery
APIincidentIds
with setter /getter toHistoricProcessInstanceQueryDto(impl)
SQL
incidentId
is available inACT_HI_INCIDENT
the logic to joinACT_HI_INCIDENT
is already present inHistoricProcessInstanceQuery
and only needed to be updated with a check on the new field.Code changes in `HistoricProcessInstance.xml`
Swap
processInstanceQuery
tohistoricProcessInstanceQuery
in modify operationUpdate instancesList.js to use historicProcessInstanceQuery
Code changes
Filter out finished instances
In instancesList.js add unfinished = true filter to all modify instances query to only show runtime instance and not finished or canceled ones
Update keys in filter configuration
Keys, values and available operators are defined in instances-search-config.json
Keys are the filter names that are sent in a request, values are the labels that are visible for a customer.
Example:
Config for filtering by subprocess instance idWhat the users sees when filtering by subprocess instance id
Update the key for the filters and leave the values unchanged so the users don't have to re-learn the filter names.
Update local storage key used to save modify queries
Update the
storage-group
in modification-confirmation-dialog.html from"'PI'"
to"'PIM'"
(Process Instance Modification)Limitations of Scope
Hints
Links
epic
Breakdown
Pull Requests
Dev2QA handover
The text was updated successfully, but these errors were encountered: