camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.1k stars 1.55k forks source link

In Cockpit, UserOperationLog is missing for increment retries on ExternalTask #4363

Closed mboskamp closed 1 week ago

mboskamp commented 4 months ago

Environment (Required on creation)

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)

When incrementing the retries on an External Task in Cockpit (e.g. when it has no retries left, the number of retries can be incremented from the incident view), no user operation log is shown on the history view under the User Operations tab.

Steps to reproduce (Required on creation)

Observed Behavior (Required on creation)

No user operation is displayed on the User Operations tab in the history view of an External Task that had its retries incremented.

Expected behavior (Required on creation)

The user operation that is produced when incrementing the retries of a failed External Task is displayed in the User Operation tab in the history view of an External Task in Cockpit.

Root Cause (Required on prioritization)

Cockpit filters the user operation log entries by entityType. only operation log entries with entityTypes ProcessInstance, Job%, and Variable are displayed.

The query that Cockpit sends is: http://localhost:8080/camunda/api/engine/engine/default/history/user-operation?sortBy=timestamp&sortOrder=desc&firstResult=0&maxResults=50&processInstanceId=fab250f3-174f-11ef-8704-84a9385a812f&entityTypeIn=ProcessInstance%2CJob%2CVariable. The query that would include entityType ExternalTask is: http://localhost:8080/camunda/api/engine/engine/default/history/user-operation?sortBy=timestamp&sortOrder=desc&firstResult=0&maxResults=50&processInstanceId=fab250f3-174f-11ef-8704-84a9385a812f&entityTypeIn=ProcessInstance%2CJob%2CVariable%2CExternalTask

Solution Ideas

Add entityType ExternalTask to the query parameters.

Hints

Links

https://jira.camunda.com/browse/SUPPORT-21989

Breakdown

### Pull Requests
- [ ] https://github.com/camunda/camunda-bpm-platform-ee/pull/981

Dev2QA handover

tasso94 commented 2 weeks ago

Will backport it after review.

gbetances089 commented 1 week ago

Verified on 7.22.0-SNAPSHOT

Image