Drag&Drop Modify with collapsed subprocess with more than one process instance don´t work #4322
Labels
group:support
All requests that are linked to a customer request. DRI: Tassilo
potential:7.20.7
potential:7.21.3
type:bug
Issues that describe a user-facing bug in the project.
version:7.22.0
Environment (Required on creation)
Reproduces issue on Tomcat distro on version 7.20.4, 7.20.5 and 7.21.0
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)
User can't use drag and drop functionality for collapsed subprocess to start instance before/after an other step.
Steps to reproduce (Required on creation)
Could not apply modification : For instruction type 'cancel': 'activityId' must be set
Observed Behavior (Required on creation)
After following the above steps,
modification/executeAsync
endpoint returnsExpected behavior (Required on creation)
Should successfully send a
modification/executeAsync
which creates a batch job after the batch job run the tokens are in the user taskRoot Cause (Required on prioritization)
webapps/camunda-webapp/plugins/frontend/plugin/cockpit/modification/app/diagramPlugins/definitionModification.js
In
onDragAndDrop
we are checking if the element.id is present as a key in the activityIdToInstancesMap to see if it is a multi instance and then we set the id. However activityIdToInstancesMap does not contain collapsed subprocess. This id is used to create thecancel
action. When creating the request the empty field is filtered out this is how we end up with theFor instruction type 'cancel': 'activityId' must be set
error.I think this has never worked.
Solution Ideas
One simple fix is to check if the element type is
bpmn:SubProcess
then setMI
tofalse
andid
toelement.id
Hints
Links
https://jira.camunda.com/browse/SUPPORT-17986
Breakdown
Pull Requests
Dev2QA handover
The text was updated successfully, but these errors were encountered: