Skip to Content

Introduction/ Overview

 

This document is a beginner’s guide for Building & Deploying NWBPM with Human activity steps along with Webdynpro UI. There are no ESR and ID objects created for this scenario.

 

Prerequisites

 

  • SAP NWDS 7.31
  • Administration user on PO 7.31 server to create new users and to deploy a new dc


 

 

Procedure

 

Step1. Create a Development Component

 

(1)  Click on Window -> Open Perspective-> Other -> Composite Designer and click on OK.

 

/wp-content/uploads/2014/07/1_499520.jpg /wp-content/uploads/2014/07/2_499521.jpg

 

(2) Click on File -> New-> Product.

     Enter Name as: BPM_EmpInfo_HumanActivity

Click on Next

 

/wp-content/uploads/2014/07/3_499522.jpg

  

(3)Click on New Software Component

/wp-content/uploads/2014/07/4_499523.jpg

(4) Enter Software Component name as SC_EMPINFO and click on Finish

/wp-content/uploads/2014/07/5_499524.jpg

(5) Uncheck all the other Software Components and check only SC_EMPINFO and then click on Next , the following screen will appear

 

     Click On Next

 

/wp-content/uploads/2014/07/6_499525.jpg

(6) Click on Next


/wp-content/uploads/2014/07/7_499526.jpg

Click on Finish

 

/wp-content/uploads/2014/07/7_499526.jpg

The BPM component will be created as shown

 

/wp-content/uploads/2014/07/8_499528.jpg

 

Step 2. Create a New Process

 

(7)Drag and Drop Process from Right Palette into the Business Component

 

/wp-content/uploads/2014/07/7_499526.jpg

(8) Type “EmpInfo_Process” as name for the new process and then click on “Next”.

     Select “Create a pool with the following names and lanes”

     Enter Pool name as “EmpInfo”

     Enter Lanes “Use1,User2”

     Click on Next

     Leave defaults as it is and click on Finish

/wp-content/uploads/2014/07/8_499528.jpg

 

(9) Double Click on Employee_Process , following screen will appear

 

/wp-content/uploads/2014/07/9_499531.jpg

(10) Select the line between Start and End and delete the link/line

      Create the first Human activity for the “User1” Lane as shown below

 

/wp-content/uploads/2014/07/10_1_499532.jpg /wp-content/uploads/2014/07/10_2_499533.jpg

 

(11) Type the name of the Human activity “Enter Emp Details”.

 

/wp-content/uploads/2014/07/11_499534.jpg

(12) Create one more Human activity

/wp-content/uploads/2014/07/12_499535.jpg

(13)  Move the new Human Activity to the Lane “User2” and type “Display Emp Details” as a name for this activity.

/wp-content/uploads/2014/07/13_499536.jpg

(14)  Connect the Human activity “Display Emp Details” with the End event.

      Save (Ctrl+S).

 

/wp-content/uploads/2014/07/14_499537.jpg

 

Step 3. Create Web Dynpro UIs by UI template

 

In this step you create and assign new User Interfaces, based on Web Dynpro Java, for the human activities.

 

(15)  Remove default task from Human activity “Enter Emp Details”

        Repeat the step for “Display Emp Details”

         Save ALL

/wp-content/uploads/2014/07/15_1_499538.jpg  /wp-content/uploads/2014/07/15_2_499539.jpg

 

(16)  Import the  WSDL by clicking on Service Interface -> Import WSDL

 

/wp-content/uploads/2014/07/16_1_499540.jpg

 

         Check Remote Location/File System and import the WSDL from your desktop and then click on finish

 

/wp-content/uploads/2014/07/16_2_499541.jpg   /wp-content/uploads/2014/07/16_3_499678.jpg

          You can see the following Date types and Service Interface created

 

/wp-content/uploads/2014/07/16_4_499700.jpg

 

(17) Drag and Drop the Data type EmpOnboard_Dt from Project Explorer to Swim Lane User2

 

/wp-content/uploads/2014/07/17_499701.jpg

 

