diff --git a/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/node/ForEachNodeInstance.java b/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/node/ForEachNodeInstance.java index 9b17022e460..b237746227b 100755 --- a/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/node/ForEachNodeInstance.java +++ b/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/node/ForEachNodeInstance.java @@ -354,7 +354,6 @@ public int getLevelForNode(String uniqueID) { return 1; } - @Override public Collection getSerializableNodeInstances() { return getNodeInstances().stream().filter(ForEachNodeInstance::isSerializable).collect(Collectors.toUnmodifiableList()); } diff --git a/jbpm/process-serialization-protobuf/src/main/java/org/jbpm/flow/serialization/impl/ProtobufProcessInstanceWriter.java b/jbpm/process-serialization-protobuf/src/main/java/org/jbpm/flow/serialization/impl/ProtobufProcessInstanceWriter.java index 700d7abd422..e773199b529 100644 --- a/jbpm/process-serialization-protobuf/src/main/java/org/jbpm/flow/serialization/impl/ProtobufProcessInstanceWriter.java +++ b/jbpm/process-serialization-protobuf/src/main/java/org/jbpm/flow/serialization/impl/ProtobufProcessInstanceWriter.java @@ -249,7 +249,7 @@ public FieldDescriptor getContextField(GeneratedMessageV3.Builder builder) { } protected WorkflowContext buildWorkflowContext(T nodeInstance) { - List nodeInstances = new ArrayList<>(nodeInstance.getSerializableNodeInstances()); + List nodeInstances = new ArrayList<>(nodeInstance.getNodeInstances()); List exclusiveGroupInstances = nodeInstance.getContextInstances(ExclusiveGroup.EXCLUSIVE_GROUP); VariableScopeInstance variableScopeInstance = (VariableScopeInstance) nodeInstance.getContextInstance(VariableScope.VARIABLE_SCOPE); List> variables = (variableScopeInstance != null) ? new ArrayList<>(variableScopeInstance.getVariables().entrySet()) : Collections.emptyList(); diff --git a/jbpm/process-serialization-protobuf/src/test/java/org/jbpm/flow/serialization/impl/ProtobufProcessInstanceWriterTest.java b/jbpm/process-serialization-protobuf/src/test/java/org/jbpm/flow/serialization/impl/ProtobufProcessInstanceWriterTest.java index 4d37ade30f2..1796e5a3c8e 100644 --- a/jbpm/process-serialization-protobuf/src/test/java/org/jbpm/flow/serialization/impl/ProtobufProcessInstanceWriterTest.java +++ b/jbpm/process-serialization-protobuf/src/test/java/org/jbpm/flow/serialization/impl/ProtobufProcessInstanceWriterTest.java @@ -89,7 +89,7 @@ void buildWorkflowContext() { ArgumentCaptor>> iterationlevelsCapture = ArgumentCaptor.forClass(ArrayList.class); verify(spiedProtobufProcessInstanceWriter).buildWorkflowContext(nodeInstancesCapture.capture(), exclusiveGroupInstancesCapture.capture(), variablesCapture.capture(), iterationlevelsCapture.capture()); - Collection expected = nodeInstance.getSerializableNodeInstances(); + Collection expected = nodeInstance.getNodeInstances(); List retrieved = nodeInstancesCapture.getValue(); assertThat(retrieved).isNotNull().hasSize(expected.size()).allMatch(expected::contains); }