Package org.jbpm.ruleflow.core

Examples of org.jbpm.ruleflow.core.RuleFlowProcessFactory


import org.jbpm.ruleflow.core.RuleFlowProcessFactory;

public class ProcessFactoryTest extends JbpmTestCase {
 
  public void testProcessFactory() {
    RuleFlowProcessFactory factory = RuleFlowProcessFactory.createProcess("org.drools.process");
    factory
      // header
      .name("My process").packageName("org.drools")
      // nodes
      .startNode(1).name("Start").done()
      .actionNode(2).name("Action")
        .action("java", "System.out.println(\"Action\");").done()
      .endNode(3).name("End").done()
      // connections
      .connection(1, 2)
      .connection(2, 3);
    factory.validate().getProcess();
  }
View Full Code Here

TOP

Related Classes of org.jbpm.ruleflow.core.RuleFlowProcessFactory

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.