(18)Select process in Project Explorer and right mouse click

     Select Apply Template

 

/wp-content/uploads/2014/07/18_499702.jpg

(19) Select UI Task Generation

      Click Next

 

/wp-content/uploads/2014/07/20_499703.jpg

(20) Fill Display Emp Details and check the checkboxes

 

/wp-content/uploads/2014/07/20_499703.jpg

 

(21) Fill Enter Emp Details and check the checkboxes

      Click Next

/wp-content/uploads/2014/07/21_499705.jpg

 

 

(22) Click Finish and Wait for the wizard to generate the UIs

 

/wp-content/uploads/2014/07/22_499706.jpg

(23) After the successful generation the NWDS will look as follows

 

/wp-content/uploads/2014/07/23_499707.jpg

 

Step 4. Create Users and Grant Access

 

In this step you wo;; create new users . Later on you will assign these users to the swimlanes in BPM. These users will participate in the process and will receive the tasks.

 

(24)  Open SAP NetWeaver Application Server Administration > User Management

         ex: http://<ip>:<port>/startPage

 

/wp-content/uploads/2014/07/24_499580.jpg

 

(25) Create User

 

/wp-content/uploads/2014/07/25_499581.jpg

 

 

(26) For the First UserID type “User1” for Logon ID, type password 123pass, confirm it and type “User1” for the Last Name of this UserID (see the example).               Click “Save” at the end.

      Complete the same for the UserID type “User2”.

 

/wp-content/uploads/2014/07/26_499582.jpg

(27) Following Users will be created

/wp-content/uploads/2014/07/27_499583.jpg

(28)  Assign Users to Roles. Change the Search Criteria to Role

 

/wp-content/uploads/2014/07/28_499584.jpg

 

(29) Search for a Role containing “BPEM” – type for the search criteria *BPEM*. Click on “Go”.

      Click on the displayed Portal Role with description “BPEM End User”.

/wp-content/uploads/2014/07/29_499585.jpg

 

(30) Go to tab “Assigned Users” and click button “Modify”.

/wp-content/uploads/2014/07/30_499592.jpg

 

(31) Search for the “User*” and click on “Go”.

 

/wp-content/uploads/2014/07/31_499593.jpg

 

(32)When found, select all rows .Add UserIDs to the role

 

/wp-content/uploads/2014/07/32_499594.jpg

(33) After the assignment both UserIDs will be displayed on the right side with Assigned Users. Click on Save

 

/wp-content/uploads/2014/07/33_1_499595.jpg  /wp-content/uploads/2014/07/33_2_499596.jpg

 

(34) Search also for the Portal Role “Every User Core Role”. Click on the role.

 

/wp-content/uploads/2014/07/34_499597.jpg

 

(35)Go to tab “Assigned Users” and click button “Modify”. And repeat steps (31),(32) and (33)

/wp-content/uploads/2014/07/35_499598.jpg

 

Step 5.Assign Users to Swim-Lanes

 

(36) Click on Swim Lane User1 and  and select “Potential Users” in Properties tab

        Click on Choose…

 

/wp-content/uploads/2014/07/36_1_499599.jpg

     Search for “User1” , Select User1 added in the last step , Click OK

 

/wp-content/uploads/2014/07/36_2_499600.jpg

 

     Similarly, Select the Task swimlanes User2 and select “Potential Users” in Properties tab

     Click on Choose

     Select User2 added in the last step

     SAVE ALL

 

 

Step 5. Create Mappings

 

(37) Select the Task “Enter Emp Details”> Go to Properties > Output Mapping >Map the fields as shown

/wp-content/uploads/2014/07/37_499601.jpg

 

(38) Select the Task “Display Emp Details”> Go to Properties > Input Mapping > Map the fields as shown . Save (Ctrl+S).

/wp-content/uploads/2014/07/38_499602.jpg

 

 

Step 6.Build & Deploy the process

 

(39) In Process Composer perspective: Build the DC

 

/wp-content/uploads/2014/07/39_499603.jpg

 

