ImageVerifierCode 换一换
格式:DOCX , 页数:16 ,大小:33.08KB ,
资源ID:6368954      下载积分:2 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/6368954.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(BPM业务流程管理BPM技术文档.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

BPM业务流程管理BPM技术文档.docx

1、BPM业务流程管理BPM技术文档(BPM业务流程管理)BPM技术文档2BPM与WEB Dynpro总结郑永文2007-4-18目录 21 基本步骤 41.1 创建BPM 41.2 创建WEB UI 41.3 建立process与web ui的关系 41.3.1 指定关联 41.3.2 指定TASK的interface 51.3.3 指定process中的各activity的数据mapping,即在各个activity中可流转的数据 61.4 Deploy process 61.5 访问 62 技术架构 73 结构 73.1 View的layout 113.2 Composite UI Elem

2、ent 153.3 字段属性 174 Message 175 动态设置value-help 196 动态编程,即动态设置context 207 外部model数据 278 JA312: Advanced Webdynpro for JAVA 288.1 设置弹出式窗口 298.1.1 OVS 318.2 消息处理 328.3 高级CONTEXT 328.4 动态UI 338.5 Model interface 338.6 Structing application 338.6.1 dependencity 338.6.2 structing 408.7 附录 429 实用东西 449.1 查看

3、日志 449.2 ABAP层次的WEB SERVICE 449.3 Task层次的某些属性可在Human activity中覆盖 449.4 Process的web service 459.5 调用web service 459.5.1 WSDL 文档结构 469.5.2 WSDL 端口 469.5.3 WSDL 消息 479.5.4 WSDL types 479.5.5 WSDL Bindings 479.5.6 总结 4710 实用类、接口 4910.1 Class WDValueServices 4911 连接外部数据库 4912 账号权限 5112.1 Portal上UWL的权限 51

4、12.2 管理员权限 5113 常用URL 5113.1 流程管理 51http:/192.168.0.233:50000/ProcessManagement/index.jsp 5113.2 流程监控 5114 问题 5215 总结 521 基本步骤创建BPM在NWDS中,创建一个BPM流程实例。在此步骤中,只设置流程图(在pool中,创建多个lane,在每个lane中设置流程活动,如activity、event、gatway等),在流程图中的每个human activity中,需要用到task,在该task中,指向web dynpro for java开发的WEB UI。在activity

5、中,可指定该步骤的用户,但此处指定的用户可被该process种的task的role取代。创建WEB UI 在该步骤中,创建process中人机交互的页面,此部主要就是web dynpro for java的开发,创建好后,需要每个component add to public part中,以便在process中可用建立process与web ui的关系此步在development infrastructure中完成,即将上述两步创建的process 与 web ui关联起来,以便在process的task中可指定web ui的interface(即要用到第二步中add to public pa

6、rt的组件)、在process的owner中指定该步的执行者及流程中多个activity的数据mapping (包括input mapping 、output mapping等)指定关联指定TASK的interface在task的编辑器中,可指定task对应的UI interface,此处interface即需要用到1.2中add to public part中的component.在此处指定component后,即可在process的数据类型中可找到该component种定义的context中的数据,如下图所示:注意:在此处指定task的UI interface时,必须在WEB UI的Com

7、ponent的Interface controller中指定一个Complete event,否则无法指定。 同理,在interface controller中也要指定context,否则无法在process中mapping指定process中的各activity的数据mapping,即在各个activity中可流转的数据此步完成后,即可 在process中加入数据对象 可在process的activity中作数据mapping操作(否则,在input mapping中无的TaskInput中无UIRequest,在output mapping的TaskOutput中无UIResponse)如

8、此,即可在context与activity中的input/output做数据mapping。在portal上的UWL中,将可以显示任务列表,此处的任务列表显示的内容可以定制并可用参数,在TASK的user text中定义,如下图所示:此处的参数也从绑定的userinterface(compontent)中而来,若不绑定,则无可选的context数据(在UIRequest或UIResponse节点中)。即context(从绑定的compontent中取到)数据与activity的taskInput中的UIRequest绑定;与taskOutput中的UIResponse绑定。通过这种方式来实现U

9、I与process的数据绑定及流转。Deploy process访问http:/192.168.0.233:50000/index.html 的san链接中,通过Configuration Management- processes and tasks- process reposity来启动在1.4中deploy的流程2 技术架构DC关系:3 结构对于每个VIEW,分别对应有两个interface,假设view的名称为MMM,则接口名分别为IPrivateMMMView和IPublicMMMView,前者用于VIEW的对内数据操作,后者用于对外的数据交换,在VIEW中定义的ACTION在前者

10、中定义,在private的view中,1. context中所选的每个node都对应有两个静态内部类,分别为INodeNmaeNode、INodeNameElement,在这两个内部类中分别定义node的操作、属性等东西。通过提供的这些方法来操作VIEW中的数据,如查找按钮等。2. view中定义的method、action也在此接口中定义每个view均实现java.io.Serializable类,有个IPrivateMMMView类型的变量wdThis, public PurchaseRequestView(IPrivatePurchaseRequestView wdThis) this.

11、wdThis = wdThis; this.wdContext = wdThis.wdGetContext(); this.wdControllerAPI = wdThis.wdGetAPI(); this.wdComponentAPI = wdThis.wdGetAPI().getComponent(); 对于每个web dynpro for java的组件,均有controller、view、window,其中controller对应有接口IPublic组件名、IPrivate组件名的接口,其中IPrivate extends IPublic,在IPublic中,有两个内部类,分别为ICo

12、ntextNode继承自DataNode表示节点,IContextElement继承自DataNodeElement表示元素,在对应的Controller的JAVA文件中,有一个私有成员wdThis变量类型为IPrivate的,故通过这个变量即可实现对Context的访问. 其中wdContext变量类型为上述IPublic中的内部类IcontextNode,通过该变量实现对Context的访问; 此外,另两个变量wdComponentAPI/wdControllerAPI的类型均为IWDCompontent,通过这两个变量可实现对message、尽量不要使用Custom Controller

13、,只有在优化、简单化开发时才考虑使用wdDoPostProcessing() 在复杂的应用中,用于校验来自多个组件的数据wdDoBeforeNavigation 在不同的controller中共享数据External-mapping在设置internal mapping时,需要将cardinality设为1.n,否则在界面上不能输入。若view的context为从control映射过来,则需在controller的context中设置cardinality,在view中不能设置。目前还不支持structure字段context属性的更名。注意在VIEW中的BUTTON中,不要直接在VIEW中写

14、代码更改屏幕中元素的值,而是应该在controller中更改值,方法是在controll中定义method,然后在view的layout的outline中,选中button,右键在出来的菜单中选择apply templete,在此定义action并在后续步骤中选择controll中定义的方法。 当然也可在view中action中写代码,但这种方法应该是违反了mvc的原理,即在view中直接更改了元素的值,理论上view应该只用于显示数据,而不应该操作数据。即在controll中定义方法,然后在view中通过wdThis.wdGetStartCompController()去调用controll

15、中的数据,如下例所示:其中中即为Compontent的名称。 public void onActionInitialValue(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ) /$begin Action Button(-750211490) wdThis.wdGetStartCompController().initPersonInfo();/$end View的layoutComposite UI Element字段属性在controller的context中,可将字段属性的calculated属性设为true,则该在

16、controller中可在该字段的set/getter方法中写代码操作该字段的值,在该代码中修改该字段的值后,在mapping过的view中可直接显示该字段的值4 Message3种类型:Standard, Warning, Error在IMessageNc中作为常量存在,如component为 StartComp,则该类名为 IMessageStartComp.访问方式:IWDTextAccessor txtAccessor = wdComponentApi.getTextAccessor();String msg = txtAccessor.getText(“MessageKey”);IW

17、DMessageManager msgMgr = wdComponentAPI.getMessageManager();将Message与UI元素关联:抛出错误信息:wdComponentAPI.getMessageManager().raisePendingException();在NWDS中在deploy时,经常会提示服务不可用,但经查系统,发现服务端无任何问题,此时,在NWDS中将SAP AS JAVA中的服务重配即可。在MESSAGE POOL中维护好message后,如下:其中text中的01即为需要传递的参数,从0开始数。然后要在程序中抛出该消息,有两种方法:1. IWDMessa

18、geManager msgMgr = this.wdComponentAPI.getMessageManager(); IWDTextAccessor txtAcc = this.wdComponentAPI.getTextAccessor(); String msg = txtAcc.getText(S10001, new Object begindate,enddate); msgMgr.reportException(msg);2. IWDMessageManager msgMgr = this.wdComponentAPI.getMessageManager(); msgMgr.rep

19、ortMessage(IMessageStartComp.S10001, new Object begindate,enddate);上述示例代码中加入的new Object数组即为需要传递到message中的变量值,与ABAP类似。将消息与屏幕上的某个元素关联:5 动态设置value-helpSVS 设置selectedKey属性EVS 设置value属性OVS动态设置参见下图6 动态编程,即动态设置context1. 动态创建context此处定义的attribute,如需在UI的元素中使用,则其类型必须为sap java directory,即上图中的ddic:com.sap.dicti

20、onary.string等,具体可用类型在在context中定义时可看到;也可用java的类型,如java:java.lang.String,但此种类型不能用于UI元素。2. 动态设置UI元素如下例:public void wdDoModifyView(com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime) /begin wdDoModifyView / set requester name and county try IWDClientUser user = WDClientUser.getCurrentUse

21、r(); StringBuffer sb = new StringBuffer(); if (user.getLastName() != null) sb.append(user.getLastName(); if (sb.length() 0 & user.getFirstName() != null) sb.append(, ); if (user.getFirstName() != null) sb.append(user.getFirstName(); String country = ; if (user.getLocale().getDisplayCountry() != null

22、) country = user.getLocale().getDisplayCountry(); wdContext.currentRequesterElement().setRequesterName(sb.toString(); wdContext.currentRequesterElement().setRequesterCountry(country); catch (WDUMException e) / do nothing /end 3. 设置动态action4. action的参数mapping7 外部model数据RFC/BAPI8 JA312: Advanced Webdy

23、npro for JAVA2009-4-21设置弹出式窗口OVS 接口:IWDOVSDialog、IWDOVSSuggester、IWDOVSController、IWDOVSProvider、IWDWindow、IWDExternalControllerInterface、IWDComponentUsage可将context中的属性的数据类型直接设置为某个JAVA类,如在context中创建一个dialog的属性, 并将该属性的数据类型设为com.sap.tc.webdynpro.progmodel.api.IWDOVSDialog,表示该属性可实现对话框的打开、关闭等操作。其中IWDOVS

24、Controller传递给IWDOVSDialog、IWDOVSSuggester,用于控制dialog与web dynpor的数据通讯IWDOVSProvider Web Dynpro uses this interface to get a component handling the OVS. Web Dynpro only needs the interface window of this component to supply the popup windowIWDExternalControllerInterfaceCommon Interface for all Externa

25、l Interfaces of Controllers. Important: All members in this interface MUST be prefixed with wd to avoid collisions with application codeIWDComponentUsageAPI of component usages. A component usage provides access to the interfaces of an embedded component and manages the life cycle of an embedded com

26、ponent instance.消息处理在context中处理高级CONTEXT1. calculated 属性2. supply function3. dispose function4. recruive-context node5. typed context API (how to reduce memory)动态UIModel interfaceStructing applicationdependencity两种选择:createOnCommand Manual 程序员控制structing附录9 实用东西查看日志通过Administrator界面查看,且可定制日志的显示方式等。(

27、NWA)即为NW Administratorhttp:/:/nwa 按照如下链接进入:Problem managment-log and Trace-Log Viewer-select Last 24 hours.如下图所示:但据所观察,该日志的参考意义不大,无法从该日志信息得到具体又实用的提示信息,如上图所示为流程启动时,发生错误,提示根据日志ID查看,但查看该日之后,无任何有帮助性质的内容。ABAP层次的WEB SERVICETCODE: WSADMINTask层次的某些属性可在Human activity中覆盖如多个不同的human activity中需要共用某个task,但这个共用的t

28、ask有些属性在不同的human activity中有不同的属性,此时,即可在不同的human activity中指定这些可覆盖的属性,这些属性包括: Priority Potential and excluded owners Activation time Start deadline Completion deadline Expiration timeWhen you assign a task to a human activity, you can override the defined task attributes on the human activity level. Y

29、ou override task attributes on the human activity level when you want to use the same task in different human activities in the process model. Overriding the task attributes means that you define different settings for the task attributes for each human activity instead of creating a new task for ea

30、ch human activity.Process的web service每个流程都定义为一个异步的web service, service的接口名称即为开始事件中的名称。需要在WSA(Web Service Navigator中去找这个web service)need to find the right web service in the WS Navigator. Each process is exposed as a Web Service. The service interface name is the one used in the start event.若以同步的方式在页

31、面上启动web service,则会抛出一个exception “”调用web service在NWCE7.1 EHP1中,只能通过Web Service来启动流程You can call a web service witout SR if you have the wsdl file and wsdl link for the webservice.You can get the wsdl link for a webservice in the t-code wsadmin in SAP.Once you have the wsdl for webservice of SAP, create a logical destination for that service in the we

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1