This is an automated email from the ASF dual-hosted git repository.

gitgabrio pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git


The following commit(s) were added to refs/heads/main by this push:
     new 7e38588752 [incubator-kie-issues#1497] Defining 
NodeInstanceContainer.getSerializableNodeInstances to be used during 
serialization (#6116)
7e38588752 is described below

commit 7e38588752e27022562b9cf2857047ecc2332eef
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Fri Oct 18 12:38:29 2024 +0200

    [incubator-kie-issues#1497] Defining 
NodeInstanceContainer.getSerializableNodeInstances to be used during 
serialization (#6116)
    
    Co-authored-by: Gabriele-Cardosi <[email protected]>
---
 .../org/kie/api/runtime/process/NodeInstanceContainer.java     | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstanceContainer.java 
b/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstanceContainer.java
index f8a749bc75..c8915cc1e3 100644
--- 
a/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstanceContainer.java
+++ 
b/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstanceContainer.java
@@ -34,6 +34,16 @@ public interface NodeInstanceContainer {
      */
     Collection<NodeInstance> getNodeInstances();
 
+    /**
+     * Returns all node instances that are currently active
+     * within this container and are serializable
+     *
+     * @return the list of serializable node instances currently active
+     */
+    default Collection<NodeInstance> getSerializableNodeInstances() {
+        return getNodeInstances(); // defaulting to getNodeInstances to avoid 
breaking
+    }
+
     /**
      * Returns the node instance with the given id, or <code>null</code>
      * if the node instance cannot be found.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to