Learn about step to create Process Designer project for Order Management Application.

Procedure

From ONEWEB Process Designer screen, click Create Project > Create Project Wizard. The Create Project Wizard screen opens.


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


  1. Second step. (Define Business Object)
    1. Move cursor to "Process Parameter" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens.
    2. Put "DOCOrderRequestBO" to Name Parameter.
    3. Click Submit.
    4. Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens.
    5. Put "RequestId" to Name Parameter.
    6. Click Submit.
    7. Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens.
    8. Put "Requester" to Name Parameter.
    9. Click Submit.
    10. Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens.
    11. Put "TotalAmt" to Name Parameter.
    12. Change Parameter type to "Decimal"
    13. Click Submit.
    14. Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens.
    15. Put "Decision" to Name Parameter.
    16. Click Submit.
    17. Move cursor to "DOCOrderRequestBO" and click. 4 icons show then click icon Add parameter. The popup dialog of Parameter Form opens.
    18. Put "Email" to Name Parameter.
    19. Click Submit.
    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.
    21. Click Next.


  1. Third step. (Create Work Party)
    1. Put "ADMIN WP" to Work Party Name.
    2. Click Add button.
    3. Put "BACK OFFICE WP" to Work Party Name of the new record.
    4. Click Add button.
    5. Put "AUTHORIZE WP" to Work Party Name of the new record.
    6. Click Next.


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


  1. Last step. (Create Process)
    1. Put "DOC Order Request" to Process Name.
    2. Click radio Private.
    3. Put "Add supplier" to What?
    4. Put "ADMIN WP" to Who?
    5. Click Finish.


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


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


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


  1. Double click at activity "Add supplier". The property panel will appear.
    1. At tab "BusinessObject"
      1. Parameter name will default as "DOCOrderRequestBO".
      2. Selected both of Input and Output checkbox.
      3. Click button "Open Mapping Parameter". The screen will redirect to Mapping Parameter screen.
      4. Click line between Input box and Mapping box. The mapping panel will appear.
      5. Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      7. Click Save.
      8. Click line between Mapping box and Output box. The mapping panel will appear.
      9. Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      11. Click Save.
      12. Click Close.
    2. Double click at activity "Add supplier" again.
    3. At tab "Assignment Policy"
      1. Click Setting and change drop down to "Round Robin".
      2. Click Work party name and change Work party name to "ADMIN WP".
    4. At tab "Load Entity"
      1. Change Entity to "Doc Order Request - Admin".
      2. Change Key to "REQUEST_ID".
      3. Change Value to "${DOCOrderRequestBO.RequestId}"
      4. Click Save Panel.


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


  1. Prepare Jar file for send email.
    1. Create java project name "SendEmail".
    2. Create class "com.email.SendEmail".
    3. Put below coding to class SendEmail.


package com.email;


public class SendEmail {

               public void sendEmail(String requestId, String emailTo){

                       System.out.println("#######################Send Email#######################");

                       System.out.println("requestId :" + requestId);

                       System.out.println("emailTo :" + emailTo);

                       System.out.println("Coding to send email here.");

                       System.out.println("-----------------------Send Email-----------------------");

               }

}

    1. Export project to SendEmail.jar


  1. From Activity, drag Database to begin the gateway "Admin Decision". The new database activity name "Database" will appear then double click it.
    1. At tab General, change Name to "Find Email".
    2. At tab Business Object, follow by step 9.1
    3. At tab Database Parameter.
      1. Select JNDI at Connection Type.
      2. Put "jdbc/application" to JNDI Name.
      3. Select "Select" at Command Type.
      4. Put "select email from wf_ms_employee where employee_id = ?" to Command.
      5. Click button Open Mapping Parameter. The system will redirect to Mapping Parameter.
      6. Click line between Input box and Mapping box. The mapping panel will appear.
      7. Move cursor to "DatabaseDummyObject" and click. 2 icons will appear then click at icon Add parameter. The popup dialog of Parameter Form opens.
      8. Put "employee_id" to Name Parameter.
      9. Click Submit. The new parameter name "employee_id" will appear.
      10. Move cursor to "Requester' at the left side and click. The icon Add to Mapping box will appear then click it.
      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. Click Save.
      13. Click line between Mapping box and Output box. The mapping panel will appear.
      14. Move cursor to "DatabaseDummyObject" and click. 2 icons will appear then click at icon Add parameter. The popup dialog of Parameter Form opens.
      15. Put "email" to Name Parameter.
      16. Click Submit. The new parameter name "employee_id" will appear.
      17. Move cursor to "email at the left side and click. 3 icons will appear then click at icon Add to Mapping box.
      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.
      19. Click Save.
      20. Click Close. The screen will redirect back to the diagram


    1. Link line from gateway "Admin Decision" to activity "Find Email" and duble click at that line. Gateway parameter will appear.
      1. Put "Reject" to Label.
      2. Click at button Condition. The dialog of Formular Editor will open.
      3. Drag "DOCOrderRequestBO.Decision" to Formular Panel.
      4. Drag "==" to behind "DOCOrderRequestBO.Decision".
      5. Drag "N" to behind "==" and change value to '"02"'.
      6. Click Save. The system will auto generate Condition value.
      7. Click Save Panel.


  1. From Activity, drag Java to upper the activity "Find Email". The new java activity name "Java" will appear then double click it.
    1. At tab General, change Name to "Send Email".
    2. At tab Business Object, follow by step 9.1.
    3. At Java Parameter.
      1. Click button Choose Jar then select jar file from stem 12.
      2. Click button Get Class Name. The system will auto populate data from jar file.
      3. Check that Class name is "com.email.SendEmail" and Method name is "public void sendEmail(java.lang.String,java.lang.String)"
      4. Click button Open Mapping Parameter. The system will redirect to Mapping Parameter.
      5. Click line between Input box and Mapping box. The mapping panel will appear.
      6. Move cursor to "RequestId' at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      8. Move cursor to "Email' at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      10. Click Save.
      11. Click Close. The screen will redirect back to the diagram
    4. Link line from activity "Find Email"  to activity "Send Email"


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


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


  1. 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.
    1. At tab "General"
      1. Change Name to "Back Office Process"
    2. At tab "Business Object"
      1. Parameter name will default as "DOCOrderRequestBO".
      2. Selected both of Input and Output checkbox.
      3. Click button "Open Mapping Parameter". The screen will redirect to Mapping Parameter screen.
      4. Click line between Input box and Mapping box. The mapping panel will appear.
      5. Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      7. Click Save.
      8. Click line between Mapping box and Output box. The mapping panel will appear.
      9. Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      11. Click Save.
      12. Click Close.
    3. At tab "Assignment Policy"
      1. Click Setting and change drop down to "Pull".
      2. Click Work party name and change Work party name to "BACK OFFICE WP".
    4. At tab "Load Entity"
      1. Change Entity to "Doc Order Request - Back Office".
      2. Change Key to "REQUEST_ID".
      3. Change Value to "${DOCOrderRequestBO.RequestId}"
    5. Click Save Panel.
    6. Link line from Gateway "Admin Decision"  to activity "Back Office Process" and double click at that line. Gateway parameter will appear.
      1. Put "Approve" to Label.
      2. Click at button Condition. The dialog of Formular Editor will open.
      3. Drag "DOCOrderRequestBO.Decision" to Formular Panel.
      4. Drag "==" to behind "DOCOrderRequestBO.Decision".
      5. Drag "N" to behind "==" and change value to ""01""
      6. Click Save. The system will auto generate Condition value.
      7. Click Save Panel.


  1. From Gateway, drag Exclusive to under the activity "Back Office Process"
    1. Double click at Exclusive. The property will appear then change Name to "Back Office Decision".
    2. Click Save Panel.
    3. Link line from activity "Back Office Process" to gateway "Back Office Decision"
    4. Click button Save.
    5. Link line from gateway "Back Office Decision"  to activity "Find Email" and double click at that line. Gateway parameter will appear.
      1. Put "Reject" to Label.
      2. Click at button Condition. The dialog of Formular Editor will open.
      3. Drag "DOCOrderRequestBO.Decision" to Formular Panel.
      4. Drag "==" to behind "DOCOrderRequestBO.Decision".
      5. Drag "N" to behing "==" and change value to ""02""
      6. Click Save. The system will auto generate Condition value.
      7. Click Save Panel.


  1. From Gateway, drag Exclusive to under the Gateway "Back Office Decision"
    1. Double click at Exclusive. The property will appear then change Name to "Validate Limit".
    2. Click Save Panel.
    3. Link line from gateway "Back Office Decision" to gateway "Validate Limit" and double click at that line. Gateway parameter will appear.
      1. Put "Approve" to Label.
      2. Click at button Condition. The dialog of Formular Editor will open.
      3. Drag "DOCOrderRequestBO.Decision" to Formular Panel.
      4. Drag "==" to behind "DOCOrderRequestBO.Decision".
      5. Drag "N" to behind "==" and change value to ""01""
      6. Click Save. The system will auto generate Condition value.
      7. Click Save Panel.
    4. Click button Save.


  1. 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.
    1. At tab "General"
      1. Change Name to "Purchase Order"
    2. At tab "Business Object"
      1. Parameter name will default as "DOCOrderRequestBO".
      2. Selected both of Input and Output checkbox.
      3. Click button "Open Mapping Parameter". The screen will redirect to Mapping Parameter screen.
      4. Click line between Input box and Mapping box. The mapping panel will appear.
      5. Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      7. Click Save.
      8. Click line between Mapping box and Output box. The mapping panel will appear.
      9. Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      11. Click Save.
      12. Click Close.
    3. At tab "Assignment Policy"
      1. Click Setting and change drop down to "Pull".
      2. Click Work party name and change Work party name to "ADMIN WP".
    4. At tab "Load Entity"
      1. Change Entity to "Doc Order Request - Admin PO".
      2. Change Key to "REQUEST_ID".
      3. Change Value to "${DOCOrderRequestBO.RequestId}"
    5. Click Save Panel.
    6. Link line from Gateway "Validate Limit" to activity "Purchase Order" and duble click at that line. Gateway parameter will appear.
      1. Put "Normal Approve" to Label.
      2. Click at button Condition. The dialog of Formular Editor will open.
      3. Drag "DOCOrderRequestBO.TotalAmt" to Formular Panel.
      4. Drag "<=" to behind "DOCOrderRequestBO.TotalAmt".
      5. Drag "N" to behind "<=" and change value to "40000"
      6. Click Save. The system will auto generate Condition value.
      7. Click Save Panel.
    7. Link line from activity "Purchase Order"  to activity "Find Email"


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


  1. From Activity, drag Human to new lane. The activity name "Human" will appear then double click it. The property panel will appear.
    1. At tab "General"
      1. Change Name to "Authorize Process"
    2. At tab "BusinessObject"
      1. Parameter name will default as "DOCOrderRequestBO".
      2. Selected both of Input and Output checkbox.
      3. Click button "Open Mapping Parameter". The screen will redirect to Mapping Parameter screen.
      4. Click line between Input box and Mapping box. The mapping panel will appear.
      5. Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      7. Click Save.
      8. Click line between Mapping box and Output box. The mapping panel will appear.
      9. Move cursor to "DOCOrderRequestBO" at the left side and click. The icon Add to Mapping box will appear then click it.
      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.
      11. Click Save.
      12. Click Close.
    3. At tab "Assignment Policy"
      1. Click Setting and change drop down to "Load Balance".
      2. Click Workparty name and change Workparty name to "AUTHORIZE WP".
    4. At tab "Load Entity"
      1. Change Entity to "Doc Order Request - Authorize".
      2. Change Key to "REQUEST_ID".
      3. Change Value to "${DOCOrderRequestBO.RequestId}"
    5. Click Save Panel.
    6. Link line from Gateway "Validate Limit" to activity "Authorize Process" and duble click at that line. Gateway parameter will appear.
      1. Put "Exception Approve" to Label.
      2. Click at button Condition. The dialog of Formular Editor will open.
      3. Drag "DOCOrderRequestBO.TotalAmt" to Formular Panel.
      4. Drag ">" to behind "DOCOrderRequestBO.TotalAmt".
      5. Drag "N" to behind ">" and change value to "40000".
      6. Click Save. The system will auto generate Condition value.
      7. Click Save Panel.


  1. From Gateway, drag Exclusive to behind the activity "Authorize Process"
    1. Double click at Exclusive. The property will appear then change Name to "Authorize Decision".
    2. Click Save Panel.
    3. Link line from activity "Authorize Process" to gateway"Authorize Decision"
    4. Click button Save.
    5. Link line from gateway"Authorize Decision" to activity "Find Email" and double click at that line. Gateway parameter will appear.
      1. Put "Reject" to Label.
      2. Click at button Condition. The dialog of Formular Editor will open.
      3. Drag "DOCOrderRequestBO.Decision" to Formular Panel.
      4. Drag "==" to behind "DOCOrderRequestBO.Decision".
      5. Drag "N" to behing "==" and change value to ""02"".
      6. Click Save. The system will auto generate Condition value.
      7. Click Save Panel.
    6. Link line from gateway"Authorize Decision" to activity "Purchase Order" and double click at that line. Gateway parameter will appear.
      1. Put "Approve" to Label.
      2. Click at button Condition. The dialog of Formular Editor will open.
      3. Drag "DOCOrderRequestBO.Decision" to Formular Panel.
      4. Drag "==" to behind "DOCOrderRequestBO.Decision".
      5. Drag "N" to behing "==" and change value to ""01"".
      6. Click Save. The system will auto generate Condition value.
      7. Click Save Panel.


  1. Click button Save.


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


  1. 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