Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

57
8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1 http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 1/57  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1  Applies to: SAP enhancement package 1 for SAP NetWeaver Composition Environment 7.1 For more information, visit the Business Process Modeling homepage. Summary Within this document in exercise A, you are going to sketch the process diagram for the Investment Approval Process within process composer. This process contains human activities, automated activities, events, gateways. Later on you are going to maintain the technical properties and make this process run in exercise B. Download the source files from here.  Author:  Jie Deng Company: SAP AG Created on:  28 November 2008  Author Bio Jie Deng is a Product Manager in SAP AG Germany. In this role, Jie focuses on the area of Business Process Management, Business Activity Monitoring as well as process monitoring and reporting . She is responsible for the rollout to customers as well as roll-out within the organizations. Jie has been working for the SAP organization for eight years and has been part of the Product Management Group in the SAP NetWeaver BI area for six years. In 2006, Jie joined the Product Management Group in the BPM area. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2008 SAP AG 1

Transcript of Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

Page 1: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 1/57

 

Building a Composite BusinessProcess from Scratch with SAPNetWeaver BPM – Guide 1

 Appl ies to:

SAP enhancement package 1 for SAP NetWeaver Composition Environment 7.1For more information, visit the Business Process Modeling homepage.

Summary

Within this document in exercise A, you are going to sketch the process diagram for the Investment ApprovalProcess within process composer. This process contains human activities, automated activities, events,gateways. Later on you are going to maintain the technical properties and make this process run inexercise B. Download the source files from here.

 Author :  Jie Deng

Company:  SAP AG

Created on: 28 November 2008

 Author Bio

Jie Deng is a Product Manager in SAP AG Germany. In this role, Jie focuses on the area ofBusiness Process Management, Business Activity Monitoring as well as process monitoringand reporting . She is responsible for the rollout to customers as well as roll-out within theorganizations. Jie has been working for the SAP organization for eight years and has beenpart of the Product Management Group in the SAP NetWeaver BI area for six years. In

2006, Jie joined the Product Management Group in the BPM area.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 1

Page 2: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 2/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

Table of Contents

Exercise A: Sketching a Composite Business Process within Process Composer........................................3 

Exercise B: Modeling, Build, Deploy andRun the Composite Business Process with SAP NetWeaver BPM..............................................................15

 

Step 1 — Configurations............................................................................................................................................15 

Step 2 — Edit properties of Process/Pool..................................................................................................................28 

Step 3 — Edit Human Activities.................................................................................................................................30 Step 4 —Edit Automated Activities ............................................................................................................................36 

Step 5 —Edit Start and End Events...........................................................................................................................39 

Step 6 —Edit Data Objects ........................................................................................................................................39 

Step 7 —Edit Mapping ...............................................................................................................................................41 

Step 8 —Edit Condition line .......................................................................................................................................46 

Step 9 —Build and Deploy.........................................................................................................................................48 

Step 10 —Start the Process.......................................................................................................................................50 

Step 11 -- Execute the Process as end user..............................................................................................................52 

Related Content................................................................................................................................................56 

Copyright...........................................................................................................................................................57 

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 2

Page 3: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 3/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

Exercise A: Sketching a Composite Business Process within Process Composer

Within this exercise you are going to sketch the process diagram for the Investment Approval Process withinprocess composer. This process contains human activities, automated activities, events, gateways. You aregoing to maintain the technical properties and make this process run in the Exercise B: Modeling, Build,Deploy and Run the Composite Business Process with SAP NetWeaver BPM.

1. The goal of this exercise is to model

the process flow of the “Investment Approval Process”. The final resultwill look like the one depicted in thefigure to the right.

2. As the first step please open the SAPNetWeaver Developer Studio.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 3

Page 4: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 4/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

3. Once you open the SAP NetWeaverDeveloper Studio, and then pleaseswitch to the ‘Process Composer ’perspective (Window  OpenPerspective Other …; next select‘Process Composer ’ and click ‘OK’).

4. Now you are going to create aprocess composer project. PleaseNavigate to “File  New  Project”.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 4

Page 5: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 5/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

5. Now a Wizard for creating the projectis opening. Please select ‘ProcessComposer DevelopmentComponent’ and then click on ‘Next’.

6. Select ‘MyComponents’ asDevelopment component for processmodeling project. Please click ‘Next’to continue.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 5

Page 6: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 6/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 6

7. Now please enter the name‘bpm160exercise’ for ProcessComposer DevelopmentComponent. Click ‘Next’ to continue.

8. Leave the setting as it is in this stepand click on ‘Finish’ to completecreating process composer

development component.

9. Once you finished step 8, pleasenavigate to Project Explorer . You’llsee that the project

“bpm160exercise” is visible there.Expand the appropriate node.

Page 7: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 7/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 7

10. Now you can create a processright-clicking on the “Processes”node and choosing “

 by

New…” from thecontext menu.

11. Enter the name “Investment Approval Process ” for the processand click on ‘Next’.

Page 8: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 8/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 8

12. Now you are able to create start/endevents from service operations. Youcan also create a pool and define torientation in the diagram. For ourexercise please select ‘Create staand en

he

rtd event from a service

operation’ and ‘Create a new pool ’. As orientation of the pools we choose‘Top to bottom’. Click on ‘Finish’.

13. Now you have created a pool and youcan model your process there. On theright side you can find the palettewhere all the elements which you canuse for modelling processes arelisted.

Page 9: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 9/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 9

14. Right-click on the connection bestart and end event and select‘Delete’ from the context menu. Wewill create new connections

tween

soon.

15. Assign the name ‘Investment Approval Process ’ to the createdpool (just click once into the name

field and adjust the name).

16. Add 2 more lanes to the pool byeither right clicking into the“Investment Approval Process”header area of the process diagramand choosing “Create Lane” from thecontext menu or by choosing theappropriate speed button, whichappears while moving the mousepointer into the same header area.

Name the three lines ‘PurchaseRequester ’, ‘Purchase Manager ’,and ‘ERP’ respectively.

Page 10: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 10/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 10

17. Model the first human activity ‘EnterPurchase Request’ by dragging the

‘ Activi ty ’ speed button for the ‘Start’event into the “Purchase Requester ”lane and choosing “Human” from thecontext menu that pops up once you

inghave released the mouse button.Speed buttons appear while movthe mouse pointer over theappropriate icon (in our case the‘Start’ event) in the diagram.

Page 11: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 11/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 11

18. Model another human activity,connected from the just createdactivity, in the “Purchase Manager ”lane and name it ‘ Approve PurchaseRequest’. In order to achieve this,

drag the ‘ Activi ty ’ speed button ( )into the Purchase Manager’s lane andselect “Human Activit y” from the

context menu that pops up onceyou’ve released the mouse button.

19. Model a gateway for ‘exclusive

choice’. In order to achieve this, dragthe ‘Gateway’ speed button into the‘Purchase Manager ’s lane and select“Exclusive Choice” from the contextmenu that pops up once you’vereleased the mouse button.

Page 12: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 12/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 12

20. Create a new connection from thgateway

eback to the “Enter Purchase

Request” step by utilizing the“Connection” speed button. Drag the

speed button to the node you want aconnection to.

Page 13: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 13/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 13

21. From the gateway create a newautomated activity in the “ERP” laneand name it “Create PurchaseOrder 

”.

22. Move the two automatically createdlabels “ Alternat ive 1” and“ Al ternat ive 2” close to theconnections they are representing(see screenshot).

Page 14: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 14/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 14

23. Rename the alternatives as follows:

odelling environment, click on the

the second label and name it

select the “ Alternat ive 1” label in them“Properties ” tab strip in the windowbelow and overwrite the label’s namewith “Resubmit”. Repeat the step for

“ Approved”

24. Finally connect the automated activitywith the End event.

25. The final result should look like thescreenshot to the right.

Page 15: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 15/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 15

EB

xercise B: Modeling, Bu ild, Deploy and Run the Composite Bus iness Process w ith SAP NetWeaver

iness process. In this chapter you are going to bring all process elementssiness process as well as execute this process as an end user.

1. In exercise A you modeled theinvestment approval process. The

result is shown on the right side.This is the starting point forexercise B.

PM

In exercise A, you sketched the bustogether to a running composite bu

 

Step 1 — Configurations

 A. Define portal user ‘bpm160user’ with appropriate authorizations.

Page 16: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 16/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 16

B. Define AS Java Server an 

1. Open SAP NetWeaverDeveloper Studio a

d Service Registry.

nd go toWindow  Preferences. 

2. Select ‘SAP AS Java’ and addthe system name as the Javaserver. In this exercise we’ll

use localhost  as the AS JavaServer.

Page 17: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 17/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 17

3. Select ‘Service Registry’ andadd ‘localhost’  and portnumber. Click on Apply tosave the change.

C. Create Web Dynpro Projec ssign the dependency to the process modeling developmentcomponent.

kspace

NetWeaverDeveloper Studio:

1. (e.g:C:\workspace_beta20.jdi\LocalDevelopment\DCs\demo.sap.com)

t and a

 

•  Extract WebDynpro Projectinto thecorrespondingfolder:

•  Extract file‘purchaserequest4.zip ’ to the pathof the wor of your

Page 18: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 18/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 18

2. Create Web Dynpro project inSAP NetWeaver DeveloStudio:

3. In NetWeav

per

er DeveloperStudio choose window  Open Perspective  Development Infrastructu re.

4. In the Component BrowserView expand LocalDevelopment  node andMyComponents. Select thenode ‘purchaserequest4’ andwith right mouse click to select‘Sync/Create Project’ ‘Create Project’.

5. After the project is created,you’ll be asked to switch to theWeb Dynrpo perspective toview the Web Dynpro project.Please click on ‘Yes’ to switchto the Web Dynpro 

Perspective. You can also goto Windows  OpenPerspective  Web Dynpro to open Web Dynproperspective directly.

Page 19: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 19/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 19

6. Now you can see that proje‘purchaserecreated. You can expand thenote to see the ComponenViews etc.

ctquest4’ is

ts,

7. Build and Deploy this Webynpro Project on the Server.D

 

Page 20: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 20/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 20

8. Assign Web Dynpro Javacomponent‘purchaserequest4’ as thedependent project for theprocess modelingdevelopment component‘bpm160exercise’. Detailsplease refer to exercise cstep 9.

D. Prepare the Enterprise Service which we’ll use for our scenario.

1. We are going to use a standarddemo enterprise service(PurchaseOrderCreateRequestComfirmationIn ):which is delivered as the part ofSAP NetWeaver CE 7.1.

WSDL:http://<host>:<port>/PurchaseO

rderCreateRequestConfirmationInService/PurchaseOrderCreateRequestConfirmationIn?wsdl 

If you want to get more detailedinformation for this demoEnterprise Service, please refer tothe document:https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e050d6ac-01a7-2a10-f5b3-80e2f137b57b 

Page 21: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 21/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 21

2. Go to Web Services Navigator  and run the following service togenerate the data (Product,business partner etc) for theabove Enterprise Service.ttp://<host>:<port>/NWDemoAdh

minService/NWDemoAdmin?wsdl 

Page 22: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 22/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 22

1” for SellerID2” for BuyID

“ USD” for CurrencyCode“ 10” for ItemID“ PR” for TypeCode“ 1” for Schedule line

 

EventTypeCode“001” for UnitCode

)

3. Now you can test whether thisweb service does work.Please run this service within WebService Navigator.

Please enter the value as listed

below:““

“ HT-1000” for SellerID (Product )“ 10” for simple content(Quantity

 

Page 23: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 23/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 23

If you can see the purchase ordernumber is available within the Result as the screenshot shown on the rightside, that means the web servicedoes work!

E. Check the Service into Service Registry.

In general this step is optional. Since in Exercise B step 4 we’ll learn how to import the EnterpriseService from Service Registry to SAP NetWeaver Developer Studio, we need to first publish this Serviceinto Service Registry.

1. Enter the URLhttp://localhost:50000/rep in your browser to launch theEnterprise Services Repositor Then click on Services Registryand logon as user bpm160user

with pa

y.

ssword welcome123 

2. On the next screen click onPublish.

Page 24: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 24/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 24

3. Enterhttp://localhost:50000/PurchaseOr derCreateRequestConfirmationInService/PurchaseOrderCreateRequestConfirmationIn?wsdl as WSDL URL.

4. EnterPurchaseOrderCreateConfirmationIn as Internal Name andDescription. Continue with a clickon Next.

5. At the Physical System stepselect the Existing System optionand choose the System Name(the system name which youare operating). Then click onNext.

Page 25: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 25/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 25

6. As service state seConfigured and go on with aon the Next button.

lectclick

7. On the next screen selectLifecycleStatus from thedropdown menu.

8. Then choose released and clickon the Add button. Complete thecreation with a click on Finish.

9. Confirm the operation with a clickon Ok. 

10. Now you should get a messagewhich indicates that the servicewas successfully published to theServices Registry.

Page 26: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 26/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 26

11. Finally search for*purchaseorder*, the result

side.

should look like the screenshot ashown on the right s

 

F. Define Logical Destination.

1. Enter the URLhttp://localhost:50000/nwain your browser to launch theNetWeaver Administrator .

2. Select SOA Management andclick on Destination TemplateManagement to start define thedestination for web service.

3. Select New to create a LogicalDestination for ServicePurchaseOrderRequestCon

 firm

ationIn.

Page 27: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 27/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 27

4. Type the following data into thewizard and then click Next:Destination Type: WSDLDestination Name:BPM160_Destination (this isexample. You can write anyhere. Later on you will use thisname to define the propertiesautomated activity please see

Step 4 

anname

of

5. tion andSelect HTTP Authenticachoose the option ‘UserID/Password(Basic)’.Click on button Details tocontinue.

6. enterd password (any

user which has the administrationauthorization on the server. In ourexample we can useBPM160user/welcome123).

In the Details window pleasethe user name an

7. Leave other settings as they areand click on ‘Finish’ to completecreating the logical destination.

Page 28: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 28/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 28

Step s/Pool

1. the

and youare able to edit its properties.With the tab ‘ Appearance’ youcan hide e.g. data object in thegraphical processrepresentation. In this example,select all of the ‘Level of Detail’options.

2 — Edit properties of Proces

Maintain the properties ofpool:Click anywhere on the whitespace of the process

2. Maintain the properties of theprocess:Focus on the process (byclicking on it in the headersection containing the processtitle ‘Investment ApprovalProcess’. Right click and select‘Properties ’ from the context

which is modeled within thispool, select the option ‘Makethis pool active’.

menu. Now you are able to see

the properties window of theprocess.

 As you are going todeploy/execute the process

3. Define the Administrators forthis process:Select tab ‘ Administrators’ inthe ‘Properties ’ window. PressButton ‘Choose’ to select anadministrator.

4. In the dropdown box on theupper left side select “User ”.

Enter username “bpm160use

in the appropriate input field andpress the “Search” button in theupper right corne

r ”

r of the dialogbox.

bpm160user/welcome123 tolog on to the Java server).

(Use

Page 29: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 29/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 29

Hint: As pre-requisite youneed to create the userbpm160user with theappropriate authorizations(…..) on the portal.

5. From the “Search Results” listselect user ‘bpm160user ’ andclick on ‘ Add ’. Next click on‘OK’ to close the dialog box.

6. Finally we have to adapt a usertext. Therefore select the ‘UserTexts’ tab in the ‘Properties ’window. Replace the defaultvalue for the ‘Subject’ field to‘Investment ApprovalProcess’. During runtime thecontents of this field will beshown to navigate to theprocess viewer.

7. Save your changes.

Page 30: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 30/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 30

Step 3 — Edit Human Activities

1. Next we want to maintain theproperties of the human activity‘Enter Purchase R

 equest’.

Select  the appropriate step in theprocess flow and choose the‘Properties ’ tab in the pane below

the process flow. The propertiestab has itself tabs at the left side.

o theromtab

log

 As we want to assign a task tstep, click on the ‘Task’ tab. Fthe drop-down list of the ‘Task’select ‘New…’. The ‘New Task’dialog pops up. As name assign‘Enter Purchase Request’ andclick on ‘Finish’ to close the diabox.

Page 31: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 31/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 31

2. As result a link appears in front ofthe task’s name (sClick on the link ‘Task’ tothe task editor winopens in the main area of thedeveloper studio.

ee screenshot).get into

dow which

3. Click on the tab ‘Overview’.Navigate to the section ‘UserInterface’ in the middle of thescreen and click on ‘Choose’ toassign the related Web Dynpro UIto this task. The “Select a UIComponent” dialog pops up.

Note: In order to assign WebDynpro UIs to tasks, some

bned

example). For this exercise theseprerequisites are fulfilled in yourproject already. You’ll learn how toprepare a standard web dynpro tobe consumed by SAP NetWeaverBusiness Process Management in

Exercise C.

prerequisites have to be fulfilled,

e.g. a dependency between theprocess modeling project and WeDynpro project has to be assigas well as making standard webDynpro UIs be consumable byGalaxy (the Web Dynpro UIs needcompletion and error events for

4. As the first step select thedependent Web Dynpro project(purchaserequest4) and its publicpart ( API). Click ‘Next’ to continue.

Page 32: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 32/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 32

5. The Web Dynpro project contains2 screens. Select‘PurchaseRequest ’ asComponent and‘PurchaseRequestInterfaceVieas the related interface view andthen click butt

w ’

on ‘Next’ to continue.

6.

has

Select ‘Complete’ as completion

event and click button ‘Finish’ tocomplete this wizard. Theassignment of the completionevent will help the process runtimelater to recognize when the UIbeen finished by the end user.

7. As result you can see the WebDynpro UI is assigned to this task.

8. Click the tab ‘Roles’ to get into throle editor. In se

” press

ection “Potential

Owners  button ‘Choose’ toassign the correct user/role/groupto this particular task.

Page 33: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 33/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 33

9. Assign the user ‘bpm160user ’this task. Save your changes by

clicking on the disc icon (

to

).Close the ‘Enter PurchaseRequest’ tab by clicking on thecross of the tab strip (seescreenshot).

10. Next maintain the human activity‘ Approve Purchase Request’ .For this jump back to your processflow and select the appropriatestep in the flow. In essence we will

repeat the steps we have executedalready for the human activity‘Enter Purchase Request’. Fordetails refer back to the descriptionabove. Go to the ‘Properties ’window and create a task with thename ‘ Approve PurchaseRequest’.

11. Click on the link in front of thetask’s name to get into the task

editor window.

Page 34: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 34/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 34

12. Click tab ‘Overview ’ anselect ‘Choose’ in the ‘UserInterface’ sectrelated Web Dynpro UI to this task.

d then

ion to assign the

13. Select the dependent Web Dynproproject (purchaserequest4) andits public part ( API). Click ‘Next’ tocontinue.

Page 35: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 35/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 35

14.

‘ ApprovePurchaseInterfaceView ’. Click on button ‘Next’ to continue.

Select the component‘ ApprovePurchase’ and theinterface view

15. Select ‘Complete’ as thecompletion event and press button‘Finish’ for completing this wizard.

16. As result you can see that thecorrect Web Dynpro UI isto this task

assigned.

17. Repeat steps 5 and 6 to assignuser ‘bpm160user ’ to this task.

Note: Based on the businessscenario this task should beassigned to the purchasemanager, but in this exercise alltasks will be assigned to the sameuser to simplify the runtimeexecution.

Page 36: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 36/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 36

Save your changes by clickin

the disc icon (

g on

).Close the‘ Approve Purchase Request’ tab.

Step 4 —Edit Automated Activities

. This step is about assigning a

service to the automatedactivity. Before we are able todo so, we need first import thisservice into SAP NetWeaverDeveloper Studio.

Navigate to ‘Project Explorer’ and expand node ‘processmodeling’   ‘service

1

interfaces ’ ‘WSDL Files’ andright mouse click to select thecontext menu ‘Import WSDL’.

2. In this exercise an Enterprise

‘Next’ tocontinue.

Service which is available inService Registry should beimported into SAPNetWeaver Developer Studio.Therefore please select theoption ‘Service Registry’ in thewizard and click on

3. Log into the Service Registrywith bpm160user/welcome123and then click on ‘OK’ tocontinue.

Page 37: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 37/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 37

4. Once connected to Service

perform free text search.Click ‘Next’ to continue.

Registry, you are able to find outthe appropriate EnterpriseService via classifications orfree-text search. In this exerciseplease type ‘purchaseorder*’ to

5. Select the service definitions asthe screenshot shown on theright sideand select the related endpo

 Click ‘Next’ to continue.

ints.

6. In this step the service group willbe created. Leave the defaultsettingas it is and press button ‘Finish’

to import the WSDL file intoDeveloper Studio.

Page 38: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 38/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 38

7. Once the WSDL is successfullyimported, you will see the

’.service definition and operationunder node ‘Service Interface

 

8. Once the service is available inthe SAP NetWeaver DeveloperStudio, you are able to assignthis service to the automatedactivity. Use a right mouse clickto focus on the automatedactivity ‘Create PurchaseOrder ’ and select ‘Properties ’from the context menu to access

.the ‘Properties ’ window

 

9. Select the ‘Interface’ tab on theleft side of the ‘Properties ’window. Click on the ‘ServiceInterface’ drop-down list andselect‘PurchaseOrderCreateService’

om the list. This entry appearsfr due to the fact that the servicewas imported to the projectbefore!

10. uttondestination’ andcal destination

‘BPM160_Destination’ into theassociated field. For thisexercise the logical destinationhas already been predefined foryou in the SAP NetWeaver

 Administrator.

Don’t forget to save all yourchanges!

Next select the radio b‘Use logicalenter the logi

Page 39: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 39/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 39

Step 5 —Edit Start and End Events

1. Make sure that the interfacesfor the Start and End event ofyour process are assigned tothe ‘DefaultService’. You canverify this by selecting the Start

(End) event in the process flowand switching to the‘Properties ’ window below.

Hint: you have already donethis setting in exercise A.

Step 6 —Edit Data Objects

structure defined in an XSD file. XSDfiles are imported by right-clicking onnode ‘Process Modeling  DataTypes  XSD Files’ in the ProjectExplorer and selecting ‘Import XSD…’from the context menu. An appropriatewizard will open which guides youthrough the next import steps.

For this exercise please import file‘processcontext ’ which is alreadyprovided to you.

1. Defining Data Types:During the execution of a process datacan be stored in the so-called processcontext. In the modeling environment ofSAP NetWeaver BPM the processcontext is represented by a data

Page 40: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 40/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 40

2. After you imported the XSD file to thisdevelopment

component, you’ll see that under Dataprocess modeling

Type  http://www.example.org/approvalprocess 

3. o see the data definition you canTdouble click on the Data type‘InvestmentApprovalProcess’. Thewindow shown in the screenshot willopen. Once finished with investigating

this window, you can close it tocontinue modeling within the processflow.

4. Now drag and drop the dat‘InvestmentAppro

a typevalProcess ’ from

the Project Explorer view (left panel)into the process diagram. In this wayyou add the process context (data type)to our Investment Approval Process.

Page 41: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 41/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 41

Step 7 —Edit Mapping

1. Open the Properties of the first humaactivity ‘Enter Purchase Request’. AInput Mapping is not necessary in thisexample because no parameters will betransferred between start event and thefirst human activity. Therefore

nn

start with

Output Mapping to map the output ofthe first UI (on the left side) to theprocess context (on the right side).

2. You can/should use the functionality of‘ Automated Mapping ’ to map fieldswhich have same names. e.g. you can

drag and drop the node ‘TaskOutput  UIResponse  Requester ’ pemouse click (!!) from the left s

 r rightide

(Outputs of Enter Purchase Request) tothe right side (Process context) andthen select the menu ‘Mapautomatically’.

Page 42: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 42/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 42

3. If you want to map manually, either youdo the same procedure as wasexplained in step 4

 

1 and then selectmenu ‘Create mapping’, or you candirectly drag and drop a particular fieldname from the left side to the right sidewith the left mouse button.

4. Complete the output mapping for‘Requester ’ and ‘Product’. The result isshown as screenshot (Leverage

s will save

a lot of time and effort for yourimplementation project.).

automated mapping functionality asmuch as you can because thi

 

5. Now we would like to assign the actualdate to the ‘orderDate’. To do so,

please double click on the sign

which is in front of ‘orderDate’.

Now the editor window opens.

Page 43: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 43/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 43

6. Open the folder ‘Rules and Functions’and you can find the function ‘current-dateTime()’ as the screenshot shownon the right side.

7. Drag and Drop this function from leftwindow to the right window.

8. After the function appears in thefunction editor, add the bracket ‘()’ afterthe current-dateTime. Now you will see

that the red cross disappears whichmeans that the syntax for this functionnow is correct.

With 5-8 we assigned the current date

essand time to the ‘orderDate’ in proccontext.

9. inue with the input

’. For thisthe human

est.

Mapping .

Next we will contmapping of the next human activity

se Request‘ Approve Purchaopen the properties of activity ‘Approve Purchase Requ

Navigate to tab Input

Edit the input mapping as is shown inthe screen shot on the right side.

Page 44: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 44/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 44

10. Navigate to tab Output Mapping.

Edit the output mapping for the humanactivity ‘ Approve Purchase Request’  as is shown in the screen shot on theright side.

11. Open the property window for theautomated activity ‘Create PurchaseOrder’.

Navigate to tab Input Mapping. Pleasemap the following fields from processcontext to Input fields for CreatePurchase Order (see screen shots onthe right side).

12. For other mandatory input fields, pleaseadd the constant via double click on the

object sign (e.g.  )and then type “ ”  and a particular value.

Please do the following constantmapping:

“ 1” for SellerID“ 2” for BuyID“ USD” for CurrencyCode“ 10” for ItemID“ PR” for TypeCode“ 1” for Schedule line  EventTypeCode“ 001” for UnitCode

Don’t forget to save all your changes!

Page 45: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 45/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 45

Page 46: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 46/57

Page 47: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 47/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 47

3. Next we move to the secondon

ext

gate ‘Resubmit’. Right clickthe connection and select‘Properties ’ from the contmenu.

4. On the ‘Condition’ tab edit thecondition line for the‘Resubmit’ gate as follows:Open the folder ‘Rules andFunctions ’ on the right side.Drag and drop the function‘not’ (it’s located in the

package‘sap.com/bpem/glx/built-in/boolean’) to the left side (intothe editor) for editing

t ‘(‘ after the

conditions. After the functionappears in the editor, add anopening brackefunction’s name (seescreenshot).

5. Next drag and drop thecontext data ‘orderApproved ’into the condition editor andplace it after the openingbracket. Finally add the closingbracket ‘)’ (see screenshot).Don’t forget to always click on‘save’ to save your condition.

In essence this conditionmeans: if the ‘orderApproved’variable coming from theprocess context is false, thenthe ‘Resubmit’ connection has

to be executed. Negating it viathe “NOT” function makes thecondition of the gate to “true”and therefore it fires.

Save your changes!

Page 48: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 48/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 48

Step 9 —Build and Deploy

1. Now you are going to buand deploy the proSwitch to the perspectiv‘DevelopmentInfrastructure’.

ildcess.

e

2. In the Component Browserpane on the far left right-clickon the project‘bpm160exercise’(underneath the ‘LocalDevelopment MyComponents’ node) andselect ‘Build…’ from thecontext menu.

Page 49: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 49/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 49

3. In the dialog box that pops upall related projects are listed.Select only the processmodeling project‘bpm160exerciser ’ forbuilding. The Web Dynproproject is already built anddeployed on your server. Clickon ‘OK’ to continue.

4. A dialog will popup and showyou the status of the build.

 At the end you’ll get thesmessage that the build i

successfully running through.

5. After the successful Buildcan start to deploy the projecton the Java server (onceagain right click on the projectand select ‘Deplo

, you

y’ from the

quest4 project isNOT checked in theupcoming ‘Deploy DCs’ dialogbox! Confirm the dialog box byclicking on ‘OK’.

Use‘bpm160user/welcome123’to logon to the Java server incase you are requested toenter the credentials.

context menu).

Double check that thepurchasere

 

Page 50: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 50/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 50

Step 10 —Start the Process

In this section you’ll learn how an admini trator starts the process. In the real business scenario you will have form, Visual Composer UI or any Java Web Dynpro UI) to start the

er Administrator  (Favorites  BPM160  SAPNetWeaver Administrator ) andlogon with the credentials‘bpm160user/welcome123’.

s ea particular user interface (Adobprocess.

1. Once the deployment has beenfinished successfully, open yourbrowser and make use of thepredefined favorite to call theSAP NetWeav

 

2. Click on ‘ConfigurationManagement’ in the first levelnavigation and ‘Processes andTasks’ in the second levelnavigation.

3. Follow the link ‘ProcessRepository’ to get a list of allsuccessfully deployedprocesses.

Page 51: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 51/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 51

4. Select the deployed process‘bpm160exercise’  and its latestversion (it is marked as active inthe ‘Component Versions’section – 2nd table). Select therow of type ‘Process Definition’in the third table (Processes,

Tasks and Rules) on that screenand click on the ‘Start Process’button. A new browser windowopens containing the BPMProcess Start dialog (see nextstep).

5. Select the first row in thert

particular id has been startedsuccessfully.

process table and click on ‘StaProcess’. As result you will seea message at the bottom that aprocess instance with a

Page 52: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 52/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 52

Step 11 -- Execute the Process as e

 

6. In order to execute the processwe have to wait for work itembeing sent out by the processruntime. They will show-up in theUniversal Worklist (UWL) whiccan be accessed via the portal.

Therefore login to the portal via a

nd user

s

h

 

the secondlevel navigation to actually displaythe Universal Worklist.

predefined favorite Favorites BPM160  SAP NetWeaverPortal. As usual enterbpm160user/welcome123 ascredentials.

Click on ‘Work ’ in

 

7. The first task ‘Enter PurchaseRequest’ appears in the Universal

Worklist. If not, please click on therefresh button in UniversalWorklist.

8. Click on the task and you areguided to the user interface for‘Enter Purchase Request’.

Page 53: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 53/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 53

9. Click on the link ‘Investment Approval Process ’ in the headarea of the ‘Enter PurchaseRequest’ screen to open theprocess viewer in a new bro

er

wserwindow, which displays thegraphical representation of the

running process together with theruntime information.10.

ute running process instance

Here you are able to see theactual process information aboth(processor, status, my tasks etc). Close the window to jumpback to the step.

Page 54: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 54/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 54

11. Enter ’HT*’ in the ‘Product ID’ field and ‘*’ in the ‘Description’field of the ‘Product Search’section. Click on ‘Search ’ to

e

 A confirmation dialog pops uptelling you that the task has beenfinished successfully. Click on‘Close’ to close the dialog box

initiate the product search.

From the result table select any

product which is listed in the tabland fill the mandatory fields‘Quantity’ and ‘Comment’. Clickon ‘Submit’ to finish this task.

12. Refresh the UWL: click on the -button and select ‘Refresh’ fromthe menu.

Page 55: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 55/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 55

13. The second task is appearing inthe UWL.

14. Click on the task ‘ ApprovePurchase Request’ to access thesecond task UI. You can notice

that the data from the first task(product id, price, quantity,comments etc) are transferred tothe second task.

15. Fill the field ‘Comment’ and selectthe check box ‘ Approved’. Click

on ‘Submit’ to get to the next stepof the process. Confirm the‘Information’ dialog that pops upby clicking on ‘Close’.

16. If you refresh the UWL this time,no tasks should be displayedbecause both human activitieshave already been completed.

The last activity in our process

was an automated activity tocreate the purchase order locallyin the database.To check whether this purchaseorder is created in the database,we first need to know thepurchase order number.Therefore we

The last activity in our process was an automated activity to create the purchase order locally in thedatabase. To check whether this purchase order is created in the database, we first need to know thepurchase order number. Therefore now we start the Guide 2 to add the notification screen which includesthe purchase order number as the last step to the investment approval process.

Page 56: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 56/57

  Building a Composite Business Process from Scratch with SAP NetWeaver BPM – Guide 1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

© 2008 SAP AG 56

Related Content

is series, in the Business Process Modeling articles areaSee Guide 2 and Guide 3 of th .

For more information, visit the Business Process Modeling homepage.

Page 57: Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

8/10/2019 Building a Composite Business Process From Scratch With SAP NetWeaver BPM - Guide 1

http://slidepdf.com/reader/full/building-a-composite-business-process-from-scratch-with-sap-netweaver-bpm- 57/57