Configuring the Info Box

The Info Box is a section in a cockpit navigation area, where you can see comments and tasks. Learn how to configure the notations in the Info Box in the SAP Commerce Cloud cockpit.

Configuration Options

In the default implementation, comments and tasks are displayed. Updating is done by the server push mechanism, so there are the following push containers defined, for example in the productcockpit-web-spring.xml file:

productcockpit-web-spring.xml

<bean id="UICockpitSession" class="de.hybris.platform.cockpit.session.impl.UISessionImpl" scope="session">
		...
		<property name="pushContainers">
			<list value-type="de.hybris.platform.cockpit.session.impl.PushCreationContainer">
				<ref bean="WorkflowPushContainer" />
				<ref bean="CommentPushContainer" />
			</list>
		</property>
	</bean>
	
	<bean id="WorkflowPushContainer" class="de.hybris.platform.cockpit.session.impl.PushCreationContainer" scope="session">
		<constructor-arg value="de.hybris.platform.cockpit.session.impl.WorkflowPushController" index="0" />
		<constructor-arg index="1">
			<map>
				<entry key="updateInterval" value="30000" />
				<entry key="attClassNames" value-ref="WorkflowAttachmentData"/>
			</map>
		</constructor-arg>
	</bean>
		
	<bean id="CommentPushContainer" class="de.hybris.platform.cockpit.session.impl.PushCreationContainer" scope="session">
		<constructor-arg value="de.hybris.platform.cockpit.session.impl.CommentPushController" index="0" />
		<constructor-arg index="1">
			<map>
				<entry key="updateInterval" value="30000" />
				<entry key="cockpitTypeService">
					<ref bean="cockpitTypeService"/>
				</entry>
			</map>
		</constructor-arg>
	</bean>

There you can specify the update interval.