Skip to content

Idempotency of change variables batch operation #4795

@joaquinfelici

Description

@joaquinfelici

User Story (Required on creation)

As a user, executing a batch operation for setting variables in cockpit should always succeed even if one or more process instances have been completed/deleted in the meantime.

Functional Requirements (Required before implementation)

  • When executing a batch operation for setting variables on one or more process instances, if any of the process instances has been completed/deleted, the batch should still succeed.
  • Same behavior when calling the set variables async rest api endpoint.

Technical Requirements (Required before implementation)

  • Introduce mechanism in AbstractVariableCmd to not fail on given conditions (execution coming from batch).
  • Default behavior (for sync api) will be to fail as usual.
  • Handle new behavior in BatchSetVariablesHandler only.

Limitations of Scope

  • Only for async api.
  • No configurable flag is needed.

Hints

  • Unit testing.
  • Documentation for java/rest api.
  • Migration guide should mention this change in behavior for batch.

Links

Breakdown

### Pull Requests
- [ ] https://github.com/camunda/camunda-bpm-platform/pull/4790
- [ ] https://github.com/camunda/camunda-docs-manual/pull/1707
- [ ] https://github.com/camunda/camunda-docs-manual/pull/1708
- [ ] https://github.com/camunda/camunda-bpm-platform-maintenance/pull/1314

Dev2QA handover

  • Does this ticket need a QA test and the testing goals are not clear from the description? Add a Dev2QA handover comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions