2. Tutorial - lishuluo/simpleprocess GitHub Wiki

  1. SimpleProcess Framework Tutorial
  1. Overview

This document covers the basics of running SimpleProcess using an example.

  1. Requirements
  1. To follow along with this tutorial, you will need…

Java 1.6 or greater. Some places you can get it are from Oracle, Open JDK, or IBM.
Running java -version at the command line should indicate a version number starting with 1.6.

  1. Getting Started
  • write a pojo class
    package simple.process.test;
    public class SayHello{
       public boolean validate(){
       return true;
       }
       public void execute(){
          System.out.println("Hello World!");
       }
    }
    • config the process:
      <processes>
        <process id="sayHelloInvoker">
           <node id="sayHello" class="simple.process.test.SayHello"/>
        </process>
      </processes>
    • invoke the process:
      ……
  • ⚠️ **GitHub.com Fallback** ⚠️