谁可以说说流程代码的编写,在则我不胜感谢

解决方案 »

  1.   

    用beanshell解释器,它具有以下的一些特点:使用Java反射API以提供Java语句和表达式的实时解释执行;可以透明地访问任何Java对象和API;可以在命令行模式、控制台模式、小程序模式和远程线程服务器模式等四种模式下面运行;
    举个例子,比如一个流程A节点的下一个节点是B或者C,如何决定A->B还是A->C呢,我们可以写一段Java脚本放在流程定义里面,一旦A运行完毕,流程会使用BeanShell来Parse这段Java脚本,根据脚本的返回值决定流程下一步的运行方向.
    调用文件:import bsh.Interpreter;
    public class TestShell
    {public static void main(String[] args) throws Exception
    {
    Interpreter inter = new Interpreter();
    inter.set("inValue",new Integer(1));
    inter.source("/D:/tomgether/test/shell/test.bsh"); 
        
    System.out.println(((Integer)inter.get("outValue")).intValue());}
    }Shell文件:System.out.println("hello,in value is "+inValue);
    outValue = inValue+1;
      

  2.   

    现在网上有很多使用JBPM的流程框架的例子,可以去找一下~~
      

  3.   

    http://dev.rdxx.com/Java/Applets/2001-11/17/082823916.shtml
    到这看看简单的列子
      

  4.   

    流程代码?
    基于java-applet的简单流程图绘制小工具的制作?允许我汗一个先,