《用Exchange2000实现企业工作流应用ppt课件》由会员分享,可在线阅读,更多相关《用Exchange2000实现企业工作流应用ppt课件(29页珍藏版)》请在金锄头文库上搜索。
1、用用Exchange 2000实现实现企业任务流运用企业任务流运用议程议程l l任务流概述任务流概述l lExchange 2000 任务流组件任务流组件l l建立任务流运用建立任务流运用l lExchange Workflow 与与 .NET不同种类的任务流不同种类的任务流l l无顺序无顺序, 无构造的流程无构造的流程l lOne-off document review, 投票投票l l基于团队事务的自动化流程基于团队事务的自动化流程l l事件跟踪事件跟踪, 文档审批文档审批l l企业中心业务流程企业中心业务流程l lClaims processing, Loan applicationsl
2、 l跨企业间的商务流程跨企业间的商务流程l l电子商务电子商务, 供应链供应链Exchange 2000的偏重点的偏重点l l面向面向实现团对自自动化流程化流程 (team process automation)l lApproval, Review, Routing, Tracking l l面向面向简化任化任务流运用的开流运用的开发l l面向面向Visual Basic Scripting Edition开开发人人员l l面向同最前端运用程序相面向同最前端运用程序相结合合 l lFile.Save or Postl l充分利用充分利用Exchange 2000提供的提供的协作平台作平台及及
3、资源源Web访问及访问及Office功能的集成功能的集成l lURL 访问访问l lFolder trees, folders, messages, attachmentsl lWebForms - ASPs are executable from foldersl lOffice 2000/XP 功能集成功能集成l lFile|Save As and Explorer support through Win32 and Web Foldersl lOffice document property promotionAPI 支持支持l lOLE/DB 及及 ADOl l协作数据对象协作数据对象
4、 (CDO)l lMessaging, calendaring, contact, Exchange management, workflow, document mgmt, voice messagingl lAccess to public and mailbox storesl lExtends ADO and OLE DBl lIntegrated Internet standardsl l开发工具及以有知识积累对开发人员的协助开发工具及以有知识积累对开发人员的协助客户化客户化/自定义自定义 业务逻辑业务逻辑l lStore Eventsl lAsynchronous(异步事件异步事件
5、)l lOnSave, OnDeletel lOnTimerl lSynchronous(同步事件同步事件)l lOnSyncSave, OnSyncDeletel lWorkflow processingl lBuilt on store eventsExchange 2000 任务流组件任务流组件构成任务流运用的几大元素构成任务流运用的几大元素l l流程定义流程定义流程定义流程定义 (workflow process definition) (workflow process definition)l l任务流引擎任务流引擎任务流引擎任务流引擎 (Workflow engine) (Wor
6、kflow engine)l l任务流事件接纳器任务流事件接纳器任务流事件接纳器任务流事件接纳器 (Workflow event sink) (Workflow event sink)l lAPI - CDO workflow object (CDOWF.dll)API - CDO workflow object (CDOWF.dll)l l图形化定义工具图形化定义工具图形化定义工具图形化定义工具 (Workflow Designer) (Workflow Designer)流程定义流程定义l l“ “翻翻翻翻译译译译业务业务业务业务流程流程流程流程l l定定定定义义义义一系列的形状一系列的形
7、状一系列的形状一系列的形状(states)(states),及形状,及形状,及形状,及形状间间间间的的的的变变变变化化化化(transition)(transition)l l定定定定义义义义同条件同条件同条件同条件(condition)(condition)及及及及动动动动作作作作(action)(action)相关的脚相关的脚相关的脚相关的脚本本本本l l定定定定义义义义任任任任务务务务流事件模型流事件模型流事件模型流事件模型l lDeclarative workflow definitionDeclarative workflow definitionl lStored as prope
8、rties on an itemStored as properties on an iteml l工具的支持工具的支持工具的支持工具的支持流程定义流程定义l l流程定义所包含的元素流程定义所包含的元素l lAction Table (state machine table)l lCommonScriptURL l lMode (security)l lAuditTrailProviderl l经过规范的经过规范的XML来描画流程定义来描画流程定义任务流形状表任务流形状表 (action table)l l一张描画形状变化的表格一张描画形状变化的表格一张描画形状变化的表格一张描画形状变化的表格
9、l l条件和动作经过条件和动作经过条件和动作经过条件和动作经过VB ScriptsVB Scripts来表述来表述来表述来表述 l lWF Engine WF Engine 判别条件判别条件判别条件判别条件l lWF Engine WF Engine 执行动作执行动作执行动作执行动作NameNameSubmitSubmitRejectRejectEventTypeEventTypeOnCreateOnCreateOnChangeOnChangeCurrent Current StateState- PendingPendingConditionConditionIsValid(Session.
10、Item)IsValid(Session.Item)Session.Item.Approved = FalseSession.Item.Approved = FalseActionActionscript (notifyApprover)script (notifyApprover)script (notifySubmitter)script (notifySubmitter)New StateNew StatePendingPendingPendingPendingApproveApproveOnChangeOnChangePendingPendingSession.IteSession.I
11、tem.Approved = Truem.Approved = Truescript (notify & cleanup)script (notify & cleanup)ApprovedApprovedSubmitSubmitApproveApprovePendingPendingApprovedApprovedRejectReject任务流所运用的事件任务流所运用的事件OnCreateOnCreate当文档被创建之时当文档被创建之时当文档被创建之时当文档被创建之时OnDeleteOnDelete当文档被删除之时当文档被删除之时当文档被删除之时当文档被删除之时OnChangeOnChange
12、当文档被修改之时当文档被修改之时当文档被修改之时当文档被修改之时OnEnter / OnExitOnEnter / OnExit进入新状态进入新状态进入新状态进入新状态 / / 离开久状态之时离开久状态之时离开久状态之时离开久状态之时OnExpiryOnExpiry文档在当前状态下过期之时文档在当前状态下过期之时文档在当前状态下过期之时文档在当前状态下过期之时OnReceiveOnReceive当文档所在目录收到邮件之时当文档所在目录收到邮件之时当文档所在目录收到邮件之时当文档所在目录收到邮件之时任务流引擎任务流引擎l l对对Exchange存储在任务流方面进展扩展存储在任务流方面进展扩展l
13、lCOM 对象对象l l效力器端触发效力器端触发 / 客户端独立客户端独立l l针对针对folder添加任务流运用添加任务流运用l l为触发任务流的文档提供形状表为触发任务流的文档提供形状表 (action table)l l判别条件判别条件l l执行动作执行动作任务流事件接纳器任务流事件接纳器l l接纳接纳folder中文档变化的事件中文档变化的事件l l运用同步事件:运用同步事件:l lOnSyncSavel lOnSyncDeletel lOnTimer l l检验用户平安身份检验用户平安身份l l调用任务流引擎调用任务流引擎运转时构造运转时构造Event Sink Host Proce
14、ssEvent Sink Host ProcessStore ProcessStore ProcessProc DefProc DefOnSyncSaveOnSyncSaveEvaluate Action TableEvaluate Action TableRun ScriptRun ScriptChanges to DocChanges to DocWrite new State valueWrite new State valueCommit TransactionCommit TransactionProcessProcessInstanceInstanceScriptScriptAct
15、ionActionTableTableScriptScriptHostHostWorkflowWorkflowEngineEngineWorkflowWorkflowEvent SinkEvent SinkChange to DocChange to Doc任务流平安任务流平安l l对开发人员进展限制的需求对开发人员进展限制的需求l l支持两种平安模型支持两种平安模型l l特权方式特权方式 (Privileged Mode)l l限制方式限制方式 (Restricted Mode)l l经过经过Workflow Event Sink在在COM+中的脚中的脚色来执行色来执行l l任务流运转时帐号
16、任务流运转时帐号任务流平安任务流平安l l限制方式限制方式l lActions are VBScript onlyl lScript engine “sandboxed,no CreateObject()l lOnly use WorkflowSession objectl l限制方式下可完成的任限制方式下可完成的任务l lModify properties on triggering iteml lSend mail (WorkflowMessage)l lSet item-level ACL on triggering iteml lWrite to AuditTrailWorkflow
17、Securityl lPrivileged Model lFree use of CreateObject()l lNow actions can be script or COM objectsl lActions execute under privileged NT account (in Exchange Servers group)l lWhat can Privileged Mode do?l lAnything任务流及脚本任务流及脚本l lCDO WorkflowSession 内建对象内建对象l l由任务流引擎自动创建由任务流引擎自动创建l l提供一系列数据访问的简一方法提供一
18、系列数据访问的简一方法 (AD and Fields collection)l l提供对运转时相关数据的访问方法提供对运转时相关数据的访问方法l l发送邮件及对呼应的处置发送邮件及对呼应的处置l l设置单文档及的设置单文档及的ACLl l提供对提供对audit logging的操作访问的操作访问WorkflowSession对象模型对象模型WorkflowSessionWorkflowSession.StateTo.StateTo.StateFrom.StateFrom.Sender.Sender.ErrorNumber.ErrorNumber.ErrorDescription.ErrorDe
19、scription.ActiveConnection.ActiveConnection.Domain.Domain.Server.Server.TrackingTable.TrackingTable.ReceivedMessage.ReceivedMessage.AddAuditEntry().AddAuditEntry().GetNewWorkflowMessage().GetNewWorkflowMessage().DeleteWorkflowItem().DeleteWorkflowItem().DeleteReceivedMessage().DeleteReceivedMessage(
20、).IsUserInRole().IsUserInRole().GetUserProperty().GetUserProperty()PropertiesPropertiesGetGetPutPutItemReaders, ItemAuthorsItemReaders, ItemAuthorsFieldsFieldsAddAddDeleteDeleteClearClearCountCountSame as ADO RecordSame as ADO RecordExchange 任务流设计器任务流设计器Workflow Designerl l图形化任务流及脚本编辑器图形化任务流及脚本编辑器l
21、l面向面向 VBScript 开发人员开发人员l l同同Microsoft Office / XP Developer一同发一同发行行l l免费获得免费获得httpexchange.microsoft/exchange Demo: 步骤步骤1.1.创建创建schema及对象的属性及对象的属性2.2.运用运用WFD建立任务流模型建立任务流模型3.3.为相应的动作为相应的动作(action)添加脚本添加脚本4.4.在当前目录实现任务流及在当前目录实现任务流及UIWorkflow and .NETExchange Architecture With .NETCalling a Web Service
22、l l.NET clientl lEasy with VS.NETl lAny COM enabled applicationl lSOAP Toolkit 2.0+l lmsdn.microsoft/soapl l callsl lGET and POST运用运用Workflow Designer创建任建任务流运用流运用资源资源l lmsdn.microsoft msdn.microsoft l lTechnical Articles / Database and Messaging Services /Technical Articles / Database and Messaging
23、Services /Web Storage System / Microsoft Exchange Server Web Storage System / Microsoft Exchange Server l l“Troubleshooting and Debugging Workflow Designer“Troubleshooting and Debugging Workflow Designerl l“Workflow Designer for Exchange: Automating Workflow on Exchange “Workflow Designer for Exchan
24、ge: Automating Workflow on Exchange FoldersFoldersl l“Sending S/MIME messages using CDOSYS and CAPICOM“Sending S/MIME messages using CDOSYS and CAPICOMl lPeriodicals / Periodicals 2000 / MSDN Magazine / July Periodicals / Periodicals 2000 / MSDN Magazine / July l l“Exchange 2000: Web Storage System,
25、 Workflow Tools and CDO “Exchange 2000: Web Storage System, Workflow Tools and CDO Turbocharge Collaboration AppsTurbocharge Collaboration Appsl lExchange SDK Exchange SDK l lmsdn.microsoft/downloads under Messaging and Collaboration / msdn.microsoft/downloads under Messaging and Collaboration / Mic
26、rosoft Exchange Server Microsoft Exchange Server l lBuilding Solutions on the Exchange Store / Building Solutions on the Exchange Store / Building Applications That Manage WorkflowBuilding Applications That Manage Workflowl lConfiguration scripts under Developer Resources / Workflow Configuration sc
27、ripts under Developer Resources / Workflow Configuration ScriptsConfiguration Scriptsl lConfiguring Exchange 2000 for WorkflowConfiguring Exchange 2000 for Workflowl lSee “Troubleshooting and Debugging Workflow DesignerSee “Troubleshooting and Debugging Workflow Designer technical article on MSDNtechnical article on MSDNThank you!Questions?