快速业务通道

asp.net中的报销多级审批工作流项目加上跟踪服务

作者 佚名技术 来源 NET编程 浏览 发布时间 2012-05-20
1 9:10:43, Status: Created Date: 2009-3-1 9:10:43, Status: Started Date: 2009-3-1 9:10:57, Status: Unloaded Date: 2009-3-1 9:10:57, Status: Persisted Date: 2009-3-1 9:13:40, Status: Loaded Date: 2009-3-1 9:13:40, Status: Idle Date: 2009-3-1 9:13:40, Status: Unloaded Date: 2009-3-1 9:13:40, Status: Persisted Date: 2009-3-1 10:31:43, Status: Loaded Date: 2009-3-1 10:31:43, Status: Unloaded Date: 2009-3-1 10:31:43, Status: Persisted Date: 2009-3-1 10:31:45, Status: Loaded Date: 2009-3-1 10:31:45, Status: Idle Date: 2009-3-1 10:31:45, Status: Unloaded Date: 2009-3-1 10:31:45, Status: Persisted Activity Events Activity: Workflow1 Date: 2009-3-1 9:10:43 Status: Executing Activity: whileActivity1 Date: 2009-3-1 9:13:40 Status: Executing Activity: sequenceActivity1 Date: 2009-3-1 9:13:40 Status: Executing Activity: listenActivity1 Date: 2009-3-1 9:13:40 Status: Executing Activity: eventDrivenActivity1 Date: 2009-3-1 9:13:40 Status: Executing Activity: OnStaffSubmit Date: 2009-3-1 9:13:40 Status: Executing Activity: OnStaffSubmit Date: 2009-3-1 9:13:40 Status: Closed Activity: eventDrivenActivity1 Date: 2009-3-1 9:13:40 Status: Closed Activity: listenActivity1 Date: 2009-3-1 9:13:40 Status: Closed Activity: sequenceActivity1 Date: 2009-3-1 9:13:40 Status: Closed Activity: sequenceActivity1 Date: 2009-3-1 9:13:40 Status: Executing Activity: listenActivity1 Date: 2009-3-1 9:13:40 Status: Executing Activity: eventDrivenActivity3 Date: 2009-3-1 10:31:43 Status: Executing Activity: OnPMSubmitMin Date: 2009-3-1 10:31:45 Status: Executing Activity: OnPMSubmitMin Date: 2009-3-1 10:31:45 Status: Closed Activity: eventDrivenActivity3 Date: 2009-3-1 10:31:45 Status: Closed Activity: listenActivity1 Date: 2009-3-1 10:31:45 Status: Closed Activity: sequenceActivity1 Date: 2009-3-1 10:31:45 Status: Closed Activity: sequenceActivity1 Date: 2009-3-1 10:31:45 Status: Executing Activity: listenActivity1 Date: 2009-3-1 10:31:45 Status: Executing

注意:跟踪服务是和数据库打交道的,我们需要清楚它的系统开销,这里为了简单我们创建一个控制 台的工作流,工作流中拉入一个codeActivity,执行代码为:

 private void codeActivity1_ExecuteCode(object sender, EventArgs e)

        {

            Console.WriteLine("codeActivity1执行了!");

           

        }

客户端程序代码为:

//数据库连接串

        private static String strConn = "";

        static void Main(string[] args)

        {

            WorkflowRuntimeSection config;

            config = ConfigurationManager.GetSection("WorkflowWithTracking") as 

WorkflowRuntimeSection;

            //数据库连接串

            strConn = config.CommonParameters["ConnectionString"].Value;

            using (WorkflowRuntime workflowRuntime = new WorkflowRuntime

("WorkflowWithTracking"))

            {

 

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号