(40) Select also the development component of the Web Dynpro Development Component if you want to re-build it and click “OK”.

 

/wp-content/uploads/2014/07/40_499604.jpg

 

(41) In Process Composer perspective: Deploy the DC

 

/wp-content/uploads/2014/07/41_499605.jpg

 

(42) Deployment starts.Log shows the BPM is deployed successfully

 

/wp-content/uploads/2014/07/42_1_499606.jpg

 

/wp-content/uploads/2014/07/42_2_499607.jpg

 

 

Step 7 .Run the process

 

(43) Click on SAP Netweaver Administrator . Search for Process Repository -> Go

/wp-content/uploads/2014/07/43_1_499608.jpg

       Click on Overview

/wp-content/uploads/2014/07/43_2_499609.jpg

       Select the Process “bpm_empinfo_humanactivity ~pr~pm(example.org) ” from the list with Components.

 

/wp-content/uploads/2014/07/43_3_499610.jpg

 

 

(44) Go to Resources of the Component > Processes and Tasks – select the Process Definition “EmpInfo_Process”. Click Start Process.

/wp-content/uploads/2014/07/44_499611.jpg

 

(45) A new pop up appears Click Start Process

/wp-content/uploads/2014/07/45_499612.jpg

 

 

(46) A message for successful process start will appear at the top of the screen.

/wp-content/uploads/2014/07/46_499613.jpg

 

 

Step 8 .Test the Process Behavior with “User1” and “User2”

 

(47)  Log-in to the Portal -> http://<ip>:<port>/irj using User1 and the initial password 123pass.Change the initial password to pass123

 

/wp-content/uploads/2014/07/47_499614.jpg

 

 

(48)A task is already assigned to User1 and is visible in the Task list of his Universal Worklist.

      Click on the Task/ Open the task

/wp-content/uploads/2014/07/48_499615.jpg

 

(49) A new pop up appears .Go to the link of the Process to see where you are on the process flow.

 

/wp-content/uploads/2014/07/1_499520.jpg

 

 

(50) You are on the first Human activity “Enter Emp Details”.

/wp-content/uploads/2014/07/49_499508.jpg

 

 

(51) Enter the Details and click on Approve button

/wp-content/uploads/2014/07/50_499509.jpg

(52) Refresh the Universal Worklist , task will disappear

 

/wp-content/uploads/2014/07/52_499511.jpg

(53) Log-in to the Portal using User2 and the initial password 123pass. Change the initial password to pass123

 

/wp-content/uploads/2014/07/53_499512.jpg

 

(54) The next process task is already assigned to User2 and is visible in the Task list of his Universal Worklist.

/wp-content/uploads/2014/07/54_499513.jpg

 

(55)Go to the link of the Process to see where you are on the process flow. You are on the second Human activity “Display Name Age

/wp-content/uploads/2014/07/55_499514.jpg

(56) BPM UI is now displaying the Emp details values entered by User1 earlier. Click on Approve button

/wp-content/uploads/2014/07/56_499515.jpg

(57) Refresh the list with Tasks in the Universal Worklist of User2 . Task will disappear

 

/wp-content/uploads/2014/07/57_499516.jpg

 

This completes our hands-on scenario 

 

 

 

Regards

Vinay P.

 

 

 

 

To report this post you need to login first.

9 Comments

You must be Logged on to comment or reply to a post.

  1. Gavaksh Saxena

    Nice Blog Vinay. Clear and Detailed. I was trying to test a Human Activity step for so long. I think I have all the details now.

    Thanks a Lot.

    Gavaksh

    (0) 
  2. Rashmi Joshi

    nice blog vinay….

    i have a small dobt here, can you please tell me where this data goes after USER2 approves it?

    thanks & regards,

    rashmi

    (0) 
    1. Vinay P Post author

      Hi Rashmi,

      Thanks …once User2 approves it , the Display task gets closed and it goes to end step there by completing/terminating the BPM process

      Regards

      Vinay

      (0) 

Leave a Reply