Skip to content

Commit

Permalink
[incubator-kie-issues#1497] Defining NodeInstanceContainer.getSeriali…
Browse files Browse the repository at this point in the history
…zableNodeInstances to be used during serialization (apache#6116)

Co-authored-by: Gabriele-Cardosi <[email protected]>
  • Loading branch information
gitgabrio and Gabriele-Cardosi authored Oct 18, 2024
1 parent f1307e1 commit 7e38588
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7e38588

Please sign in to comment.