Package org.jbpm.workflow.core

Examples of org.jbpm.workflow.core.Node


import org.jbpm.workflow.instance.impl.factory.CreateNewNodeFactory;

public class ProcessNodeInstanceFactoryTest extends TestCase {
   
    public void testDefaultEntries() throws Exception {
        Node node = new ActionNode();
        assertEquals( CreateNewNodeFactory.class, NodeInstanceFactoryRegistry.INSTANCE.getProcessNodeInstanceFactory( node ).getClass() );      
    }
View Full Code Here


        MockNodeInstanceFactory factory = new MockNodeInstanceFactory( new MockNodeInstance( mockNode ) );
        NodeInstanceFactoryRegistry.INSTANCE.registermockNode.getClass(), factory );
       
        WorkflowProcessImpl process = new WorkflowProcessImpl();
       
        Node endNode = new EndNode()
        endNode.setId( 1 );
        endNode.setName( "end node" );       
                           
        mockNode.setId( 2 );
        new ConnectionImpl(mockNode, Node.CONNECTION_DEFAULT_TYPE, endNode, Node.CONNECTION_DEFAULT_TYPE);
       
        process.addNode( mockNode );
View Full Code Here

    public Node getNode() {
        return (Node) getElement();
    }
   
    public boolean isFullProperties() {
      Node node = getNode();
      NodeContainer container = node.getNodeContainer();
      while (!(container instanceof RuleFlowProcess)) {
        if (container instanceof Node) {
          container = ((Node) container).getNodeContainer();
        } else {
          return false;
View Full Code Here

    protected void internalSetColor(Integer color) {
        getNode().setMetaData("color", color);
    }

    protected void internalSetConstraint(Rectangle constraint) {
        Node node = getNode();
        node.setMetaData("x", constraint.x);
        node.setMetaData("y", constraint.y);
        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
View Full Code Here

        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
   
    public Rectangle internalGetConstraint() {
        Node node = getNode();
        Integer x = (Integer) node.getMetaData().get("x");
        Integer y = (Integer) node.getMetaData().get("y");
        Integer width = (Integer) node.getMetaData().get("width");
        Integer height = (Integer) node.getMetaData().get("height");
        return new Rectangle(
            x == null ? 0 : x,
            y == null ? 0 : y,
            width == null ? -1 : width,
            height == null ? -1 : height);
View Full Code Here

    public Node getNode() {
        return (Node) getElement();
    }
   
    public boolean isFullProperties() {
      Node node = getNode();
      NodeContainer container = node.getNodeContainer();
      while (!(container instanceof RuleFlowProcess)) {
        if (container instanceof Node) {
          container = ((Node) container).getNodeContainer();
        } else {
          return false;
View Full Code Here

    protected void internalSetColor(Integer color) {
        getNode().setMetaData("color", color);
    }

    protected void internalSetConstraint(Rectangle constraint) {
        Node node = getNode();
        node.setMetaData("x", constraint.x);
        node.setMetaData("y", constraint.y);
        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
View Full Code Here

        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
   
    public Rectangle internalGetConstraint() {
        Node node = getNode();
        Integer x = (Integer) node.getMetaData().get("x");
        Integer y = (Integer) node.getMetaData().get("y");
        Integer width = (Integer) node.getMetaData().get("width");
        Integer height = (Integer) node.getMetaData().get("height");
        return new Rectangle(
            x == null ? 0 : x,
            y == null ? 0 : y,
            width == null ? -1 : width,
            height == null ? -1 : height);
View Full Code Here

    public Node getNode() {
        return (Node) getElement();
    }
   
    public boolean isFullProperties() {
      Node node = getNode();
      NodeContainer container = node.getNodeContainer();
      while (!(container instanceof RuleFlowProcess)) {
        if (container instanceof Node) {
          container = ((Node) container).getNodeContainer();
        } else {
          return false;
View Full Code Here

        getNode().setName(name);
        notifyListeners(CHANGE_NAME);
    }
   
    protected void internalSetConstraint(Rectangle constraint) {
        Node node = getNode();
        node.setMetaData("x", constraint.x);
        node.setMetaData("y", constraint.y);
        node.setMetaData("width", constraint.width);
        node.setMetaData("height", constraint.height);
    }
View Full Code Here

TOP

Related Classes of org.jbpm.workflow.core.Node

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.