Skip to Content

Building a Composite Business Process from Scratch with SAP NetWeaver Business Process Management

With this blog you will learn how you can sketch, design, build, deploy and run a composite business process from scratch with SAP NetWeaver Business Process Management. With the provided step-by-step guides and source coding, you are going to build an investment approval process which includes human tasks, SAP Enterprise Service and the integration with a decision table which is provided by SAP NetWeaver Business Rules Management.

 

What are the pre-requisites for implementing this composite business process?

 

Please install the trail version of Enhancement Package 1 for SAP NetWeaver Composition Environment 7.1.

 

What’s the business scenario that you are going to implement?

image

This investment approval process includes:

Human tasks:

Enter Purchase Request

Approve Purchase Request

Purchase Order Confirmation

 

Automated Activities:

Create Purchase Order (Enterprise Service which is delivered by SAP)

Check Amount (Business Rule)

 

 

Which tutorials will guide you step-by-step to implement this scenario?

Following tutorials guide you step-by-step to implement this scenario:

 

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

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, and gateways. You are going to maintain the technical properties and make this process run in exercise B.

Exercise B: You are going to bring all process elements together to a running composite business process as well as execute this process as an end user.

 

Building a Composite Business Process from Scratch with SAP NetWeaver Business Process Management – Guide 2:

This guide explains how to modify an existing Web Dynpro Java user interface so that it can be used within a human activity that is part of an SAP NetWeaver BPM process. Web Dynpro Java is the first user interface technology that is supported in SAP NetWeaver Composition Environment 7.1 EHP1.

 

Building a Composite Business Process from Scratch with SAP NetWeaver Business Process Management – Guide 3:

This guide explains how to create a decision table within the rules composer and expose this business rule as web service and integrate it into business process. During the run time you are able to see how the business rule can control the process flow.

 

Which other information will be helpful for implementing this scenario?

If you want to also test the debugging functionality, please refer to SAP NetWeaver BPM – a sneak preview to process debugging

 

For more information regarding our SAP NetWeaver BPM component visit our main SDN page: SAP NetWeaver Capabilities – Business Process Management.

27 Comments
You must be Logged on to comment or reply to a post.
  • Hi,

    This is a very interesting blog and guides.  I’m a little confused in guide 1.  In Exercise B, there is a mention of ‘purchaserequest4.zip’ file.  How is this file created?

    Thanks,
    Sumith

  • Hi,

    if I want to import your Web Dynpro project “bpm160_excercise_wd” I got issues. The project is imported but the application- and componentsfolder are empty. Perhaps there is an problem with the provided source files. Can you please provide for bpm160_excercise_wd a sca file or give an instruction how to import this project.

    Thanks a lot,
    Michael

    • Hi Michael,

      Please follow the Instructions below to create this web dynpro project. You can also see the step-by-step instructions with detailed screen shots in Guide 1 (https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0886795-eaa0-2b10-7c97-d81b97372327 : step 1 Configuration –> C. Create Web Dynpro Project):
      1. Extract the Web Dynpro project to the path of your workspace (e.g: C:workspace_beta20.jdiLocalDevelopmentDCsdemo.sap.com)
      2. In NetWeaver Developer Studio choose window –> Open Perspective –> Development Infrastructure
      3. In the Component Browser View expand node ‘Local Development’ and ‘MyComponents’.  Select the node ‘bpm160_exercise_wd’ and with right mouse click to select ‘Sync/Create Project’–>‘Create Project’.
      4. After the project is created, you’ll be asked to switch to the Web Dynrpo perspective to view the Web Dynpro project. Please click on ‘Yes’ to switch to the Web Dynpro Perspective. You can also go to Windows –> Open Perspective –> Web Dynpro to open Web Dynpro perspective directly.

      If this Instructions does not work for you, please let me know.

      Kind Regards
      Jie Deng
      SAP NetWeaver Product Management BPM

      • Hi it doesn´t work for me. I think the problem is root folder isn´t like _comp. It seems to be an wdpro application not in Software component an in NWDS the wdpro applications not within DC have disappeared
  • Jie thanks for all the valuable learning points in the blog. Contrary to your instructions I tried your process in the 7.1.1 beta version and when the build option for the process is run the following error occurs:-
    Error: C:\Users\i047861\NWDSworkspace.jdi\LocalDevelopment\t2\18018A0000142E9A8DAFB5FD2ACF8B4B\default\logs\unittesting_postbuild.xml:128: Warning: Could not find file C:\Users\i047861\NWDSworkspace.jdi\LocalDevelopment\t\18018A0000142E9A8DAFB5FD2ACF8B4B\classes to copy.
    Is this as a result of not using the trial version or have I done something else wrong?
  • Hi, Jie

    Again, thanks for your effor for this. Execrise 2, Step 10 Add the human Activity to view the nofication to your process. step 15. Under Input Mapping,

    DO_InvestmentApprovalProcess/PurchaseOrder siad.
    Expected : PurchaseOrder, ns=http://demo.sap.com/bpm160_execrise_wd/PoNoitify.com

    Found : Purchase Order http://www.example.org/Approval process.

    Based on your screen shot, I am only see the screen Purchase Order http://www.example.org/Approval process.

    which I guess, Process Contet must be point out toe the http://www.example.org/Approval process,but somehow it points to a new crated bpm160_exercise.

    I wonder where I can fix this wrong expression.

    B. Rgds

    Chan Jin

  • Hi jie

    I have installed successfully the SAP NetWeaver Composition Environment 7.1 and I am trying to follow your tutorials (Guide 1)

    But ( as i am a newbie in SOA and BPM) i am lost with the point C (exercice B) when you specify that we have to extract file “purchaserequest4.zip” !
    i can’t find this file and so i am locked at the moment
    could you help me ?
    Xavier Petit from SAP FRANCE (xavier.petit@sap.com)

    • Hi Jie,

      I tried to download the purchaserequest4.zip file from the link in your guide 1 but it is giving me an error. Could you please help me how I can download this document?

      Thanks in advance.

      Ram

      • Hi Ram,

        the link https://sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e06ca88c-79a6-2b10-d29e-ebd8a1e69279 to the ZIP file “Building a Composite Business Process from Scratch with SAP NetWeaver BPM_Source Files.zip” in the first guide works for me. It includes the “purchaserequest4.zip” file. While extracting the “purchaserequest4.zip” file, I got two warnings but they haven’t blocked me.
        Please, note that the sources are provided as DCs. To import them, unpack the ZIP files to your local workspace and refresh your Development Infrastructure perspective.

        Please, let me know if you have still problems with the link.

        Regards,
        Birgit

        • Hi Birgit, I managed to download the file but it seems to be damaged, when upacking it says “unexpected end of file or unknown format”. Could you mail it to me?
          Thanks in advance und Schoenes Wochenende
          Michael Meissner
        • Hi Birgit, I managed to download the file but it seems to be damaged, when upacking it says “unexpected end of file or unknown format”. Could you mail it to me?
          Thanks in advance und Schoenes Wochenende
          Michael Meissner
        • Hi Birgit, I managed to download the file but it seems to be damaged, when upacking it says “unexpected end of file or unknown format”. Could you mail it to me?
          Thanks in advance und Schoenes Wochenende
          Michael Meissner
      • Hi Jie,
        I managed to download the zip file “Building a Composite Business Process from Scratch with SAP NetWeaver BPM_Source Files.zip” but it seems to be damaged, when unpacking it says “unexpected end of file or unknown format”. Could you mail it to me?

        Thanks in advance und Schönes Wochenende
        Michael Meissner

  • Unfortunatly, i am not succesful in building my
    bpm160 process (step 9 p 48)
    i got the message error “Build stopped due to an error: Constraint checking failed”

    I found also 2 errors at the investment approval  process
    FIRST  MESSAGE : ” active pool “investment Approval Process” must have exactly one end or termination but any End Error Event
    SECOND MESSAGE : Active pool “Investment Approval Process” must have exactly one Start Event.     

    have you any idea that could help me (sorry i am a real newbie

    thanks

  • Hi Jie,

    I am following your tutorial. I have deployed a purchaserequest4 webdynpro project which is provided by you in the guide 1. The interesting thing is I do no find any DC when I go to reference it in the Process Composer Perspective. What is wrong with it??? I have tried to make a symple webdynpro project and saved it, deployed it, just to see whether any webdynpro DC in the process composer perspective, but I do not see any DC there.

    Can you please help me out??

    Regards,
    Naeem

  • Hello Jie,

    I was able to follow your so far very good blog until step D.2 where I tried to generate the data with the web service generateData. However this service asks for a file I do not know where to find.

    Thank you for your help in advance

    Frank