简体   繁体   English

.NET中的用户任务-工作流管理

[英]User Task-Workflow Manaegement in .NET

Need to implement a workflow system in .NET for user task management, where tasks can be assigned in serial or paraller oder to different users. 需要在.NET中实现用于用户任务管理的工作流系统,在该系统中,可以以串行或并行方式将任务分配给不同的用户。 Need a reference to design approach that can be used. 需要参考可以使用的设计方法。 thanks in advance 提前致谢

We used the following approach: 我们使用以下方法:

  1. The client-server architecture (WinForms + MSSQL) 客户端-服务器体系结构(WinForms + MSSQL)
  2. Built-in process editor ( Rehosting the Workflow Designer ) for process templates 内置的流程编辑器(重新托管工作流设计器 )用于流程模板
  3. Start templates for execution with the ability to call other templates assigned to other users 启动执行模板,并能够调用分配给其他用户的其他模板
  4. Working with tasks constructed similarly as work with other documents (internal business-objects) 处理与其他文档(内部业务对象)相似的任务

Sample template table: 样本模板表:

CREATE TABLE [dbo].[WorkFlowTemplate] (
[IDWorkFlowTemplate] INT              NOT NULL, -- UniqueID
[IDDepart]           INT              NULL,     -- Reference to user depart
[Name]               VARCHAR (MAX)    NULL,     -- Name of template
[Data]               VARCHAR (MAX)    NULL,     -- Body (xml data)
[deleted]            DATETIME         NULL,
[GUID]               UNIQUEIDENTIFIER NULL,
[IsValid]            BIT              NULL,     -- Flag no errors 
[IsInvokable]        BIT              NULL,     -- Flag this process must be invocable from other template
[ValidationErrors]   VARCHAR (256)    NULL,     -- Info for errors in template
[IsExecuting]        BIT              NULL,     -- Flag this template allow running
[Description]        VARCHAR (MAX)    NULL,
[GroupName]          VARCHAR (256)    NULL,
[Image]              VARBINARY (MAX)  NULL,     -- Pictures for template 
[AutoStart]          BIT              NULL      -- Flag: running on start client

task table: 任务表:

CREATE TABLE [dbo].[WorkFlowInstance] (
[IDWorkFlowInstance]       INT           NOT NULL, -- UniqueId
[IDWorkFlowTemplate]       INT           NOT NULL, -- ref to template table
[Data]                     VARCHAR (MAX) NULL, -- Incoming parameters (xml)
[StartDate]                DATETIME      NULL, -- Start running datetime
[EndDate]                  DATETIME      NULL, -- End running datetime
[Status]                   INT           NULL, -- Status (0 = Created, 1 = Executing, 2 = Complited)
[CreateDate]               DATETIME      NULL, -- Created datetime
[deleted]                  DATETIME      NULL,
[IDDepartFrom]             INT           NULL, -- Source depart 
[IDDepartTo]               INT           NULL, -- Destination depart
[IDUserFrom]               INT           NULL, -- Source user 
[IDUserTo]                 INT           NULL, -- Destination user
[IDParentWorkFlowInstance] INT           NULL, -- Parent task 
[Comment]                  VARCHAR (MAX) NULL, -- Other comments...
[Color]                    INT           NULL,
[Comment1]                 VARCHAR (256) NULL,
[Comment2]                 VARCHAR (256) NULL,

Sample interface 样例界面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM