Investment Approval Process Reference Scenario
This documentation provides information about the SAP NetWeaver BPM reference scenario Investment
Approval Process. With the example the user can see the process execution and implementation sources
of the Composition and Business Process application development.
Investment Approval Process 2012
Copyright
© Copyright 2012 SAP AG. 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 AG. The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix, i5/OS, POWER, POWER5, OpenPower and PowerPC are trademarks or registered trademarks of IBM Corporation.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.
MaxDB is a trademark of MySQL AB, Sweden.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
Investment Approval Process 2012
Table of Content
THE BUSINESS SCENARIO DESCRIPTION ... 4
APPLICATION EXECUTION AND PROCESS MONITORING ... 5
I. Start Process in Web Service Navigator ... 5
II. Process Monitoring ... 12
APPLICATION CONFIGURATION AND SOURCES REVIEW ... 13
I. Configuration steps done for having application running ... 13
II. Application Souces Review ... 14
Investment Approval Process 2012
THE BUSINESS SCENARIO DESCRIPTION
ITelO is a high tech company manufacturing Laptops, Mobile Phones and PCs and other high tech products. Rudolf Platte, who is working in the Production department frequently orders new tools, machines and supplies. The order is filed via paper form and then sent to the Purchasing Department. For orders exceeding a certain spending limit, an approval by Antonio Lombardo, the Head of Purchasing, is required. Once approved, the order will be sent to the supplier via fax or email. The whole process currently takes up to two days.
Jan Schulz, the Head of Production, sees potential to improve the order process. He wants the order to be sent to the supplier at the very same day so the supplies will arrive the next morning.
SAP NetWeaver Business Process Management (BPM) enables you to model, connect, compile, deploy, and maintain composite business processes. Investment Approval process demonstrates simplified implementation of ITelO business case. The role of Product Requestor and Approver are played by AS Administrator.
In the application implementation are used BPM for process management , Composite application framework (CAF) for persisting Purchase Order data, Web Dynpro for User Interfaces, and Composite Designer for maintaining composite application components relations.
Investment Approval Process 2012
APPLICATION EXECUTION AND PROCESS MONITORING
I. Start Process in Web Service Navigator
1. Start a process instance of Investment Approval Process using Web Service Navigator.
You can launch it using the URL
http://<host>:<port>/wsnavig ator or you can go to the SAP NetWeaver Application Server Java start page at http://<host>:<port>/startPage and then click on the “Web Service Navigator” icon.
In case you are asked to login, enter administrator
credentials.
You can start processes using the web service interface that is assigned to its start event.
You can call the web service from Web Service Navigator.
2. Select the service interface to start the Investment Approval Process:
start_IAP_EXC_IF.
You find it using the search
term start* for the Search
Type Provider System.
Investment Approval Process 2012
3. Accept operation startProcess.
4. Enter the input data as
shown in the screenshot.
Investment Approval Process 2012
5. When you are asked for Login Information enter the following:
For Predefined choose:
Endpoint:
“start_IAP_EXC_IFSOA P”, Service:
“start_IAP_EXC_IF”
For Authentication:
HTTP Authentication
For user name and password use the credentials for Administrator user.
6. Check the result. The HTTP
response must be 202
Accepted.
Investment Approval Process 2012
6. Open a web browser and enter the following URL:
http://<host>:<port>/irj
This is the SAP NetWeaver Portal. Make sure that the user has the following roles:
pcd:portal_content/every_use r/general/eu_role
pcd:portal_content/com.sap.p ct/every_user/com.sap.bpem/
com.sap.bpem.roles/com.sap.
bpem.Enduser
7. On the starting page click on “Home” icon and then on “Work” button. Click on universal work list
8. Open Approve Request Task in Demo Dee’s inbox.
In case no entry is shown,
click the Refresh button
( ).
Investment Approval Process 2012
9. The first user interface assigned to the human activity Approve Request opens.
To see the process overview, click on the link Investment Approval Process.
10. The green token indicates where the process currently stands. You can close the Process
Visualization window.
Investment Approval Process 2012
11. Check the approved box and add a comment.
12. Open Confirm PO Creation Task in Demo Dee’s inbox.
Again make use of the Refresh button ( ) if the entry doesn’t appear automatically.
13. The user interface assigned to human activity Confirm PO Creation opens.
Confirm.
Investment Approval Process 2012
14. Open the Service Browser.
Type the following URL in your browser:
http://<host>:<port>/caf.
Click on the Service Browser link. Make sure that the user has
SAP_CAF_DEVELOPER role.
The Service Browser lists all deployed applications created in Composite Application perspective (CAF). You can also test service operations in this view.
15. In the Navigator, you find your business object under application bpmiap.bl.caf PurchaseOrder.
16. You see the details of the last execution.
You can repeat the process execution as now with not approving the request (step 11 do not check option
approved ) In that way the Requestor will have a taks to rework the request before being approved by Approver.
Investment Approval Process 2012
II. Process Monitoring
17. Next, we want to monitor the process instances using Process Management.
Process Management is integrated in SAP NetWeaver Administrator (NWA). To launch SAP NetWeaver Administrator use the following URL:
http://<host>:<port>/nwa or go to the SAP NetWeaver Application Server Java start page at
http://<host>:<port>/startPag e and then click on the SAP NetWeaver Administrator icon.
In case you are asked to login, enter the credentials for NWA administrator.
18. Navigate to Operation Management Processes and Tasks Manage Processes.
19. Use the advanced search to search for the most recent process instance by clicking on the Advanced link in the upper right corner.
For searching process instances set the process instance’s Error Status to OK and the Completed From / To fields to the current date.
Click on Go.
Select the last process instance.
Investment Approval Process 2012
20. On the History tab, you see details of the actions performed on the process instance during its life cycle. It is recommended to set the Show dropdown list to Advanced to see more detailed entries.
APPLICATION CONFIGURATION AND SOURCES REVIEW
I. Configuration steps done for having application running
1. Local Technical System have been created with Web Service type of connectivity and Service Source WSIL ( http://localhost:50000/inspec tion.wsil) in
SOA Management tab
Technical Configuration System Connections
2. SAP_DEFAULT_PROFILE have been assigned for provided web services by
sap.com/bpmiap~bl~caf~ear and sap.com/bpmiap~pr~pm in SOA Management Application and Scenario Communication
Application Communication
Investment Approval Process 2012
3. Service Group
localhost_iap_sg have been Configured for consuming Web Services in SOA Management Application and Scenario Communication
Application Communication
II. Application Souces Review 1.
Unzip and run NetWeaverDeveloper Studio (NWDS) nwds-extsoa-7.3-SP04- PAT0004-win32.zip
2.
Open DeveloperInfrastructure perspective and at Local Development Track select Import SC
Investment Approval Process 2012
3. Browse and Navigate to provided BPMIAP04_0.sca and press Finish.
After the SC import you will see a new BPMIAP Software Component (SC) containing application development components (DCs):
bpmiap – Software Component description DC bpmiap/bl/caf/dictionary – Composite Application Framework (CAF) dictionary project containing Purchase Order DB table definition bpmiap/bl/caf/ear – CAF application enterprise archive project
bpmiap/bl/caf/ejbmodule – CAF EJB project
bpmiap/bl/caf/metadata – CAF metadata project bpmiap/bl/caf/permissions CAF project permissions bpmiap/pr/pm Business Process Management (BPM) project containing process implementation
bpmiap/ui/wd – Web Dynpro project containing application User interfaces
4. Select all Development Components and Create projects
Investment Approval Process 2012
5. You can go to Composition Designer perspective main editor and examine components of Investment Approval Process application relations