Create Order Request Project

Learn about step to create Process Designer project for Order Management Application. From ONEWEB Process Designer screen, click Create Project > Create Project Wizard. The Create Project Wizard screen opens.

  1. First step. (Project Name) 1.1 Put "DOC Order Request" at Project Name. 1.2 Click Next

  2. Second step. (Define Business Object) 2.1 Move cursor to "Process Parameter" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens. 2.2 Put "DOCOrderRequestBO" to Name Parameter. 2.3 Click Submit. 2.4 Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens. 2.5 Put "RequestId" to Name Parameter. 2.6 Click Submit. 2.7 Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens. 2.8 Put "Requester" to Name Parameter. 2.9 Click Submit. 2.10 Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens. 2.11 Put "TotalAmt" to Name Parameter. 2.12 Change Parameter type to "Decimal" 2.13 Click Submit. 2.14 Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens. 2.15 Put "Decision" to Name Parameter. 2.16 Click Submit. Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. 2.17 The popup dialog of Parameter Form opens. 2.18 Put "Email" to Name Parameter. 2.19 Click Submit. 2.20 Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Clone Business Object. The same parameters will copy to the right side. 2.21 Click Next.

  3. Third step. (Create Work Party) 3.1 Put "ADMIN WP" to Work Party Name. 3.2 Click Add button. 3.3 Put "BACK OFFICE WP" to Work Party Name of the new record. 3.4 Click Add button. 3.5 Put "AUTHORIZE WP" to Work Party Name of the new record. 3.6 Click Next.

  4. Fourth step. (Create User) 4.1 Put user to Member Id. 4.2 Put user name to Member Name. 4.3 Select Work Party Name. 4.4 Click Add button. 4.5 We can lookup existing user by click button Lookup existing member. 4.6 Follow step 4.1 to 4.4 for all user (All work party must have at least 1 user). 4.7 Click Next.

  5. Last step. (Create Process) 5.1 Put "DOC Order Request" to Process Name. 5.2 Click radio Private. 5.3 Put "Add supplier" to What? 5.4 Put "ADMIN WP" to Who? 5.5 Click Finish.

  6. Project DOC Order Request with process name DOC Order Request created then click Save button.

  7. From Event, drag Start to lane ADMIN WP (in front of activity "Add supplier")

  8. Move cursor to activity "Start" until cursor pointer change to cursor hand (middle right) 8.1. Hold click and move cursor to activity "Add supplier". Link line will appear.

  9. Double click at activity "Add supplier". The property panel will appear. 9.1 At tab "BusinessObject" 9.1.2 Parameter name will default as "DOCOrderRequestBO". 9.1.2 Selected both of Input and Output checkbox. 9.1.3 Click button "Open Mapping Parameter". The screen will redirect to Mapping Parameter screen. 9.1.4 Click line between Input box and Mapping box. The mapping panel will appear. 9.1.5 Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it. 9.1.6 Move cursor to "DOCOrderRequestBO" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear from left side to right side. 9.1.7 Click Save. 9.1.8 Click line between Mapping box and Output box. The mapping panel will appear. 9.1.9 Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it. 9.1.10 Move cursor to "DOCOrderRequestBO" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear from left side to right side. 9.1.11 Click Save. 9.1.12 Click Close. 9.2. Double click at activity "Add supplier" again. 9.3. At tab "Assignment Policy" 9.3.1 Click Setting and change drop down to "Round Robin". 9.3.2 Click Work party name and change Work party name to "ADMIN WP". 9.4. At tab "Load Entity" 9.4.1 Change Entity to "Doc Order Request - Admin". 9.4.2 Change Key to "REQUEST_ID". 9.4.3 Change Value to "${DOCOrderRequestBO.RequestId}" 9.4.4 Click Save Panel.

  10. From Gateway, drag Exclusive to under the activity "Add supplier" 10.1 Double click at Exclusive. The property will appear then change Name to "Admin Decision". 10.2 Click Save Panel. Link line from activity "Add supplier" to gateway"Admin Decision". 10.3 Click button Save.

  11. Prepare Jar file for send email. 11.1 Create java project name "SendEmail". 11.2 Create class "com.email.SendEmail". 11.3 Put below coding to class SendEmail.

    package com.email;
    public class SendEmail {
            public void sendEmail(String requestId, String emailTo){ 
                System.out.println("#######################SendEmail#######################");
                System.out.println("requestId :" + requestId);
                System.out.println("emailTo :" + emailTo);
                System.out.println("Coding to send email here.");
                System.out.println("-----------------------Send Email-----------------------"); 
            } 
    } 

11.4 Export project to SendEmail.jar

12. From Activity, drag Database to begin the gateway "Admin Decision". The new database activity name "Database" will appear then double click it. 12.1 At tab General, change Name to "Find Email". 12.2 At tab Business Object, follow by step 9.1 12.3 At tab Database Parameter. 12.3.1 Select JNDI at Connection Type. 12.3.2 Put "jdbc/application" to JNDI Name. 12.3.3 Select "Select" at Command Type. 12.3.4 Put "select email from wf_ms_employee where employee_id = ?" to Command. 12.3.5 Click button Open Mapping Parameter. The system will redirect to Mapping Parameter. 12.3.6 Click line between Input box and Mapping box. The mapping panel will appear. 12.3.7 Move cursor to "DatabaseDummyObject" and click. 2 icons will appear then click at icon Add parameter. The popup dialog of Parameter Form opens. 12.3.8 Put "employee_id" to Name Parameter. 12.3.9 Click Submit. The new parameter name "employee_id" will appear. 12.3.10 Move cursor to "Requester" at the left side and click. The icon Add to Mapping box will appear then click it. 12.3.11 Move cursor to "employee_id" at the right side and click. 3 icons will appear then click at icon Add to Mapping box. The Confirm Mapping dialog will appear then click Yes. The link line will appear. 12.3.12 Click Save. 12.3.13 Click line between Mapping box and Output box. The mapping panel will appear. 12.3.14 Move cursor to "DatabaseDummyObject" and click. 2 icons will appear then click at icon Add parameter. The popup dialog of Parameter Form opens. 12.3.15 Put "email" to Name Parameter. 12.3.16 Click Submit. The new parameter name "employee_id" will appear. 12.3.17 Move cursor to "email" at the left side and click. 3 icons will appear then click at icon Add to Mapping box. 12.3.18 Move cursor to "Email" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear. 12.3.19 Click Save. 12.3.20 Click Close. The screen will redirect back to the diagram 12.4 Link line from gateway "Admin Decision" to activity "Find Email" and duble click at that line. Gateway parameter will appear. 12.4.1 Put "Reject" to Label. 12.4.2 Click at button Condition. The dialog of Formular Editor will open. 12.4.3 Drag "DOCOrderRequestBO.Decision" to Formular Panel. 12.4.4 Drag "==" to behind "DOCOrderRequestBO.Decision". 12.4.5 Drag "N" to behind "==" and change value to '"02"'. 12.4.6 Click Save. The system will auto generate Condition value. 12.4.7 Click Save Panel.

13. From Activity, drag Java to upper the activity "Find Email". The new java activity name "Java" will appear then double click it. 13.1. At tab General, change Name to "Send Email". 13.2 At tab Business Object, follow by step 9.1. 13.3 At Java Parameter. 13.3.1 Click button Choose Jar then select jar file from stem 12. 13.3.2 Click button Get Class Name. The system will auto populate data from jar file. 13.3.3 Check that Class name is "com.email.SendEmail" and Method name is "public void sendEmail(java.lang.String,java.lang.String)" 13.3.4 Click button Open Mapping Parameter. The system will redirect to Mapping Parameter. 13.3.5 Click line between Input box and Mapping box. The mapping panel will appear. 13.3.6 Move cursor to "RequestId" at the left side and click. The icon Add to Mapping box will appear then click it. 13.3.7 Move cursor to "requestId" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear. 13.3.8 Move cursor to "Email" at the left side and click. The icon Add to Mapping box will appear then click it. 13.3.9 Move cursor to "emailTo" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear. 13.3.10 Click Save. 13.3.11 Click Close. The screen will redirect back to the diagram 13.4 Link line from activity "Find Email" to activity "Send Email"

14. From Event, drag End to behind activity "Send Email" 14.1 Link line from activity "Send Email" to event "End".

15. From Pool/Lane, drag Horizontal to the diagram. The new lane name "Lane" will appear. 15.1 Double click at new lane. The Lane property will appear then change Lane Name to "BACK OFFICE WP" 15.2 Click Save Panel.

16. From Activity, drag Human to new lane under Gateway "Admin Decision". The activity name "Human" will appear then double click it. The property panel will appear. 16.1 At tab "General" 16.1.1 Change Name to "Back Office Process" 16.2 At tab "Business Object" 16.2.1 Parameter name will default as "DOCOrderRequestBO". 16.2.2 Selected both of Input and Output checkbox. 16.2.3 Click button "Open Mapping Parameter". The screen will redirect to Mapping Parameter screen. 16.2.4 Click line between Input box and Mapping box. The mapping panel will appear. 16.2.5 Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it. 16.2.6 Move cursor to "DOCOrderRequestBO" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear from left side to right side. 16.2.7 Click Save. 16.2.8 Click line between Mapping box and Output box. The mapping panel will appear. 16.2.9 Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it. 16.2.10 Move cursor to "DOCOrderRequestBO" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear from left side to right side. 16.2.11 Click Save. 16.2.12 Click Close. 16.3. At tab "Assignment Policy" 16.3.1 Click Setting and change drop down to "Pull". 16.3.2 Click Work party name and change Work party name to "BACK OFFICE WP". 16.4 At tab "Load Entity" 16.4.1 Change Entity to "Doc Order Request - Back Office". 16.4.2 Change Key to "REQUEST_ID". 16.4.3 Change Value to "${DOCOrderRequestBO.RequestId}" 16.5 Click Save Panel. 16.6 Link line from Gateway "Admin Decision" to activity "Back Office Process" and double click at that line. Gateway parameter will appear. 16.6.1 Put "Approve" to Label. 16.6.2 Click at button Condition. The dialog of Formular Editor will open. 16.6.3 Drag "DOCOrderRequestBO.Decision" to Formular Panel. 16.6.4 Drag "==" to behind "DOCOrderRequestBO.Decision". 16.6.5 Drag "N" to behind "==" and change value to ""01"" 16.6.6 Click Save. The system will auto generate Condition value. 16.6.7 Click Save Panel.

17. From Gateway, drag Exclusive to under the activity "Back Office Process" 17.1 Double click at Exclusive. The property will appear then change Name to "Back Office Decision". 17.2 Click Save Panel. 17.3 Link line from activity "Back Office Process" to gateway "Back Office Decision" 17.4 Click button Save. 17.5 Link line from gateway "Back Office Decision" to activity "Find Email" and double click at that line. Gateway parameter will appear. 17.5.1 Put "Reject" to Label. 17.5.2 Click at button Condition. The dialog of Formular Editor will open. 17.5.3 Drag "DOCOrderRequestBO.Decision" to Formular Panel. 17.5.4 Drag "==" to behind "DOCOrderRequestBO.Decision". 17.5.5 Drag "N" to behing "==" and change value to ""02"" 17.5.6 Click Save. The system will auto generate Condition value. 17.5.7 Click Save Panel.

18. From Gateway, drag Exclusive to under the Gateway "Back Office Decision" 18.1 Double click at Exclusive. The property will appear then change Name to "Validate Limit". 18.2 Click Save Panel. 18.3 Link line from gateway "Back Office Decision" to gateway "Validate Limit" and double click at that line. Gateway parameter will appear. 18.3.1 Put "Approve" to Label. 18.3.2 Click at button Condition. The dialog of Formular Editor will open. 18.3.3 Drag "DOCOrderRequestBO.Decision" to Formular Panel. 18.3.4 Drag "==" to behind "DOCOrderRequestBO.Decision". 18.3.5 Drag "N" to behind "==" and change value to ""01"" 18.3.6 Click Save. The system will auto generate Condition value. 18.3.7 Click Save Panel. 18.4 Click button Save.

19. From Activity, drag Human to lane "ADMIN WP" behind activity "Find Email". The activity name "Human" will appear then double click it. The property panel will appear. 19.1 At tab "General" 19.1.1 Change Name to "Purchase Order" 19.2. At tab "Business Object" 19.2.1 Parameter name will default as "DOCOrderRequestBO". 19.2.2 Selected both of Input and Output checkbox. 19.2.3 Click button "Open Mapping Parameter". The screen will redirect to Mapping Parameter screen. 19.2.4 Click line between Input box and Mapping box. The mapping panel will appear. 19.2.5 Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it. 19.2.6 Move cursor to "DOCOrderRequestBO" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear from left side to right side. 19.2.7 Click Save. 19.2.8 Click line between Mapping box and Output box. The mapping panel will appear. 19.2.9 Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it. 19.2.10 Move cursor to "DOCOrderRequestBO" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear from left side to right side. 19.2.11 Click Save. 19.2.12 Click Close. 19.3 At tab "Assignment Policy" Click Setting and change drop down to "Pull". Click Work party name and change Work party name to "ADMIN WP". 19.4 At tab "Load Entity" 19.3.1 Change Entity to "Doc Order Request - Admin PO". 19.3.2 Change Key to "REQUEST_ID". 19.3.3 Change Value to "${DOCOrderRequestBO.RequestId}" 19.5 Click Save Panel. 19.6 Link line from Gateway "Validate Limit" to activity "Purchase Order" and duble click at that line. Gateway parameter will appear. 19.6.1 Put "Normal Approve" to Label. 19.6.2 Click at button Condition. The dialog of Formular Editor will open. 19.6.3 Drag "DOCOrderRequestBO.TotalAmt" to Formular Panel. 19.6.4 Drag "<=" to behind "DOCOrderRequestBO.TotalAmt". 19.6.5 Drag "N" to behind "<=" and change value to "40000" 19.6.6 Click Save. The system will auto generate Condition value. 19.6.7 Click Save Panel. 19.7 Link line from activity "Purchase Order" to activity "Find Email"

