`
lstcyzj
  • 浏览: 625 次
  • 性别: Icon_minigender_1
  • 来自: 成都
最近访客 更多访客>>
社区版块
存档分类
最新评论

.net 工作流程设计

阅读更多

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

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

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", "处理人用户", "处理意见", "条件");

 

 

 

 

  • 大小: 33.7 KB
  • 大小: 36.9 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics