Open ThorbenLindhauer opened 3 years ago
This comment was imported from JIRA and written by user @ThorbenLindhauer
Test case: https://github.com/camunda/camunda-bpm-platform/compare/CAM-13325-uncaught-error-extTask
This comment was imported from JIRA and written by user @ThorbenLindhauer
An idea for a fix could be to set the activity to null before calling process end. I pushed this to the branch: https://github.com/camunda/camunda-bpm-platform/commit/14e85aa5df05516673d10d8ee9294c16c3f67813
Then 25 test cases fail:
Full list of failures:
<ERROR> Failures:
<ERROR> HistoryServiceTest.testHistoricProcessInstanceUserIdAndActivityId:212 expected:<theEnd> but was:<null>
<ERROR> ProcessInstanceModificationSubProcessTest.shouldCompleteParentProcessWithParallelGateway:240
Expected: is <0L>
but: was <1L>
<ERROR> ProcessInstanceModificationSubProcessTest.shouldContinueParentProcess:192
Expected: is <1L>
but: was <0L>
<ERROR> ProcessInstanceModificationSubProcessTest.shouldContinueParentProcessWithMultiInstance:369
Expected: is <1L>
but: was <0L>
<ERROR> ProcessInstanceModificationSubProcessTest.shouldContinueParentProcessWithMultiInstanceEmbeddedSubProcess:562
Expected: is <1L>
but: was <0L>
<ERROR> ProcessInstanceModificationSubProcessTest.shouldContinueParentProcessWithMultiInstanceInsideEmbeddedSubProcess:466
Expected: is <1L>
but: was <0L>
<ERROR> ProcessInstantiationAtActivitiesTest.testStartMultipleTasksInSyncProcess:537 expected:<end> but was:<null>
<ERROR> BoundaryErrorEventTest.testDeeplyNestedErrorThrownOnlyAutomaticSteps:223 expected:<processEnd1> but was:<null>
<ERROR> ExecutionListenerBpmnModelExecutionContextTest.testProcessEndEvent:160->assertFlowElementIs:181
<ERROR> ExecutionListenerTest.testMultiInstanceCancelationDoesNotAffectEndListener:508
<ERROR> ExecutionListenerTest.testScriptListener:284 Unable ot find variable with name 'end-end'
<ERROR> ExecutionListenerTest.testScriptResourceListener:308 Unable ot find variable with name 'end-end'
<ERROR> HistoricProcessInstanceStateTest.testCompletedOnEndEvent:86 expected:<"<COMPLE>TED"> but was:<"<INTERNALLY_TERMINA>TED">
<ERROR> HistoricProcessInstanceStateTest.testCompletionWithSuspension:123 expected:<"<COMPLE>TED"> but was:<"<INTERNALLY_TERMINA>TED">
<ERROR> HistoricProcessInstanceStateTest.testErrorEndEvent:231 expected:<"<COMPLE>TED"> but was:<"<INTERNALLY_TERMINA>TED">
<ERROR> HistoricProcessInstanceStateTest.testTerminatedInternalWithGateway:74 expected:<"<COMPLE>TED"> but was:<"<INTERNALLY_TERMINA>TED">
<ERROR> HistoricProcessInstanceStateTest.testWithCallActivity:249 expected:<"<COMPLE>TED"> but was:<"<INTERNALLY_TERMINA>TED">
<ERROR> SkipOutputMappingOnCanceledActitivitesTest.shouldSkipOutputMappingOnBpmnErrorAtExternalTasWithUncaughtErrorAsyncAfter:138 expected:<"<COMPLE>TED"> but was:<"<INTERNALLY_TERMINA>TED">
<ERROR> SkipOutputMappingOnCanceledActitivitesTest.shouldSkipOutputMappingOnBpmnErrorAtExternalTaskWithUncaughtError:102 expected:<"<COMPLE>TED"> but was:<"<INTERNALLY_TERMINA>TED">
<ERROR> ProcessDataLoggingContextTest.shouldLogCustomMdcPropertiesOnlyInActivityContext:186->assertActivityLogsPresent:683->assertLogs:732
<ERROR> ProcessDataLoggingContextTest.shouldLogMdcPropertiesForAsyncAfterInTaskContext:254->assertActivityLogsPresent:667->assertActivityLogs:676->assertActivityLogs:707->assertLogs:732
<ERROR> ProcessDataLoggingContextTest.shouldLogMdcPropertiesForAsyncBeforeInTaskContext:237->assertActivityLogsPresent:667->assertActivityLogs:676->assertActivityLogs:707->assertLogs:732
<ERROR> ProcessDataLoggingContextTest.shouldLogMdcPropertiesForTimerInTaskContext:273->assertActivityLogsPresent:667->assertActivityLogs:676->assertActivityLogs:707->assertLogs:732
<ERROR> ProcessDataLoggingContextTest.shouldLogMdcPropertiesOnlyInActivityContext:165->assertActivityLogsPresent:667->assertActivityLogs:676->assertActivityLogs:707->assertLogs:732
<ERROR> ProcessDataLoggingContextTest.shouldNotLogBusinessKeyIfNotConfigured:137->assertActivityLogs:676->assertActivityLogs:707->assertLogs:732
<ERROR> Errors:
<ERROR> ProcessInstanceModificationSubProcessTest.shouldContinueParentProcessWithParallelGateway:290 NullPointer
<ERROR> TaskListenerDelegateCompletionTest.testCompletionIsPossibleAfterAssignmentUpdate:123 ▒ ProcessEngine
<ERROR> PvmActivityInstanceTest.testStartInSubProcess:526 ▒ NullPointer
<ERROR> PvmActivityInstanceTest.testSubProcessNoEnd:471 ▒ NullPointer
<INFO>
<ERROR> Tests run: 14821, Failures: 25, Errors: 4, Skipped: 86
This issue was imported from JIRA:
Environment (Required on creation):
skipOutputMappingOnCanceledActivities
is set totrue
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
Steps to reproduce (Required on creation):
Observed Behavior (Required on creation):
Expected behavior (Required on creation):
Root Cause (Required on prioritization):
ExecutionEntity#destroy
- when the process instance is destroyed. The output parameter is executed twice: once when scope execution of the activity with the mapping is destroyed (=> expected) and once when the process instance execution is destroyed (=> not expected)PvmAtomicOperationActivityEnd
sets the activity on the next higher execution after removal (https://github.com/camunda/camunda-bpm-platform/blob/7.14.0/engine/src/main/java/org/camunda/bpm/engine/impl/pvm/runtime/operation/PvmAtomicOperationActivityEnd.java#L66)Solution Ideas (Optional):
Hints (Optional):
Links: