The app allows you to maintain workstation details of the employee. Currently, "Brisbane, AUS" is the default, which can be adapted via config.js
.
From a technology perspective, the application is written in JavaScript and running on Node.js.
You can either clone the code from GitHub or download and extract the ZIP file provided to your local file system.
- Clone the project:
git clone https://github.tools.sap/refapps/btp-extension-sf-advanced-event-mesh.git
-
Open
aem.json
file from the cloned project. -
Fill all the necessary details
{
"type":"amqp",
"username":"<To be Filled>",
"password": "<To be Filled>",
"url": "<To be Filled>",
"port": 5671,
"management":{
"uri":"<To be Filled>",
"msgVpnName": "<To be Filled>",
"username": "<To be Filled>",
"password": "<To be Filled>"
}
}
-
Fill the
username
,password
andurl
from the AMQP connection details that we copied in Step 7.Note: Fill without
amqps://
prefix for theurl
. -
Fill the management
uri
,msgVpnName
,username
andpassword
from the SEMP REST API credentials that we copied in Step 8.
- Open the
srv/config.js
file and configure the relevant topics.
- Enter the location code to subscribe to the events published from the SAP SuccessFactors for the particular location. For example, to listen to events publish from
Brisbane, AUS
set the topic asemp/transfer/8510-0002
Note: Follow steps 1-4 in the Deploy Your Multi-Target Application (MTA) tutorial.
- From the project root directory, build the MTA module:
mbt build
This creates a mtar
file <xxx.mtar>
in the current folder.
-
Open a command line window.
-
Log in to the account and space:
cf login -sso
or alternatively log in to the account and space using your SAP BTP credentials:
cf login
- Deploy the module to your current Cloud Foundry space:
cf deploy <path/to/mtar>
- The deployment can take some minutes. After successful deployment, check if all the services have been created:
cf services
- In the deploy log, find the URL of your deployed app.
Example URL: facilityadmin-router.cfapps.eu10.hana.ondemand.com
Using the command
CF apps
you can always look up this information.
- Open the URL of your deployed UI application in a browser.