Download - SAP HANA Cloud Platform Gamification Service - Exercise 02 - Help Desk Standalone Deployment
SAP HANA CLOUD PLATFORM Gamification Service: Help Desk Standalone Deployment
Michael Ameling, Moya Watson / SAP SE Description In this exercise, we’ll configure an Eclipse project importing the sources for the gamified Help Desk application, deploy it to the SAP HANA Cloud Platform, and configure it to run with your Gamification Service subscription. For more information, see HelpDesk App – Standalone Deployment (SAP Help Portal). In addition, you can listen to the SAP HANA Cloud Platform Episode 5 for an interview with Gamification development manager Michael Ameling. System prerequisites • Installed Eclipse IDE for Java EE Developers • Installed SAP HANA Cloud Platform SDK and SAP HANA Cloud Platform Tools Eclipse plugins
(instructions at https://tools.hana.ondemand.com/#cloud) • Free developer account on Trial instance of SAP HANA Cloud Platform • Firefox or Chrome browser recommended • Gamification Exercise 01 – Onboarding – complete, including:
o Service enabled o Roles assigned o Destination configured
• Recommended "Hello World" exercises on SAP HANA Cloud Platform complete Target group • Application developers • People interested in Gamification in
applications • People interested in the SAP HANA Cloud
Platform
Target group requirements • Basic programming skills • Basic knowledge in using an Eclipse
development environment • Basic knowledge about SAP HANA Cloud
Platform
30 min
Gamification Service: Help Desk Standalone Deployment
Step 1: Configure the Eclipse project
Explanation Screenshot
The Help Desk demo application you receive when you subscribe to the Gamification Service in the SAP HANA Cloud Platform is also available on GitHub: 1. Download a ZIP file of the
sources from GitHub. The link is https://github.com/SAP/gamification-demo-app
2. Extract the archive to your local drive.
Import the sources:
3. In Eclipse, switch to the Java EE perspective.
4. Choose File → Import → Maven → Existing Maven Projects
2
Gamification Service: Help Desk Standalone Deployment
5. Navigate to the folder in which
you extracted the archive, and choose Finish.
Verify project facets:
1. In the Project Explorer, right-click on the helpdesk project and choose Properties from the context menu.
2. Select Project Facets, and if necessary, click Convert to faceted form… to convert your project to a faceted project.
3. In the Project Facets dialog box, ensure that Dynamic Web Module and Java are selected.
4. Click OK.
3
Gamification Service: Help Desk Standalone Deployment
Step 2: Configure the runtime and deploy the demo application
Explanation Screenshot
If you have not already configured your server, set up the Java Web runtime environment now:
5. In Eclipse, choose Window → Preferences.
6. Select Server → Runtime Environments, and click Add…
7. In the New Server Runtime Environment dialog box, select SAP → Java Web, and choose Next.
4
Gamification Service: Help Desk Standalone Deployment
8. Select Use Java Web SDK from the following location, confirm or browse to the location of the SDK, and choose Finish.
9. In the Preferences window, choose OK.
10. In the Project Explorer, right-click on the helpdesk project and from the context menu choose Run As → Run on Server
5
Gamification Service: Help Desk Standalone Deployment
11. Select SAP → SAP HANA Cloud Platform as the server.
12. Configure hanatrial.ondemand.com as the Landscape host and choose Next.
12. Name your application helpdesk, select the Java Web runtime, and confirm all other values.
13. Choose Finish.
6
Gamification Service: Help Desk Standalone Deployment
Step 3: Assign role and launch the application from the HANA Cloud Platform cockpit
Explanation Screenshot
1. In your browser, open your cockpit of the SAP HANA Cloud Platform. The link is https://account.hanatrial.ondemand.com/cockpit
2. Choose Java Applications and you should see the helpdesk application listed (it may not be fully started yet).
3. Once the application is fully started, click on the name of the application.
4. Select Roles, select the helpdesk role, and assign your user to it.
TIP: If you do not see the predefined helpdesk role listed, you may need to restart your server in Eclipse.
7
Gamification Service: Help Desk Standalone Deployment
5. Once the application is in state Started, click on the Application URL to launch the application in a new browser window.
Result: The Help Desk application opens in a new browser window. You can edit and redeploy it from Eclipse.
What's Next? To take it to the next level, proceed to the next Gamification exercise: SAP HCP Gamification 03 – Help Desk Customization.
© 2015 SAP SE or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.
8