How can I hide ticket status in hybris?
How to hide ticket status in hybris? OTTB in hybris there is 3 statuses (open, in process, close ). I add my custom status Rejected. Logic which hybris do is when create one ticket from storefront, then when login in backoffice as 'CustomerSupportAgent' in ticket tab when click on created ticket I can see 3 statuses ( In process, close, and my custom status Rejected ), and when I change status from In process to Close then I see 2 statuses Close and Reopen. I want when my status is In proceess and click Rejected to see Rejected and In process or Reopen, but Close status to be not visible.
Hybris do spring mapping to make this visible.
<alias name="csTicketStateTransitionMap" alias="ticketStateTransitionMap"/>
<util:map id="csTicketStateTransitionMap">
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.NEW"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
</util:map>
When I add my logic for Rejected
<alias name="csTicketStateTransitionMap" alias="ticketStateTransitionMap"/>
<util:map id="csTicketStateTransitionMap">
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.NEW"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
//here I add like hybris logic when click Rejected to see Reopen or In process but not Close
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.REJECTED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
</util:map>
But it doesn't work. Why?
What I actually do:
I use B2B recept and I have my custom addon 'customerticketingaddon' which requires-extension name="customerticketingfacades"
in my customerticketingaddon-items.xml I add my custom status in CsTicketState
<enumtype code="CsTicketState" autocreate="false" generate="false" dynamic="true">
<value code="Rejected"/>
</enumtype>
Then in my cusomerticketingaddon-spring.xml I do the mapping which I showed above.
java status hybris
add a comment |
How to hide ticket status in hybris? OTTB in hybris there is 3 statuses (open, in process, close ). I add my custom status Rejected. Logic which hybris do is when create one ticket from storefront, then when login in backoffice as 'CustomerSupportAgent' in ticket tab when click on created ticket I can see 3 statuses ( In process, close, and my custom status Rejected ), and when I change status from In process to Close then I see 2 statuses Close and Reopen. I want when my status is In proceess and click Rejected to see Rejected and In process or Reopen, but Close status to be not visible.
Hybris do spring mapping to make this visible.
<alias name="csTicketStateTransitionMap" alias="ticketStateTransitionMap"/>
<util:map id="csTicketStateTransitionMap">
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.NEW"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
</util:map>
When I add my logic for Rejected
<alias name="csTicketStateTransitionMap" alias="ticketStateTransitionMap"/>
<util:map id="csTicketStateTransitionMap">
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.NEW"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
//here I add like hybris logic when click Rejected to see Reopen or In process but not Close
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.REJECTED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
</util:map>
But it doesn't work. Why?
What I actually do:
I use B2B recept and I have my custom addon 'customerticketingaddon' which requires-extension name="customerticketingfacades"
in my customerticketingaddon-items.xml I add my custom status in CsTicketState
<enumtype code="CsTicketState" autocreate="false" generate="false" dynamic="true">
<value code="Rejected"/>
</enumtype>
Then in my cusomerticketingaddon-spring.xml I do the mapping which I showed above.
java status hybris
Did you try giving different map name? May be it is overridden by original.
– mkysoft
Jan 3 at 8:34
I tried it so it still don't work
– rrusev
Jan 3 at 9:36
@mkysoft Hybris documentation write : ''Override or change this map to implement your own business rules. This follows the standard for defining a Map in Spring.'' help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 9:47
Did you define it in correct module/scope?
– mkysoft
Jan 3 at 9:55
@mkysoft I update my question. Yes do everthing correct I think so
– rrusev
Jan 3 at 11:04
add a comment |
How to hide ticket status in hybris? OTTB in hybris there is 3 statuses (open, in process, close ). I add my custom status Rejected. Logic which hybris do is when create one ticket from storefront, then when login in backoffice as 'CustomerSupportAgent' in ticket tab when click on created ticket I can see 3 statuses ( In process, close, and my custom status Rejected ), and when I change status from In process to Close then I see 2 statuses Close and Reopen. I want when my status is In proceess and click Rejected to see Rejected and In process or Reopen, but Close status to be not visible.
Hybris do spring mapping to make this visible.
<alias name="csTicketStateTransitionMap" alias="ticketStateTransitionMap"/>
<util:map id="csTicketStateTransitionMap">
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.NEW"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
</util:map>
When I add my logic for Rejected
<alias name="csTicketStateTransitionMap" alias="ticketStateTransitionMap"/>
<util:map id="csTicketStateTransitionMap">
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.NEW"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
//here I add like hybris logic when click Rejected to see Reopen or In process but not Close
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.REJECTED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
</util:map>
But it doesn't work. Why?
What I actually do:
I use B2B recept and I have my custom addon 'customerticketingaddon' which requires-extension name="customerticketingfacades"
in my customerticketingaddon-items.xml I add my custom status in CsTicketState
<enumtype code="CsTicketState" autocreate="false" generate="false" dynamic="true">
<value code="Rejected"/>
</enumtype>
Then in my cusomerticketingaddon-spring.xml I do the mapping which I showed above.
java status hybris
How to hide ticket status in hybris? OTTB in hybris there is 3 statuses (open, in process, close ). I add my custom status Rejected. Logic which hybris do is when create one ticket from storefront, then when login in backoffice as 'CustomerSupportAgent' in ticket tab when click on created ticket I can see 3 statuses ( In process, close, and my custom status Rejected ), and when I change status from In process to Close then I see 2 statuses Close and Reopen. I want when my status is In proceess and click Rejected to see Rejected and In process or Reopen, but Close status to be not visible.
Hybris do spring mapping to make this visible.
<alias name="csTicketStateTransitionMap" alias="ticketStateTransitionMap"/>
<util:map id="csTicketStateTransitionMap">
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.NEW"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
</util:map>
When I add my logic for Rejected
<alias name="csTicketStateTransitionMap" alias="ticketStateTransitionMap"/>
<util:map id="csTicketStateTransitionMap">
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.NEW"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</util:list>
</entry>
//here I add like hybris logic when click Rejected to see Reopen or In process but not Close
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.REJECTED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
<entry>
<key>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.CLOSED"/>
</key>
<util:list>
<util:constant static-field="de.hybris.platform.ticket.enums.CsTicketState.OPEN"/>
</util:list>
</entry>
</util:map>
But it doesn't work. Why?
What I actually do:
I use B2B recept and I have my custom addon 'customerticketingaddon' which requires-extension name="customerticketingfacades"
in my customerticketingaddon-items.xml I add my custom status in CsTicketState
<enumtype code="CsTicketState" autocreate="false" generate="false" dynamic="true">
<value code="Rejected"/>
</enumtype>
Then in my cusomerticketingaddon-spring.xml I do the mapping which I showed above.
java status hybris
java status hybris
edited Jan 3 at 10:24
rrusev
asked Jan 2 at 13:05
rrusevrrusev
439
439
Did you try giving different map name? May be it is overridden by original.
– mkysoft
Jan 3 at 8:34
I tried it so it still don't work
– rrusev
Jan 3 at 9:36
@mkysoft Hybris documentation write : ''Override or change this map to implement your own business rules. This follows the standard for defining a Map in Spring.'' help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 9:47
Did you define it in correct module/scope?
– mkysoft
Jan 3 at 9:55
@mkysoft I update my question. Yes do everthing correct I think so
– rrusev
Jan 3 at 11:04
add a comment |
Did you try giving different map name? May be it is overridden by original.
– mkysoft
Jan 3 at 8:34
I tried it so it still don't work
– rrusev
Jan 3 at 9:36
@mkysoft Hybris documentation write : ''Override or change this map to implement your own business rules. This follows the standard for defining a Map in Spring.'' help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 9:47
Did you define it in correct module/scope?
– mkysoft
Jan 3 at 9:55
@mkysoft I update my question. Yes do everthing correct I think so
– rrusev
Jan 3 at 11:04
Did you try giving different map name? May be it is overridden by original.
– mkysoft
Jan 3 at 8:34
Did you try giving different map name? May be it is overridden by original.
– mkysoft
Jan 3 at 8:34
I tried it so it still don't work
– rrusev
Jan 3 at 9:36
I tried it so it still don't work
– rrusev
Jan 3 at 9:36
@mkysoft Hybris documentation write : ''Override or change this map to implement your own business rules. This follows the standard for defining a Map in Spring.'' help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 9:47
@mkysoft Hybris documentation write : ''Override or change this map to implement your own business rules. This follows the standard for defining a Map in Spring.'' help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 9:47
Did you define it in correct module/scope?
– mkysoft
Jan 3 at 9:55
Did you define it in correct module/scope?
– mkysoft
Jan 3 at 9:55
@mkysoft I update my question. Yes do everthing correct I think so
– rrusev
Jan 3 at 11:04
@mkysoft I update my question. Yes do everthing correct I think so
– rrusev
Jan 3 at 11:04
add a comment |
1 Answer
1
active
oldest
votes
First of all, ensure that you are using backoffice spring context to define your bean.
Hybris-way to extend map beans is to use Map Extender backoffice functionality - https://help.hybris.com/1811/hcd/94ac56a0aa9f486490bbe1251d994457.html#loio83afe1e428384fa881d687b0baa6ea48
cng:map-extender provides an ability to put and remove map entries.
Take a look at the example from ruleenginebackoffice-backoffice-spring
Original bean definition
<alias name="defaultBackofficeCronJobHistoryIncludes" alias="backofficeCronJobHistoryIncludes"/>
<util:map id="defaultBackofficeCronJobHistoryIncludes" key-type="java.lang.String"
value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="syncProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(de.hybris.platform.catalog.model.SyncItemJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="excelImportProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(com.hybris.backoffice.model.ExcelImportJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="auditReportGeneratorProcess">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="cronJobTypeCode" value="#{T(de.hybris.platform.auditreport.model.CreateAuditReportCronJobModel)._TYPECODE}"/>
</bean>
</entry>
</util:map>
Extended using
<cng:map-extender bean="backofficeCronJobHistoryIncludes" xmlns:cng="http://www.hybris.com/cockpitng/spring">
<cng:put key-type="java.lang.String" value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="ruleEngineProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="RuleEngineJob"/>
</bean>
</entry>
</cng:put>
</cng:map-extender>
I use B2B receipt
– rrusev
Jan 3 at 10:24
Just configure your extension/addon to support backoffice configuration. Updateextensioninfo.xml
with<extension> <meta key="backoffice-module" value="true"/> </extension>
. Then add<extensionname>-backoffice-spring.xml
. This spring configuration will be merge into backoffice web context.
– Ihar Reznichenka
Jan 3 at 11:24
I think the problem is elsewhere. OOTB hybris have 3 ticket statuses ( Open , In process, Close ). I add my custom status. Now have 4 status ( Open, In process, Rejected, Close ). That what I want is when I click status "Rejected" after that when click again on drop-down with statuses to see only "Rejected and In process" and in documentation write if you want to change visibility of statuses override or change this mapping help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 12:03
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54006910%2fhow-can-i-hide-ticket-status-in-hybris%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First of all, ensure that you are using backoffice spring context to define your bean.
Hybris-way to extend map beans is to use Map Extender backoffice functionality - https://help.hybris.com/1811/hcd/94ac56a0aa9f486490bbe1251d994457.html#loio83afe1e428384fa881d687b0baa6ea48
cng:map-extender provides an ability to put and remove map entries.
Take a look at the example from ruleenginebackoffice-backoffice-spring
Original bean definition
<alias name="defaultBackofficeCronJobHistoryIncludes" alias="backofficeCronJobHistoryIncludes"/>
<util:map id="defaultBackofficeCronJobHistoryIncludes" key-type="java.lang.String"
value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="syncProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(de.hybris.platform.catalog.model.SyncItemJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="excelImportProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(com.hybris.backoffice.model.ExcelImportJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="auditReportGeneratorProcess">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="cronJobTypeCode" value="#{T(de.hybris.platform.auditreport.model.CreateAuditReportCronJobModel)._TYPECODE}"/>
</bean>
</entry>
</util:map>
Extended using
<cng:map-extender bean="backofficeCronJobHistoryIncludes" xmlns:cng="http://www.hybris.com/cockpitng/spring">
<cng:put key-type="java.lang.String" value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="ruleEngineProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="RuleEngineJob"/>
</bean>
</entry>
</cng:put>
</cng:map-extender>
I use B2B receipt
– rrusev
Jan 3 at 10:24
Just configure your extension/addon to support backoffice configuration. Updateextensioninfo.xml
with<extension> <meta key="backoffice-module" value="true"/> </extension>
. Then add<extensionname>-backoffice-spring.xml
. This spring configuration will be merge into backoffice web context.
– Ihar Reznichenka
Jan 3 at 11:24
I think the problem is elsewhere. OOTB hybris have 3 ticket statuses ( Open , In process, Close ). I add my custom status. Now have 4 status ( Open, In process, Rejected, Close ). That what I want is when I click status "Rejected" after that when click again on drop-down with statuses to see only "Rejected and In process" and in documentation write if you want to change visibility of statuses override or change this mapping help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 12:03
add a comment |
First of all, ensure that you are using backoffice spring context to define your bean.
Hybris-way to extend map beans is to use Map Extender backoffice functionality - https://help.hybris.com/1811/hcd/94ac56a0aa9f486490bbe1251d994457.html#loio83afe1e428384fa881d687b0baa6ea48
cng:map-extender provides an ability to put and remove map entries.
Take a look at the example from ruleenginebackoffice-backoffice-spring
Original bean definition
<alias name="defaultBackofficeCronJobHistoryIncludes" alias="backofficeCronJobHistoryIncludes"/>
<util:map id="defaultBackofficeCronJobHistoryIncludes" key-type="java.lang.String"
value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="syncProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(de.hybris.platform.catalog.model.SyncItemJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="excelImportProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(com.hybris.backoffice.model.ExcelImportJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="auditReportGeneratorProcess">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="cronJobTypeCode" value="#{T(de.hybris.platform.auditreport.model.CreateAuditReportCronJobModel)._TYPECODE}"/>
</bean>
</entry>
</util:map>
Extended using
<cng:map-extender bean="backofficeCronJobHistoryIncludes" xmlns:cng="http://www.hybris.com/cockpitng/spring">
<cng:put key-type="java.lang.String" value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="ruleEngineProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="RuleEngineJob"/>
</bean>
</entry>
</cng:put>
</cng:map-extender>
I use B2B receipt
– rrusev
Jan 3 at 10:24
Just configure your extension/addon to support backoffice configuration. Updateextensioninfo.xml
with<extension> <meta key="backoffice-module" value="true"/> </extension>
. Then add<extensionname>-backoffice-spring.xml
. This spring configuration will be merge into backoffice web context.
– Ihar Reznichenka
Jan 3 at 11:24
I think the problem is elsewhere. OOTB hybris have 3 ticket statuses ( Open , In process, Close ). I add my custom status. Now have 4 status ( Open, In process, Rejected, Close ). That what I want is when I click status "Rejected" after that when click again on drop-down with statuses to see only "Rejected and In process" and in documentation write if you want to change visibility of statuses override or change this mapping help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 12:03
add a comment |
First of all, ensure that you are using backoffice spring context to define your bean.
Hybris-way to extend map beans is to use Map Extender backoffice functionality - https://help.hybris.com/1811/hcd/94ac56a0aa9f486490bbe1251d994457.html#loio83afe1e428384fa881d687b0baa6ea48
cng:map-extender provides an ability to put and remove map entries.
Take a look at the example from ruleenginebackoffice-backoffice-spring
Original bean definition
<alias name="defaultBackofficeCronJobHistoryIncludes" alias="backofficeCronJobHistoryIncludes"/>
<util:map id="defaultBackofficeCronJobHistoryIncludes" key-type="java.lang.String"
value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="syncProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(de.hybris.platform.catalog.model.SyncItemJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="excelImportProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(com.hybris.backoffice.model.ExcelImportJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="auditReportGeneratorProcess">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="cronJobTypeCode" value="#{T(de.hybris.platform.auditreport.model.CreateAuditReportCronJobModel)._TYPECODE}"/>
</bean>
</entry>
</util:map>
Extended using
<cng:map-extender bean="backofficeCronJobHistoryIncludes" xmlns:cng="http://www.hybris.com/cockpitng/spring">
<cng:put key-type="java.lang.String" value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="ruleEngineProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="RuleEngineJob"/>
</bean>
</entry>
</cng:put>
</cng:map-extender>
First of all, ensure that you are using backoffice spring context to define your bean.
Hybris-way to extend map beans is to use Map Extender backoffice functionality - https://help.hybris.com/1811/hcd/94ac56a0aa9f486490bbe1251d994457.html#loio83afe1e428384fa881d687b0baa6ea48
cng:map-extender provides an ability to put and remove map entries.
Take a look at the example from ruleenginebackoffice-backoffice-spring
Original bean definition
<alias name="defaultBackofficeCronJobHistoryIncludes" alias="backofficeCronJobHistoryIncludes"/>
<util:map id="defaultBackofficeCronJobHistoryIncludes" key-type="java.lang.String"
value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="syncProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(de.hybris.platform.catalog.model.SyncItemJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="excelImportProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="#{T(com.hybris.backoffice.model.ExcelImportJobModel)._TYPECODE}"/>
</bean>
</entry>
<entry key="auditReportGeneratorProcess">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="cronJobTypeCode" value="#{T(de.hybris.platform.auditreport.model.CreateAuditReportCronJobModel)._TYPECODE}"/>
</bean>
</entry>
</util:map>
Extended using
<cng:map-extender bean="backofficeCronJobHistoryIncludes" xmlns:cng="http://www.hybris.com/cockpitng/spring">
<cng:put key-type="java.lang.String" value-type="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<entry key="ruleEngineProcesses">
<bean class="de.hybris.platform.servicelayer.cronjob.CronJobHistoryInclude">
<property name="jobTypeCode" value="RuleEngineJob"/>
</bean>
</entry>
</cng:put>
</cng:map-extender>
answered Jan 3 at 10:05


Ihar ReznichenkaIhar Reznichenka
715
715
I use B2B receipt
– rrusev
Jan 3 at 10:24
Just configure your extension/addon to support backoffice configuration. Updateextensioninfo.xml
with<extension> <meta key="backoffice-module" value="true"/> </extension>
. Then add<extensionname>-backoffice-spring.xml
. This spring configuration will be merge into backoffice web context.
– Ihar Reznichenka
Jan 3 at 11:24
I think the problem is elsewhere. OOTB hybris have 3 ticket statuses ( Open , In process, Close ). I add my custom status. Now have 4 status ( Open, In process, Rejected, Close ). That what I want is when I click status "Rejected" after that when click again on drop-down with statuses to see only "Rejected and In process" and in documentation write if you want to change visibility of statuses override or change this mapping help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 12:03
add a comment |
I use B2B receipt
– rrusev
Jan 3 at 10:24
Just configure your extension/addon to support backoffice configuration. Updateextensioninfo.xml
with<extension> <meta key="backoffice-module" value="true"/> </extension>
. Then add<extensionname>-backoffice-spring.xml
. This spring configuration will be merge into backoffice web context.
– Ihar Reznichenka
Jan 3 at 11:24
I think the problem is elsewhere. OOTB hybris have 3 ticket statuses ( Open , In process, Close ). I add my custom status. Now have 4 status ( Open, In process, Rejected, Close ). That what I want is when I click status "Rejected" after that when click again on drop-down with statuses to see only "Rejected and In process" and in documentation write if you want to change visibility of statuses override or change this mapping help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 12:03
I use B2B receipt
– rrusev
Jan 3 at 10:24
I use B2B receipt
– rrusev
Jan 3 at 10:24
Just configure your extension/addon to support backoffice configuration. Update
extensioninfo.xml
with <extension> <meta key="backoffice-module" value="true"/> </extension>
. Then add <extensionname>-backoffice-spring.xml
. This spring configuration will be merge into backoffice web context.– Ihar Reznichenka
Jan 3 at 11:24
Just configure your extension/addon to support backoffice configuration. Update
extensioninfo.xml
with <extension> <meta key="backoffice-module" value="true"/> </extension>
. Then add <extensionname>-backoffice-spring.xml
. This spring configuration will be merge into backoffice web context.– Ihar Reznichenka
Jan 3 at 11:24
I think the problem is elsewhere. OOTB hybris have 3 ticket statuses ( Open , In process, Close ). I add my custom status. Now have 4 status ( Open, In process, Rejected, Close ). That what I want is when I click status "Rejected" after that when click again on drop-down with statuses to see only "Rejected and In process" and in documentation write if you want to change visibility of statuses override or change this mapping help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 12:03
I think the problem is elsewhere. OOTB hybris have 3 ticket statuses ( Open , In process, Close ). I add my custom status. Now have 4 status ( Open, In process, Rejected, Close ). That what I want is when I click status "Rejected" after that when click again on drop-down with statuses to see only "Rejected and In process" and in documentation write if you want to change visibility of statuses override or change this mapping help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 12:03
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54006910%2fhow-can-i-hide-ticket-status-in-hybris%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you try giving different map name? May be it is overridden by original.
– mkysoft
Jan 3 at 8:34
I tried it so it still don't work
– rrusev
Jan 3 at 9:36
@mkysoft Hybris documentation write : ''Override or change this map to implement your own business rules. This follows the standard for defining a Map in Spring.'' help.hybris.com/1811/hcd/8c7258ff86691014b485bfd58e138ed3.html
– rrusev
Jan 3 at 9:47
Did you define it in correct module/scope?
– mkysoft
Jan 3 at 9:55
@mkysoft I update my question. Yes do everthing correct I think so
– rrusev
Jan 3 at 11:04