.net 工作流引擎 WikeFlow

来源:互联网 发布:淘宝充流量 编辑:程序博客网 时间:2024/06/03 20:05

给大家介绍一款.net 流程引擎 WikeFlow.

微软官方的WorkFlow入门要求比较高,所以我们萌生了开发一个简单的工作流引擎,帮助.Net coder们解决软件项目中流程的处理。实现写最少的代码,实现最炫酷的功能。

WikeFlow支持流程动态跳转。。。

WikeFlow官网:www.wikesoft.cn

WikeFlow演示地址:workflow.wikesoft.com


流程设计器


实际运用




WikeFlow工作流引擎只有两个核心类,FlowDesignService(流程设计),FlowInstanceService(流程实例)


    1.FlowDesignService

  • string AddFlowDef(FlowDefModel flowDef); 添加流程定义
  • FlowMessage UpdateFlowDef(FlowDefModel model); 修改流程定义
  • FlowMessage DeleteFlowDef(IList ids) 删除流程定义
  • FlowDefModel GetFlowDef(string id); 得到流程定义对象
  • FlowMessage SaveDiagram(FlowModel flowDef); 保存流程设置
  • Bitmap GetBitmap(string flowDefId); 返回流程图
  • PagedResult GetList(FlowDefFilter filter); 分页查询流程定义

    2.FlowInstanceService

  • InstanceMessage CreateInstance(string flowDefKey,string userId, string userName,string condition) 创建实例
  • InstanceMessage Complete(string nodeRecordId,string userId,string userName,string userMsg,string condition)处理流程
  • FlowInstance GetRunFlowInstance(string flowId); 得到当前运行的实例
  • List GetHistoryFlowInstances(string flowId); 得到历史流程处理记录列表
  • Bitmap GetRunBitmap(string flowId) 得到运行中的流程图

发起流程

 InstanceMessage flowInstance = _flowInstanceService.CreateInstance("flow_holiday", "创建人用户ID", "管理员", "条件");

处理流程

_flowInstanceService.Complete("节点ID", "处理人用户ID", "处理人用户", "处理意见", "条件");



0 0
原创粉丝点击