-
Notifications
You must be signed in to change notification settings - Fork 562
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
NPE during process instance modification #10606
Labels
kind/bug
Categorizes an issue or PR as a bug
version:8.1.5
Marks an issue as being completely or in parts released in 8.1.5
version:8.2.0-alpha2
Marks an issue as being completely or in parts released in 8.2.0-alpha2
version:8.2.0
Marks an issue as being completely or in parts released in 8.2.0
Comments
This bug has occurred in he medic process now. In my case is was caused by a Call Activity which had an incident whilst mapping the outputs. I've written a test to reproduce it. @Test
public void verifyCallActivityWithIncidentCanBeModified() {
final var child = Bpmn.createExecutableProcess("child").startEvent().endEvent().done();
final var parent =
Bpmn.createExecutableProcess("parent")
.startEvent()
.callActivity("callActivity", c -> c.zeebeProcessId("child"))
.zeebeOutputExpression("x", "y")
.manualTask("task")
.endEvent()
.done();
ENGINE.deployment().withXmlResource(child).withXmlResource(parent).deploy();
final var processInstanceKey = ENGINE.processInstance().ofBpmnProcessId("parent").create();
final var callActivityElement =
RecordingExporter.processInstanceRecords(ProcessInstanceIntent.ELEMENT_ACTIVATED)
.withProcessInstanceKey(processInstanceKey)
.withElementId("callActivity")
.withElementType(BpmnElementType.CALL_ACTIVITY)
.getFirst();
Assertions.assertThat(
RecordingExporter.incidentRecords(IncidentIntent.CREATED)
.withProcessInstanceKey(processInstanceKey)
.getFirst())
.extracting(r -> r.getValue().getElementId())
.isEqualTo("callActivity");
ENGINE
.processInstance()
.withInstanceKey(processInstanceKey)
.modification()
.activateElement("task")
.terminateElement(callActivityElement.getKey())
.modify();
verifyThatRootElementIsActivated(processInstanceKey, "task", BpmnElementType.MANUAL_TASK);
verifyThatProcessInstanceIsCompleted(processInstanceKey);
} I feel like this could be a common scenario in which modification is used and we should aim to fix this in the next patch release. WDYT @saig0? |
As it's as small fix I'll go ahead and do it. |
9 tasks
remcowesterhoud
added
version:8.2.0-alpha2
Marks an issue as being completely or in parts released in 8.2.0-alpha2
version:8.1.5
Marks an issue as being completely or in parts released in 8.1.5
labels
Dec 6, 2022
npepinpe
added
the
version:8.2.0
Marks an issue as being completely or in parts released in 8.2.0
label
Apr 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/bug
Categorizes an issue or PR as a bug
version:8.1.5
Marks an issue as being completely or in parts released in 8.1.5
version:8.2.0-alpha2
Marks an issue as being completely or in parts released in 8.2.0-alpha2
version:8.2.0
Marks an issue as being completely or in parts released in 8.2.0
Describe the bug
To Reproduce
Unclear, data (ie. models) is not accessible anymore.
Expected behavior
No NPE, if this is expected then we should throw a meaningful exception.
Log/Stacktrace
Full Stacktrace
Error group: https://console.cloud.google.com/errors/detail/CNSa-5ifjeT1Og?project=camunda-cloud-240911
Environment:
The text was updated successfully, but these errors were encountered: