.net WikeFlow工做流

给你们介绍一款.net 流程引擎 WikeFlow.node

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

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

WikeFlow官网:www.wikesoft.cn.net

WikeFlow演示地址:workflow.wikesoft.com设计

 

流程设计器code

 

 

实际运用对象


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

 

 

 

 

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.FlowInstanceServiceget

  • 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) 获得运行中的流程图

 

 

发起流程workflow

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

 

处理流程

 

_flowInstanceService.Complete("节点ID", "处理人用户ID", "处理人用户", "处理意见", "条件");
相关文章
相关标签/搜索