Class NodeImpl

java.lang.Object
org.jbpm.workflow.core.impl.NodeImpl
All Implemented Interfaces:
Serializable, Mappable, Contextable, ContextResolver, Node, org.kie.api.definition.process.Node, org.kie.api.definition.process.WorkflowElement, KogitoNode
Direct Known Subclasses:
CompositeNode.CompositeNodeEnd, CompositeNode.CompositeNodeStart, ExtendedNodeImpl, Join, Split

public abstract class NodeImpl extends Object implements Node, ContextResolver, Mappable
Default implementation of a node.
See Also:
  • Field Details

  • Constructor Details

    • NodeImpl

      public NodeImpl()
  • Method Details

    • setMultiInstanceSpecification

      public void setMultiInstanceSpecification(MultiInstanceSpecification multiInstanceSpecification)
    • getMultiInstanceSpecification

      public MultiInstanceSpecification getMultiInstanceSpecification()
    • setIoSpecification

      public void setIoSpecification(IOSpecification ioSpecification)
    • getIoSpecification

      public IOSpecification getIoSpecification()
    • getInMappings

      public Map<String,String> getInMappings()
      Specified by:
      getInMappings in interface Mappable
    • getOutMappings

      public Map<String,String> getOutMappings()
      Specified by:
      getOutMappings in interface Mappable
    • getInMapping

      public String getInMapping(String key)
      Specified by:
      getInMapping in interface Mappable
    • getOutMapping

      public String getOutMapping(String key)
      Specified by:
      getOutMapping in interface Mappable
    • addInMapping

      public void addInMapping(String from, String to)
      Specified by:
      addInMapping in interface Mappable
    • addOutMapping

      public void addOutMapping(String from, String to)
      Specified by:
      addOutMapping in interface Mappable
    • addInAssociation

      public void addInAssociation(DataAssociation dataAssociation)
      Specified by:
      addInAssociation in interface Mappable
    • getInAssociations

      public List<DataAssociation> getInAssociations()
      Specified by:
      getInAssociations in interface Mappable
    • addOutAssociation

      public void addOutAssociation(DataAssociation dataAssociation)
      Specified by:
      addOutAssociation in interface Mappable
    • getProcess

      public WorkflowProcess getProcess()
    • getOutAssociations

      public List<DataAssociation> getOutAssociations()
      Specified by:
      getOutAssociations in interface Mappable
    • getId

      public org.kie.api.definition.process.WorkflowElementIdentifier getId()
      Specified by:
      getId in interface org.kie.api.definition.process.WorkflowElement
    • setId

      public void setId(org.kie.api.definition.process.WorkflowElementIdentifier id)
      Description copied from interface: Node
      Method for setting the id of the node
      Specified by:
      setId in interface Node
      Parameters:
      id - the id of the node
    • getName

      public String getName()
      Specified by:
      getName in interface org.kie.api.definition.process.Node
    • setName

      public void setName(String name)
      Description copied from interface: Node
      Method for setting the name of the node
      Specified by:
      setName in interface Node
      Parameters:
      name - the name of the node
    • getIncomingConnections

      public Map<String,List<org.kie.api.definition.process.Connection>> getIncomingConnections()
      Specified by:
      getIncomingConnections in interface org.kie.api.definition.process.Node
    • getOutgoingConnections

      public Map<String,List<org.kie.api.definition.process.Connection>> getOutgoingConnections()
      Specified by:
      getOutgoingConnections in interface org.kie.api.definition.process.Node
    • addIncomingConnection

      public void addIncomingConnection(String type, org.kie.api.definition.process.Connection connection)
      Specified by:
      addIncomingConnection in interface Node
    • validateAddIncomingConnection

      public void validateAddIncomingConnection(String type, org.kie.api.definition.process.Connection connection)
    • getIncomingConnections

      public List<org.kie.api.definition.process.Connection> getIncomingConnections(String type)
      Specified by:
      getIncomingConnections in interface org.kie.api.definition.process.Node
    • addOutgoingConnection

      public void addOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
      Specified by:
      addOutgoingConnection in interface Node
    • validateAddOutgoingConnection

      public void validateAddOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
    • getOutgoingConnections

      public List<org.kie.api.definition.process.Connection> getOutgoingConnections(String type)
      Specified by:
      getOutgoingConnections in interface org.kie.api.definition.process.Node
    • removeIncomingConnection

      public void removeIncomingConnection(String type, org.kie.api.definition.process.Connection connection)
      Specified by:
      removeIncomingConnection in interface Node
    • clearIncomingConnection

      public void clearIncomingConnection()
    • clearOutgoingConnection

      public void clearOutgoingConnection()
    • validateRemoveIncomingConnection

      public void validateRemoveIncomingConnection(String type, org.kie.api.definition.process.Connection connection)
    • removeOutgoingConnection

      public void removeOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
      Specified by:
      removeOutgoingConnection in interface Node
    • validateRemoveOutgoingConnection

      public void validateRemoveOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
    • getFrom

      public org.kie.api.definition.process.Connection getFrom()
      Helper method for nodes that have at most one default incoming connection
    • getTo

      public org.kie.api.definition.process.Connection getTo()
      Helper method for nodes that have at most one default outgoing connection
    • getDefaultIncomingConnections

      public List<org.kie.api.definition.process.Connection> getDefaultIncomingConnections()
      Helper method for nodes that have multiple default incoming connections
    • getDefaultOutgoingConnections

      public List<org.kie.api.definition.process.Connection> getDefaultOutgoingConnections()
      Helper method for nodes that have multiple default outgoing connections
    • getParentContainer

      public org.kie.api.definition.process.NodeContainer getParentContainer()
      Specified by:
      getParentContainer in interface KogitoNode
    • setParentContainer

      public void setParentContainer(org.kie.api.definition.process.NodeContainer nodeContainer)
      Specified by:
      setParentContainer in interface Node
    • setContext

      public void setContext(String contextId, Context context)
      Specified by:
      setContext in interface Contextable
    • getContext

      public Context getContext(String contextId)
      Specified by:
      getContext in interface Contextable
    • resolveContext

      public Context resolveContext(String contextId, Object param)
      Specified by:
      resolveContext in interface ContextResolver
    • setMetaData

      public void setMetaData(String name, Object value)
      Specified by:
      setMetaData in interface Node
    • getMetaData

      public Object getMetaData(String name)
    • getMetaData

      public Map<String,Object> getMetaData()
      Specified by:
      getMetaData in interface org.kie.api.definition.process.Node
    • setMetaData

      public void setMetaData(Map<String,Object> metaData)
    • getConstraints

      public Collection<Constraint> getConstraints(org.kie.api.definition.process.Connection connection)
    • getConstraint

      public Constraint getConstraint(org.kie.api.definition.process.Connection connection)
    • internalGetConstraint

      public Constraint internalGetConstraint(ConnectionRef ref)
    • setConstraint

      public void setConstraint(org.kie.api.definition.process.Connection connection, Constraint constraint)
    • addConstraint

      public void addConstraint(ConnectionRef connectionRef, Constraint constraint)
    • getConstraints

      public Map<ConnectionRef,Collection<Constraint>> getConstraints()
    • getNodeContainer

      public org.kie.api.definition.process.NodeContainer getNodeContainer()
      Specified by:
      getNodeContainer in interface org.kie.api.definition.process.Node