20. From Pool/Lane, drag Horizontal to the diagram. The new lane name "Lane" will appear. 20.1 Double click at new lane. The Lane property will appear then change Lane Name to "AUTHORIZE WP". 20.2 Click Save Panel.

21. From Activity, drag Human to new lane. The activity name "Human" will appear then double click it. The property panel will appear. 21.1 At tab "General" 21.1.1 Change Name to "Authorize Process" 21.2 At tab "BusinessObject" 21.2.1 Parameter name will default as "DOCOrderRequestBO". 21.2.2 Selected both of Input and Output checkbox. 21.2.3 Click button "Open Mapping Parameter". The screen will redirect to Mapping Parameter screen. 21.2.4 Click line between Input box and Mapping box. The mapping panel will appear. 21.2.5 Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it. 21.2.6 Move cursor to "DOCOrderRequestBO" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear from left side to right side. 21.2.7 Click Save. 21.2.8 Click line between Mapping box and Output box. The mapping panel will appear. 21.2.9 Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it. 21.2.10 Move cursor to "DOCOrderRequestBO" at the right side and click. The icon Add to Mapping box will appear then click it. The Confirm Mapping dialog will appear then click Yes. The link line will appear from left side to right side. 21.2.11 Click Save. 21.2.12 Click Close. 21.3 At tab "Assignment Policy" 21.3.1 Click Setting and change drop down to "Load Balance". 21.3.2 Click Workparty name and change Workparty name to "AUTHORIZE WP". 21.4 At tab "Load Entity" 21.4.1 Change Entity to "Doc Order Request - Authorize". 21.4.2 Change Key to "REQUEST_ID". 21.4.3 Change Value to "${DOCOrderRequestBO.RequestId}" 21.5 Click Save Panel. 21.6 Link line from Gateway "Validate Limit" to activity "Authorize Process" and duble click at that line. Gateway parameter will appear. 21.6.1 Put "Exception Approve" to Label. 21.6.2 Click at button Condition. The dialog of Formular Editor will open. 21.6.3 Drag "DOCOrderRequestBO.TotalAmt" to Formular Panel. 21.6.4 Drag ">" to behind "DOCOrderRequestBO.TotalAmt". 21.6.5 Drag "N" to behind ">" and change value to "40000". 21.6.6 Click Save. The system will auto generate Condition value. 21.6.7 Click Save Panel.

22. From Gateway, drag Exclusive to behind the activity "Authorize Process" 22.1 Double click at Exclusive. The property will appear then change Name to "Authorize Decision". 22.2 Click Save Panel. 22.3 Link line from activity "Authorize Process" to gateway"Authorize Decision" 22.4 Click button Save. 22.5 Link line from gateway"Authorize Decision" to activity "Find Email" and double click at that line. Gateway parameter will appear. 22.5.1 Put "Reject" to Label. 22.5.2 Click at button Condition. The dialog of Formular Editor will open. 22.5.3 Drag "DOCOrderRequestBO.Decision" to Formular Panel. 22.5.4 Drag "==" to behind "DOCOrderRequestBO.Decision". 22.5.5 Drag "N" to behing "==" and change value to ""02"". 22.5.6 Click Save. The system will auto generate Condition value. 22.5.7 Click Save Panel. 22.6 Link line from gateway"Authorize Decision" to activity "Purchase Order" and double click at that line. Gateway parameter will appear. 22.6.1 Put "Approve" to Label. 22.6.2 Click at button Condition. The dialog of Formular Editor will open. 22.6.3 Drag "DOCOrderRequestBO.Decision" to Formular Panel. 22.6.4 Drag "==" to behind "DOCOrderRequestBO.Decision". 22.6.5 Drag "N" to behing "==" and change value to ""01"". 22.6.6 Click Save. The system will auto generate Condition value. 22.6.7 Click Save Panel.

23. Click button Save.

24. Click Choose Deploy > Only Validate, The system will validate basic configuration. 24.1. The system will show dialog with Save Status "Validation Success". 24.2 If miss some step, the system will show dialog with Save Status "Validation Error" and show warning orange icon. 24.2.1 Move cursor to warning icon to see error detail and try to fix it.

25. If validation success, click Choose Deploy > Quick Deploy. The system will show dialog with Save Status "Deploy Success" then click close.

The completed process should look as shown below

Last updated