资源预览内容
第1页 / 共29页
第2页 / 共29页
第3页 / 共29页
第4页 / 共29页
第5页 / 共29页
第6页 / 共29页
第7页 / 共29页
第8页 / 共29页
第9页 / 共29页
第10页 / 共29页
亲,该文档总共29页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
用用Exchange实现实现企企业业工作工作流流应应用用议程程l l工作流概述工作流概述l lExchange 2000 工作流工作流组件件l l建立工作流建立工作流应用用l lExchange Workflow 与与 .NET不同种不同种类的工作流的工作流l l无无顺序序, 无无结构的流程构的流程One-off document review, One-off document review, 投票投票投票投票l l基于基于团队事事务的自的自动化流程化流程事件跟踪事件跟踪事件跟踪事件跟踪, , 文档文档文档文档审审批批批批l l企企业核心核心业务流程流程Claims processing, Loan applicationsClaims processing, Loan applicationsl l跨企跨企业间的商的商务流程流程电电子商子商子商子商务务, , 供供供供应链应链Exchange 2000的的侧重点重点l l面向面向实现团对自自动化流程化流程 (team process automation)Approval, Review, Routing, Tracking Approval, Review, Routing, Tracking l l面向面向简化工作流化工作流应用的开用的开发面向面向面向面向Visual BasicVisual Basic Scripting Edition Scripting Edition开开开开发发人人人人员员l l面向同最前端面向同最前端应用程序相用程序相结合合 File.Save or PostFile.Save or Postl l充分利用充分利用Exchange 2000提供的提供的协作平台作平台及及资源源Web访问及及Office功能的集成功能的集成l lURL 访问Folder trees, folders, Folder trees, folders, messages, attachmentsmessages, attachmentsWebForms - ASPs are executable from WebForms - ASPs are executable from foldersfoldersl lOffice 2000/XP 功能集成功能集成File|Save As and Explorer support File|Save As and Explorer support through Win32through Win32 and Web Folders and Web FoldersOffice document property promotionOffice document property promotionAPI 支持支持l lOLE/DB 及及 ADOl l协作数据作数据对象象 (CDO)Messaging, calendaring, contact, Messaging, calendaring, contact, Exchange management, workflow, Exchange management, workflow, document mgmt, voice messagingdocument mgmt, voice messagingAccess to public and mailbox storesAccess to public and mailbox storesExtends ADO and OLE DBExtends ADO and OLE DBIntegrated Internet standardsIntegrated Internet standardsl l开开发工具及以有知工具及以有知识积累累对开开发人人员的帮助的帮助客客户化化/自定自定义 业务逻辑l lStore EventsAsynchronous(Asynchronous(异步事件异步事件异步事件异步事件) ) OnSave, OnDeleteOnSave, OnDelete OnTimerOnTimerSynchronous(Synchronous(同步事件同步事件同步事件同步事件) ) OnSyncSave, OnSyncDeleteOnSyncSave, OnSyncDeletel lWorkflow processingBuilt on store eventsBuilt on store eventsExchange 2000 工作流工作流组件件构成工作流构成工作流应用的几大元素用的几大元素l l流程定流程定流程定流程定义义 (workflow process definition)(workflow process definition)l l工作流引擎工作流引擎工作流引擎工作流引擎 (Workflow engine)(Workflow 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定定定定义义一系列的状一系列的状一系列的状一系列的状态态(states)(states),及状,及状,及状,及状态间态间的的的的变变迁迁迁迁(transition)(transition)l l定定定定义义同条件同条件同条件同条件(condition)(condition)及及及及动动作作作作(action)(action)相关的脚相关的脚相关的脚相关的脚本本本本l l定定定定义义工作流事件模型工作流事件模型工作流事件模型工作流事件模型l lDeclarative workflow definitionDeclarative workflow definitionStored as properties on an itemStored as properties on an iteml l工具的支持工具的支持工具的支持工具的支持流程定流程定义l l流程定流程定义所包含的元素所包含的元素Action Table (state machine table)Action Table (state machine table)CommonScriptURL CommonScriptURL Mode (security)Mode (security)AuditTrailProviderAuditTrailProviderl l通通过标准的准的XML来描述流程定来描述流程定义工作流状工作流状态表表 (action table)l l一一一一张张描述状描述状描述状描述状态变态变迁的表格迁的表格迁的表格迁的表格l l条件和条件和条件和条件和动动作通作通作通作通过过VB ScriptsVB Scripts来表述来表述来表述来表述 l lWF Engine WF Engine 判断条件判断条件判断条件判断条件l lWF Engine WF Engine 执执行行行行动动作作作作NameNameSubmitSubmitRejectRejectEventTypeEventTypeOnCreateOnCreateOnChangeOnChangeCurrent Current StateState- PendingPendingConditionConditionIsValid(Session.Item)IsValid(Session.Item)Session.Item.Approved = FalseSession.Item.Approved = FalseActionActionscript (notifyApprover)script (notifyApprover)script (notifySubmitter)script (notifySubmitter)New StateNew StatePendingPendingPendingPendingApproveApproveOnChangeOnChangePendingPendingSession.IteSession.Item.Approved = Truem.Approved = Truescript (notify & cleanup)script (notify & cleanup)ApprovedApprovedSubmitSubmitApproveApprovePendingPendingApprovedApprovedRejectReject工作流所使用的事件工作流所使用的事件OnCreateOnCreate当文档被当文档被当文档被当文档被创创建之建之建之建之时时OnDeleteOnDelete当文档被当文档被当文档被当文档被删删除之除之除之除之时时OnChangeOnChange当文档被修改之当文档被修改之当文档被修改之当文档被修改之时时OnEnter / OnExitOnEnter / OnExit进进入新状入新状入新状入新状态态 / / 离开久状离开久状离开久状离开久状态态之之之之时时OnExpiryOnExpiry文档在当前状文档在当前状文档在当前状文档在当前状态态下下下下过过期之期之期之期之时时OnReceiveOnReceive当文档所在目当文档所在目当文档所在目当文档所在目录录收到收到收到收到邮邮件之件之件之件之时时工作流引擎工作流引擎l l对Exchange存存储在工作流方面在工作流方面进行行扩展展COM COM 对对象象象象服服服服务务器端触器端触器端触器端触发发 / / 客客客客户户端独立端独立端独立端独立针对针对folderfolder添加工作流添加工作流添加工作流添加工作流应应用用用用为为触触触触发发工作流的文档提供状工作流的文档提供状工作流的文档提供状工作流的文档提供状态态表表表表 (action (action table)table)判断条件判断条件判断条件判断条件执执行行行行动动作作作作工作流事件接收器工作流事件接收器l l接收接收folder中文档中文档变化的事件化的事件l l使用同步事件:使用同步事件:OnSyncSaveOnSyncSaveOnSyncDeleteOnSyncDeleteOnTimer OnTimer l l检验用用户安全身份安全身份l l调用工作流引擎用工作流引擎运行运行时结构构Event Sink Host ProcessEvent Sink Host ProcessStore ProcessStore ProcessProc DefProc DefOnSyncSaveOnSyncSaveEvaluate Action TableEvaluate Action TableRun ScriptRun ScriptChanges to DocChanges to DocWrite new State valueWrite new State valueCommit TransactionCommit TransactionProcessProcessInstanceInstanceScriptScriptActionActionTableTableScriptScriptHostHostWorkflowWorkflowEngineEngineWorkflowWorkflowEvent SinkEvent SinkChange to DocChange to Doc工作流安全工作流安全l l对开开发人人员进行限制的需要行限制的需要l l支持两种安全模型支持两种安全模型特特特特权权模式模式模式模式 (Privileged Mode)(Privileged Mode)限制模式限制模式限制模式限制模式 (Restricted Mode)(Restricted Mode)l l通通过Workflow Event Sink在在COM+中的脚中的脚色来色来执行行l l工作流运行工作流运行时帐号号工作流安全工作流安全l l限制模式限制模式Actions are VBScript onlyActions are VBScript onlyScript engine “sandboxed”,Script engine “sandboxed”,no CreateObject()no CreateObject()Only use WorkflowSession objectOnly use WorkflowSession objectl l限制模式下可完成的工作限制模式下可完成的工作Modify properties on triggering itemModify properties on triggering itemSend mail (WorkflowMessage)Send mail (WorkflowMessage)Set item-level ACL on triggering itemSet item-level ACL on triggering itemWrite to AuditTrailWrite to AuditTrailWorkflow Securityl lPrivileged ModeFree use of CreateObject()Free use of CreateObject()Now actions can be script or COM objectsNow actions can be script or COM objectsActions execute under privileged NT Actions execute under privileged NT account (in Exchange Servers group)account (in Exchange Servers group)l lWhat can Privileged Mode do?AnythingAnything工作流及脚本工作流及脚本l lCDO WorkflowSession 内建内建对象象由工作流引擎自由工作流引擎自由工作流引擎自由工作流引擎自动创动创建建建建提供一系列数据提供一系列数据提供一系列数据提供一系列数据访问访问的的的的简单简单方法方法方法方法 (AD and Fields collection)(AD and Fields collection)提供提供提供提供对对运行运行运行运行时时相关数据的相关数据的相关数据的相关数据的访问访问方法方法方法方法发发送送送送邮邮件及件及件及件及对对响响响响应应的的的的处处理理理理设设置置置置单单文档及的文档及的文档及的文档及的ACLACL提供提供提供提供对对audit loggingaudit logging的操作的操作的操作的操作访问访问WorkflowSession对象模型象模型WorkflowSessionWorkflowSession.StateTo.StateTo.StateFrom.StateFrom.Sender.Sender.ErrorNumber.ErrorNumber.ErrorDescription.ErrorDescription.ActiveConnection.ActiveConnection.Domain.Domain.Server.Server.TrackingTable.TrackingTable.ReceivedMessage.ReceivedMessage.AddAuditEntry().AddAuditEntry().GetNewWorkflowMessage().GetNewWorkflowMessage().DeleteWorkflowItem().DeleteWorkflowItem().DeleteReceivedMessage().DeleteReceivedMessage().IsUserInRole().IsUserInRole().GetUserProperty().GetUserProperty()PropertiesPropertiesGetGetPutPutItemReaders, ItemAuthorsItemReaders, ItemAuthorsFieldsFieldsAddAddDeleteDeleteClearClearCountCountSame as ADO RecordSame as ADO RecordExchange 工作流工作流设计器器Workflow Designerl l图形化工作流及脚本形化工作流及脚本编辑器器l l面向面向 VBScript 开开发人人员l l同同Microsoft Office / XP Developer一起一起发行行免免免免费获费获得得得得 Demo: 步步骤1.1.创建建schema及及对象的属性象的属性2.2.使用使用WFD建立工作流模型建立工作流模型3.3.为相相应的的动作作(action)添加脚本添加脚本4.4.在当前目在当前目录实现工作流及工作流及UIWorkflow and .NETExchange Architecture With .NETCalling a Web Servicel l.NET clientNET clientEasy with VS.NETEasy with VS.NETl lAny COM enabled applicationAny COM enabled applicationSOAP Toolkit 2.0+SOAP Toolkit 2.0+l lHTTP callsHTTP callsGET and POSTGET and POST使用使用Workflow Designer创建工作流建工作流应用用资源源l l Technical Articles / Database and Messaging Services /Technical Articles / Database and Messaging Services /Web Storage System / Microsoft Exchange Server Web Storage System / Microsoft Exchange Server “Troubleshooting and Debugging Workflow Designer”“Troubleshooting and Debugging Workflow Designer” “Workflow Designer for Exchange: Automating Workflow on Exchange Folders”“Workflow Designer for Exchange: Automating Workflow on Exchange Folders” “Sending S/MIME messages using CDOSYS and CAPICOM”“Sending S/MIME messages using CDOSYS and CAPICOM”Periodicals / Periodicals 2000 / MSDN Magazine / July Periodicals / Periodicals 2000 / MSDN Magazine / July “Exchange 2000: Web Storage System, Workflow Tools and CDO Turbocharge “Exchange 2000: Web Storage System, Workflow Tools and CDO Turbocharge Collaboration Apps”Collaboration Apps”l lExchange SDK Exchange SDK under Messaging and Collaboration / Microsoft Exchange Server under Messaging and Collaboration / Microsoft Exchange Server Building Solutions on the Exchange Store / Building Solutions on the Exchange Store / Building Applications That Manage WorkflowBuilding Applications That Manage WorkflowConfiguration scripts under Developer Resources / Workflow Configuration Configuration scripts under Developer Resources / Workflow Configuration ScriptsScriptsl lConfiguring Exchange 2000 for WorkflowConfiguring Exchange 2000 for WorkflowSee “Troubleshooting and Debugging Workflow Designer” See “Troubleshooting and Debugging Workflow Designer” technical article on MSDNtechnical article on MSDNThank you!Questions?
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号