Beruflich Dokumente
Kultur Dokumente
Contents
I. Introduction .......................................................................................................................................... 2
II. Integration options ............................................................................................................................... 2
III. Prerequisites ..................................................................................................................................... 3
IV. Required Configuration ..................................................................................................................... 3
Visualization Configuration in the back-end system (specific to SAP Business Workflow) ...................... 3
Target Mapping Configuration in the Launchpad Designer ...................................................................... 5
Embed in Detail View on Task Selection ............................................................................................... 5
Embed in detail view on Open Task action ......................................................................................... 6
External ................................................................................................................................................. 7
V. Handle Routes in the integrated application (Embed integration option) ........................................... 8
Embed in Detail View on Task Selection ................................................................................................... 9
Embed in detail view on Open Task action ............................................................................................. 9
VI. Updating/Refreshing My Inbox from within the integrated application ........................................ 10
I. Introduction
It is now possible to integrate an SAPUI5 Fiori application into My Inbox. Multiple ways of integration are
supported by My Inbox in order to facilitate this.
The goal of this document is to explain in detail, the procedure that needs to be followed, in order to
set-up such an integration.
This table outlines the supported integration types and the corresponding actions that trigger the
integration.
III. Prerequisites
The target SAPUI5 Fiori application must be deployed to the same Front-end server as My Inbox.
A target mapping should be created for this application in the SAP Fiori Launchpad designer.
Follow this link to know how to create a target mapping.
The target mapping defined in the previous step should be mapped to the task for which the
integration is intended. This configuration needs to be done in the back-end.
Note : SAP Business Workflow allows such a configuration via the SWFVISU transaction for a
Task type. See section VI.
This configuration defines the mapping between the task and the target mapping defined for the SAPUI5
application. In order to map a task in My Inbox to the target SAPUI5 Fiori application the transaction
SWFVISU should be used in the SAP Business workflow back-end system. The visualization type used
for this purpose is called Intent-Based Navigation.
The following visualization parameters should be maintained
......
As an example we have the following sample configuration parameters maintained in the visualization:
SEMANTIC_OBJECT: WorkflowTask
ACTION : displayCustomApp
QUERY_PARAM00 :
QUERY_PARAM01 :
The below example displays a mapping between a task with the TaskDefinitionID TS00008319 to an
application with the action displayCustomApp2 and semantic object WorkflowTask
Note : App-speciifc query parameters can be maintained using the QUERY_PARAMXX parameters and
would be passed to the application. In this example we do not maintain any query parameters.
For further information on configuring visualizations for the type Intent-Based Navigation follow this
link.
A target mapping for the target SAPUI5 Fiori application should exist in the Launchpad designer with the
value of the parameter openMode set to embedIntoDetails as follows:
A target mapping for the target SAPUI5 application should exist in the Launchpad designer with the
value of the parameter openMode set to replaceDetails as follows:
External
Cross Application navigation to an external application is triggered on clicking the Open Task button
from My Inbox detail view as shown below. In this scenario the user is navigated away from My Inbox to
the configured SAPUI5 application.
It is recommended that the integrated SAPUI5 fiori Application provides a back button which can be
used to navigate back to My Inbox.
A target mapping for the other SAPUI5 application should exist in the Launchpad with the value of the
parameter openMode set to external as follows:
For this type of integration, the target application needs to associate a parent application to its routes.
This can be done as follows:
In the Component.js file of the target application , following changes are required in the routes:
"routes": [
{
"pattern": "",
"name": "mainView",
"view" : "mainView",
"parent":"cross.fnd.fiori.inbox.Component:detail"
},
{
"pattern": "ItemDetails",
"name": "ItemDetails",
"view" : "ItemDetails",
"parent":"cross.fnd.fiori.inbox.Component:detail"
}
]
For this type of integration, the target application needs to associate a parent application to its
routes.This can be done as follows:
In the Component.js file of customApp, following changes are required in the routes:
"routes": [
{
"pattern": "",
"name": "mainView",
"view" : "mainView",
"parent":"cross.fnd.fiori.inbox.Component:replace_detail"
},
{
"pattern": "ItemDetails",
"name": "ItemDetails",
"view" : "ItemDetails",
"parent":"cross.fnd.fiori.inbox.Component:replace_detail"
}
]
My Inbox provides an API onTaskUpdate that can be used by the integrated application to update the
selected task
As an example, the integrated application can define a button as shown below, on click of which the
method refreshTask is executed.
The refreshTask method uses the My Inbox API to refresh the task in My Inbox. The code snippet is given
below:
refreshTask: function(){
this.getOwnerComponent.getComponentData().onTaskUpdate();
VII. Limitations
Following are the limitations in the UI integration approach defined in this document:
The deep-linking support is only available for Embed in Detail view on Task Selection.
Only one level of deep-linking is supported. That means the deep-linking is not possible once the
user navigates within the target application.
Multiple target mappings being used in this scenario cannot have the same application
associated with it. This creates problems in rendering the correct application.