Package org.kie.api.runtime.process

# Interface NodeInstanceContainer

All Known Subinterfaces:
  `WorkflowProcessInstance`

public interface NodeInstanceContainer
A node instance container is a container that can contain (zero or more) node instances.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `NodeInstance`
  `getNodeInstance(long nodeInstanceId)`
  Returns the node instance with the given id, or `null` if the node instance cannot be found.
  `Collection<NodeInstance>`
  `getNodeInstances()`
  Returns all node instances that are currently active within this container.
  `default Collection<NodeInstance>`
  `getSerializableNodeInstances()`
  Returns all node instances that are currently active within this container and are serializable

- ## Method Details

  - ### getNodeInstances

    Collection<NodeInstance> getNodeInstances()
    Returns all node instances that are currently active within this container.
    Returns:
      the list of node instances currently active

  - ### getSerializableNodeInstances

    default Collection<NodeInstance> getSerializableNodeInstances()
    Returns all node instances that are currently active within this container and are serializable
    Returns:
      the list of serializable node instances currently active

  - ### getNodeInstance

    NodeInstance getNodeInstance(long nodeInstanceId)
    Returns the node instance with the given id, or `null` if the node instance cannot be found.
    Parameters:
      `nodeInstanceId` -
    Returns:
      the node instance with the given id