其它开发手册_第1页
其它开发手册_第2页
其它开发手册_第3页
其它开发手册_第4页
其它开发手册_第5页
免费预览已结束,剩余23页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

ORACLE应用技 CreationDate: Last ReferenceNumber> <Approver<ApproverCopy ControlChange4ChangeNoPrevious 1234NoteToIfyoureceiveanelectroniccopyofthisandprintitout,pleasewriteyournameontheequivalentofthecoverpage,forcontrolIfyoureceiveaofthis,pleasewriteyournameonthefrontcover,forcontrolpurposes. 概 背景与基具有oracleerpOracleConfigurator应用是OracleEBS中的一个模块,用于定制产品或者服务,OracleConfiguratorOracleConfiguratorDeveloper->Repository常用的主要对象类型有Folder,Model,Property,ConfiguratorExtensionArchive。ConfiguratorExtensionArchive是主要用于使用java编写的自定义规则打成的jarConfiguratorExtensionLogicRule、Numeric parisonRule、StatementRule、ExplicitCompatibility、DesignChart、Property-BasedCompatibility、Configurator测试 TestModel在EBS中查看设置好的规则。OracleConfiguratorModelPublication主要功能将已经一个完整的Model发常用表及Model的id于EBS性域的概念常用ConfiguratorInterfaceObject:这是一个JavaAPI,需要从EBS上获得,主要用如果需要在自己的客户化应用中使用OracleConfiguratorInterfaceObject(简称cdjarcvforacle.apps.cz.jarjarcvfo mon.jaro jarcvforacle.apps.fnd.metadata.jaroracle/apps/fnd/metadata/*jarcvforacle.apps.fnd.multi .jaroracle/apps/fnd/multi jarcvforacle.apps.fnd.security.jaroracle/apps/fnd/security/*jarcvforacle.apps.fnd.util.jaroracle/apps/fnd/util/*jarcvforacle.apps.jtf.jaroracle/apps/jtf/*jarcvforacle.fnd.util.jaroracle/fnd/util/*jarcvfcom.sun.java.util.collections.jarcom/sun/util/collections/*jarcvfEDU.oswego.cs.jarEDU/oswego/cs/*mvninstall:install-file-Dfile=jar包的位置-DgroupId=上面的groupId-DartifactId=上面的artifactIdDversion=上面的versionDpackaging=jarmvninstall:install-file-Dfile=D:\mvn\oracle.apps.fnd.metadata.jar-DgroupId=oracle.apps.cz-DartifactId=oracle-apps-cz-Dversion=1.0-cd$FND_SECURE使用ftp工具dbc文从EBS中库文件$ORACLE_HOME/lib/$ORACLE_HOME/lib//root/CIO/bin,执export System.setProperty("FND_TOP","/root/CIO");System.setProperty(Const.JTFDBCFILE,"DEMO.dbc");Stringstr=System.getProperty("JTFDBCFILE");CZWebAppsContextctx=newCZWebAppsContext(str);System.out.println("CreatedCZWebAppsContext");WebAppsContextwac=newWebAppsContext(str);Stringusr="alin";//oracleappusernameStringpwd="handhand1";//oracleapppwdSessionManagersm=ctx.getSessionManager();booleanresult=sm.valida ogin(usr,pwd);sm.setResp(708,24188);CIOcio=newintmodelId=130960;//modelIDcz_devl_projectsConfigParameterscp=newConfigParameters(modelId);java.util.CalendarmodelLookupDate=Calendar.getInstance();getChildByID(intgetChildByName(StringprivatevoidexcludeCTO(IRuntimeNodeopt)throwsLogicalException,NoSuchChildException,SelectionNotMutexedException{("enteringexcludeCTOin:"+getClass());IRuntimeNodeserver=opt;if(server!=null)("serverNamePathis:"+server.getNamePath());Stringvalue=server.getPropertyByName("OptionListprocessorList=opt.getRootInstance().getChildByName("OD-ListmemoryList=opt.getRootInstance().getChildByName("OD-IteratorproIr=while(proIr.hasNext())this.includeRelatedNode((IRuntimeNode)

}proIr=while(proIr.hasNext())this.excludeRelatedNode((IRuntimeNode)

}IteratormemIr=while(memIr.hasNext())this.includeRelatedNode((IRuntimeNode)

}memIr=while(memIr.hasNext())this.excludeRelatedNode((IRuntimeNode)}}}privateprivatevoidincludeRelatedNode(IRuntimeNodeirn,StringthrowsLogicalExceptionPropertypirn.getPropertyByName("OptionType");先设置可添项if(p!=null&&p.hasStringValue()&&p.getStringValue().equals(prop)){if(irninstanceofBomNode)((BomNodeirn).setState(IState.UNKNOWN);对于和modeltype相同的}}}privatevoidexcludeRelatedNode(IRuntimeNodeirn,StringthrowsLogicalExceptionPropertypirn.getPropertyByName("OptionType");if(p==||!p.hasStringValue()||!p.getStringValue().equals(prop))if(irninstanceofBomNode){((BomNode)irn).setState(IState.FALSE);//对于和modeloption}}}署登录Configurator,进入OracleConfiguratorOracleConfiguratorDeveloper->RepositoryMain->创建选择ConfiguratorExtension上传ArchivePath选中待使用的Extension,点击AddtoSelectedCratronfigurao的好个接口在户化应中够动加载规对的类即完(ConfigratrExtenson预定义事件,以下摘自DeveloperEventRelatedEventParameterNameand EventdispatchedafterinitializationoftheConfiguratorExtension.Thiscanoccuroninitializationofaconfigurationsession,orruntimeadditionofaBaseNodeEventdispatchedimmediaybeforeterminationoftheConfiguratorExtension.Thiscanoccuronterminationofaconfigurationsession,orruntimedeletionofaBaseNodeComponentEventdispatchedimmediayafteraddingacomponentcompSet(ComponentSet)instance(Component)AllComponentEventdispatchedimmediayafterdeletingacomponentcompSet(ComponentSet)instance(Component)AllComponentEventdispatchedimmediayaftermakingacomponentinstanceeditable.instanceAllComponentEventdispatchedimmediayaftermakingacomponentinstancenon-editable.instanceAllComponentEventdispatchedimmediayafteracomponent’sinstancenameischanged.instanceAllRuntimeEventdispatchedwhenacomponentinstanceorotherassociatednodeiscreated,orbroughtintotheconfiguration.newNodeAllRuntimeEventdispatchedimmediayafteracomponentinstanceorotherassociatednodeiscreated,orbroughtintothenewNodeAllEventdispatchedduringthevalidationofeligibleConnectorinstances.AmethodboundtothiseventshouldreturnaBooleanvalue.OracleConfiguratorusesthisvaluetodecidewhethertheconnector(Connector)(Component)BaseNodeEventParameteriseligible.IftheboundmethoddoesnotreturnanyBooleanvalue,thenitassumesthatiseligible.EventdispatchedimmediayafteraConnectorisconnectedtoacomponentconnector(Connector)(Component)AllEventdispatchedimmediayafteraConnectorisdisconnectedfromacomponentinstance.connector(Connector)(Component)AllCustomEventdispatchedwhenOracleConfiguratorrunsacustom-definedcommand.Thiseventmustbeusedwhengeneratingcustomoutput.AllEventdispatchedimmediayafterinitializinganeworrestoredconfigurationsession.GlobalEventdispatchedimmediayafteranewconfigurationsessionhasbeeninitialized.GlobalEventdispatchedimmediayafterarestoredconfigurationsessionhasbeeninitialized.GlobalEventdispatchedimmediaybeforeterminatingaconfigurationsession.IntheUI,thisoccursafteruserclickseitherthe"Done"or"Cancel"buttonandthenclicksan"OK"buttontodismissanynotificationsorwarningsthatmightbedisplayedbyOracleGlobalEventdispatchedimmediaybeforecompletingaconfigurationsession.IntheUI,thisoccursafteruserclicksthe"done"buttonandthenclicksan"OK"buttontodismissanynotificationso

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论