gpt4 book ai didi

intershop - 为后台定义自定义应用程序类型

转载 作者:行者123 更新时间:2023-12-02 23:12:38 33 4
gpt4 key购买 nike

我们正在尝试在最新的 Intershop 7.9 上为 Backoffice 设置自定义应用程序类型,但是当我们尝试运行 DBInit 时,我们收到以下错误:

[xx.xxx.webshop.dbinit.data.organization.Channel,xx.xxx.webshop.dbinit.data.organization.ChannelLocalization,ProcessChannel-DBInit] Version:null] com.intershop.beehive.core.pipelet.pipeline.ExecutePipeline [] [Unknown] [scHAqDIFBIAAAAFjuxgo2CwQ] [RbPAqDIFZAUAAAFjuxgo2CwQ] "main" ISH-CORE-2490: Synchronous called pipeline 'CreateSalesChannel-CreateChannelObjects' of application 'CustomShop@Custom-Site (app=xx.CustomBackoffice)' has finished with exception:  com.intershop.beehive.core.internal.pipeline.PipelineCallStackException: com.intershop.beehive.core.capi.pipeline.PipelineExecutionException: Required input parameter 'AppID' missing of pipeline 'ProcessApplication defined in cartridge sld_ch_base' and start node 'Create'!

调用 channel 准备器时出现错误。这是 apps.component 文件中用于创建后台应用程序类型的相关代码:

    <instance name="xx.CustomBackoffice.ApplicationTypes" with="AppRegistry"/>

<!-- register the custom B2CBackoffice to the Enterprise Backoffice of your choose -->
<fulfill of="intershop.EnterpriseBackoffice" requirement="namedObject">
<instance with="NamedObject">
<fulfill value="ChannelBackofficeApplicationType_52" requirement="name"/>
<fulfill with="xx.CustomBackoffice" requirement="object"/>
</instance>
</fulfill>

<!-- declaration of the cartridge list -->
<instance with="CartridgeListProvider" name="xx.CustomBackoffice.Cartridges">

<!-- Derive from standard webshop if you want to use the same cartridges like standard webshop -->
<fulfill requirement="parent" with="intershop.B2CBackoffice.Cartridges" />
</instance>

<!-- definition of the application type -->
<instance with="ApplicationType" name="xx.CustomBackoffice">
<fulfill requirement="id" value="xx.CustomBackoffice" />
<fulfill requirement="urlIdentifier" value="a1-shop-bo" />
<fulfill requirement="cartridgeListProvider" with="xx.CustomBackoffice.Cartridges" />
<fulfill requirement="namedObject">
<instance with="NamedObject">
<fulfill requirement="name" value="ChannelApps_52" />
<!-- register the AppRegistry containing all storefront applications of this channel -->
<fulfill requirement="object" with="xx.CustomBackoffice.ApplicationTypes" />
</instance>
</fulfill>
<!-- put additional NamedObjects, that are required by the particular business features -->
<!-- ... -->
</instance>

<!-- registration of the application type to the AppEngine -->
<fulfill of="AppEngine" with="xx.CustomBackoffice" requirement="app"/>

<fulfill requirement="namedObject" of="xx.CustomBackoffice" with="intershop.EnterpriseBackoffice.RESTAPI"/>

一旦我删除自定义后台应用程序类型的定义,dbinit 就会成功运行,并且创建前台应用程序类型时不会出现错误。

任何人都可以看到哪里有错误或者定义后台自定义应用程序类型的正确方法是什么?

我找到了这个问题,在 apps.component 中定义了 2 个自定义应用程序类型,特别是这部分:

<!-- register the custom B2CBackoffice to the Enterprise Backoffice of your choose -->
<fulfill of="intershop.EnterpriseBackoffice" requirement="namedObject">
<instance with="NamedObject">
<fulfill value="ChannelBackofficeApplicationType_52" requirement="name"/>
<fulfill with="xx.CustomBackoffice" requirement="object"/>
</instance>
</fulfill>

如果我添加第二个 BO 应用程序类型并尝试使用与上面相同的代码将其注册到 intershop.EnterpriseBackoffice(只需将 xx.CustomBackoffice 更改为 xx2.CustomBackoffice):

<!-- register the custom B2CBackoffice to the Enterprise Backoffice of your choose -->
<fulfill of="intershop.EnterpriseBackoffice" requirement="namedObject">
<instance with="NamedObject">
<fulfill value="ChannelBackofficeApplicationType_52" requirement="name"/>
<fulfill with="xx2.CustomBackoffice" requirement="object"/>
</instance>
</fulfill>

上面显示的错误是运行 DBinit 时出现的。那么,是否有人知道如何为后台定义和注册 2 种自定义应用程序类型(xx.CustomBackoffice 和 xx2.CustomBackoffice)?

最佳答案

据我所知,有一个 CartridgeListProvider 引用:

<fulfill requirement="cartridgeListProvider" with="a1.ShopBackoffice.Cartridges" />

指向a1.ShopBackoffice.Cartridges,但我在您的代码片段中找不到匹配的实例化名称。相反,我只看到 xx.CustomBackoffice.Cartridges

关于intershop - 为后台定义自定义应用程序类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50215314/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com