Lightweight process engine MyFlowEngine 1.0.0 released

MyFlowEngine is a self-study process engine, very lightweight, for Internet companies to build.

It supports the following types

  • Event: Launch event, the end of the event
  • Gateway: Gateway parallel, exclusive gateway, the gateway inclusive
  • Sequential flow: conditional sequence flow, flow sequence unconditional
  • Task: ServiceTask task

Instructions

1) constructed by a singleton spring MyEngine

2) the resolution process

    // 解析
    Resource resource = null;

    resource = new DefaultResourceLoader().getResource("engine.xml");

    ProcessDefinition processDefinition = engine.parse(resource);

3) generating a deployment process instance

        ProcessInstance processInstance = engine.deploy(processDefinition);

4) running instance

        engine.run(processInstance);

ALL

1) can further reduce the memory overhead on memory usage

Guess you like

Origin www.oschina.net/news/107168/myflowengine-1-0-0-released