Backoffice Framework Concept
The goal of the Backoffice Framework is to simplify development of backoffice applications. It helps you create components that can be reused in all kinds of applications later on. When you design an application, the components can be modified without touching the code base.
Support the Extension Concept
The SAP Commerce Cloud is based on a flexible, modular concept that allows you to put new functionality into extensions. An extension is an encapsulated piece of SAP Commerce Cloud that can contain business logic and type definitions.
Most of the time the functionality added to SAP Commerce Cloud by custom extensions needs business tooling. With the introduction of Backoffice Framework, SAP wants to enable you to easily contribute to the backoffice application build on top of the Backoffice Framework.The main difference to the Cockpit Framework is the outstanding flexibility of the Backoffice Framework. By developing custom navigation and layout widgets the application developer can redefine the whole layout of the backoffice application and is not bound to the application structure of the current cockpits with its Navigation, List View, Browser and Edit Sections.
Orchestrate the Application
Widget Library
One of the key concepts behind Backoffice Framework is the idea of an application made up of a set of widgets. Each widget is a stand-alone UI component for a clearly-defined purpose. All the widgets in the central widget library can then be used to assemble the backoffice application by configuration.
Backoffice Framework comes with a steadily growing set of very generic and highly customizable widgets. They are all build using the ZK Framework as server-side rendering allows full access to the Spring application context of SAP Commerce Cloud. Nevertheless, the widget developer is not bound to using the ZK Framework when implementing custom widgets. Every widget is composed by a controller and a view. The view can also be implemented using plain HTML, CSS, and JavaScript.
Editors and Actions
Data manipulation operations are covered in the framework by an extensible set of editors. All types of data: simple fields, localized fields, relations, classifications (with ranges and nesting) are supported out-of-the-box. For each attribute of an ItemType like simple text, type reference, media or any other there exists a default editor that can be used in views based on the ZK Framework. If the default editor does not support all of your requirements you can always provide a custom implementation of an editor. The effort is similar to writing a widget.
For situations where you want to perform business logic or start a wizard flow the Backoffice Framework supports the actions concept. Similar to widgets actions consist of a view that can be just a linked text or even a button and logic that is executed when the action is activated. It is possible to even use the scripting functionalities of the Platform.
Main Navigation
As one application never fits on one screen the Backoffice Framework supports structuring the application into perspectives and sub-perspectives. To access the specified perspectives and sub-perspectives the Backoffice Perspective Chooser widget is used in the default setup of the backoffice application. Any widget developer can easily create a custom navigation widget and overwrite the default application setup from within a custom backoffice extension.
Set of Default Layouts
Composing a perspective always requires positioning the widgets within the available viewport. To support this, the Backoffice Framework provides some predefined layouts you can use. As a layout is also just a widget in itself adding custom layouts is as easy as adding a custom widget to the widget library.
Widget Communication
Very often what is displayed in one widget depends on an action performed in another widget. For example, you select a product in a list. Based on the selected product a chart widget displays the sales volume of that product compared with the average of all products of the same category. To support this kind of communication between widgets the Backoffice Framework provides the socket connection concept.
Configurable Wizards
An application developer can design a wizard just by configuration and connect it to an action which can then be reused throughout the whole application. For more information, see the Creating a Configurable Flow Wizard Widget.
Configure the Application
Central Configuration Repository
The wiring of all the widgets and the structure of the backoffice application is merged for all extensions based on the ybackoffice template in the widget.xml file. Additionally, the application developer can configure the layout and behavior for every widget instance in the application based on the documented configuration parameter for each widget type in the cockpit-config.xml file. For example, which tabs are shown for a given Type of the SAP Commerce Cloud Type System and how the attributes are grouped into sections and placed on panels can be done just by configuring an instance of the Editor Area widget.
Role Based Layout
For every widget instance, the application developer can configure a list of authorities that are required to access this widget instance. Furthermore in the cockpit-config.xml file the configuration for a widget instance or for a configurable wizard can differ for different authorities. This makes it easy for the application developer to create a custom experience for different user personas accessing the backoffice application.
Why Another UI Framework?
|
Pros |
Cons |
|---|---|
|
The SAP Commerce Cloud Type System is fully integrated in the Backoffice Framework. See Cockpit Data Integration Layer of the Backoffice Framework document. |
No full flexibility in using web technologies of your choice if you want to reuse existing widgets, actions, and layouts |
|
You can build and add to an application without having to care about authentication, navigation, a role concept, and many other things |
For a transition time, there will be two UI framework technologies that need to be supported and partners need to have the skills to customize |
|
A whole set of predefined widgets, actions and layouts you can use to create your custom backoffice application just by configuration |
Advanced customization requires good knowledge of coding in Java and of the Spring Framework |
|
All tooling will be available in one application and it will be much easier to reuse UI components and build up customized or new perspectives |
|
|
Leverage the power of the existing widgets and layout with built-in responsiveness |
|
|
Testability: you can test widgets and other components in isolation from rest of the system |
|
|
Growing community of experts |
Backoffice Framework Architecture
SAP Commerce Cloud introduces Backoffice Framework: a widget-based framework that enables you to easily create business tools customized for specific organizational roles. The framework consists of a single Web application that consists of cockpit widgets, which can be deployed and configured at runtime.
Backoffice Framework uses the ZK Framework as a basis. The ZK version used in the current SAP Commerce Cloud:
|
ZK Version |
|---|
|
8.6.3 |
What is Backoffice Framework?
Backoffice Framework is a UI framework built in order to be a foundation for the third generation SAP Commerce Cloud backoffice tooling. It has been developed from scratch taking into account our experiences with the previous cockpit framework as well as feedback from partners.
What Should It Do?
The goal of Backoffice Framework is to provide a powerful framework, which allows you to:
- Create high-performance Web-based backoffice applications in an easy way
- Reuse the components between applications
- Extend and customize your application
- Configure your application according to your needs
- Test it in an effortless way
From the architecture point of view, the key features are:
- High modularity
- Loose dependency between components
- Clear application composition
- Clearly defined communication channels
Approach
A new Backoffice Application has been created basing on Backoffice Framework to achieve the mentioned goals. The application is composed of building blocks of different shapes and different functionalities. By putting them together, you can build different applications with a set of functionalities that you need. Is a functionality missing in the out-of-the-box package? You can create your own building block that provides it and place it easily in your application. What is more important, the building block you create can be shared and reused in other applications as well.