64
All Rights Reserved © Joget Inc Joget Workflow v5 Designing your first Process http://facebook.com/jogetworkflow http://twitter.com/jogetworkflow Last Revised on May 2016 Joget Inc Internal Use Only

Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

Embed Size (px)

Citation preview

Page 1: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Joget Workflow v5

Designing your first Process

http://facebook.com/jogetworkflowhttp://twitter.com/jogetworkflow

Last Revised on May 2016Joget Inc Internal Use Only

Page 2: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Prerequisites

• Installed Joget Workflow• Understand various components of Joget Workflow• General understanding of Joget Workflow as an end user

Joget Inc Internal Use Only

Page 3: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Content

1. Business Process Design (BPE)2. Designing your First Workflow with Process Builder3. Running your First Automated Process4. Process Monitoring

Joget Inc Internal Use Only

Page 4: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Chapter 1

Business Process Design (BPE)

Joget Inc Internal Use Only

Page 5: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Business Process Management

• BPM is a management approach focused on aligning all aspects of an organization with the wants and needs of clients.

• Wants and needs = business goals

• BPM attempts to improve processes continuously.

Joget Inc Internal Use Only

Page 6: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Business Process Engineering

1. Identify a process2. Identify start and end of the process3. Identify process participants4. Identify as-is process activities5. Identify business rules6. Identify areas for optimization: process activities and

business rules that can be:– Improved– Eliminated

7. Draw the improved / to-be process as flowchart

Joget Inc Internal Use Only

Page 7: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Identify a Process

• E.g. Leave Application Process

Joget Inc Internal Use Only

Page 8: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Start and End of The Process

• Start:– Applicant submits leave application form

• End:– Applicant informed with the leave application result

Joget Inc Internal Use Only

Page 9: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Process Participants

• Leave applicant

• Leave approver

• HR department

Joget Inc Internal Use Only

Page 10: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

• Applicant submits leave application form to HOD

• HOD checks applicant’s leave balance

• HOD approves / rejects leave application

• HOD informs applicant on the application status

• HOD submits approved leave application to HR Department

As-Is Process Activities

Joget Inc Internal Use Only

Page 11: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Business Rules

1. If leave balance is sufficient:– Approver processes leave approval

Else if leave balance is insufficient:– Reject leave application

2. If leave application is approved:– Submits the approved leave application to HR Department– Inform applicant on the approved leave

Else if leave application is rejected:– Inform applicant on the rejected leave

Joget Inc Internal Use Only

Page 12: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

To-Be Process ActivitiesAs-Is1. Applicant submits leave

application form to HOD2. HOD checks applicant’s leave

balance3. HOD informs applicant on

insufficient leave balance4. HOD approves / rejects leave

application5. HOD informs applicant on the

application status6. HOD submits approved leave

application to HR Department

To-Be1. Applicant submits leave

application form to HOD2. System checks applicant’s

leave balance3. System notifies applicant on

insufficient leave balance4. HOD approves / rejects leave

application5. System notifies applicant and

HR Department on the application status via email

impr

oved

Joget Inc Internal Use Only

Page 13: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

To-Be Leave Application Process

Joget Inc Internal Use Only

Page 14: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Now, Identify a Process, and Engineer It!

Joget Inc Internal Use Only

Page 15: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Sample Process Statement

• Jane needs to get some stationeries. The application that she submits will must be first approved by her immediate superior before being sent to the stationery disbursement department. The department will then notify Jane accordingly.

Joget Inc Internal Use Only

Page 16: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Hands-On: Business Process Engineering

1. Process Name

2. Start and End

3. Participants

4. As-Is Activities 5. Business Rules

6. Optimize

7. To-Be Process

Joget Inc Internal Use Only

Page 17: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Chapter 1 Review

• General understanding on how to best design a Process.• With the finished process design, one can now implement

it in Joget Workflow.

Joget Inc Internal Use Only

Page 18: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Chapter 2

Designing your first Process with Process Builder

Joget Inc Internal Use Only

Page 19: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Business Process Automation

Business Process Design

Workflow Design

Workflow

Joget Inc Internal Use Only

Page 20: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget IncJoget Inc Internal Use Only

Page 21: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget IncJoget Inc Internal Use Only

Page 22: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Create Your First App

• Design Apps -> Design New App

Naming convention:Use Camel Case for better

legibility for App ID, Process ID, Activity ID

Joget Inc Internal Use Only

Page 23: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Create Your First App

• Leave Application– Leave Approval Process

• Applicant submits• Approver approves• Applicant is notified of the application result

Joget Inc Internal Use Only

Page 24: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Design your first Workflow Process

Joget Inc Internal Use Only

• Launch Process Builder – Processes > Design Processes

Page 25: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Defining your Workflow Process

Joget Inc Internal Use Only

• Rename Process ID and Name

Page 26: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Defining your Participant

• Rename the existing participant to Applicant

Joget Inc Internal Use Only

Page 27: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Smart Guide*

Joget Inc Internal Use Only

• The Process Builder will highlights logical errors as you design.

Page 28: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

The * about Smart Guide

• Advises only on possible design errors.• Will NOT advise on flawed business logic, design

inefficiency.

Joget Inc Internal Use Only

Page 29: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Insert Activities and Transitions

Joget Inc Internal Use Only

• Drag and drop, select the appropriate nodes to build the Workflow Process.

Page 30: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Rename Activity ID and Name

Joget Inc Internal Use Only

• Rename the activity node to make it meaningful.• Use camel case naming convention for ID (submitLeave).

Naming convention:Use Camel Case for better

legibility for App ID, Process ID, Activity ID

Page 31: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Completing the Design

• Insert the rest of the activities

Joget Inc Internal Use Only

Page 32: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Implementing the Business Rule

• Route: Diamond-shaped node – Used to implement business rules

Joget Inc Internal Use Only

Page 33: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Defining the Transition Condition

• When the status variable is met with certain condition, route accordingly.

Joget Inc Internal Use Only

Page 34: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Anything else…

• Handling the “otherwise”

Joget Inc Internal Use Only

Page 35: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

If and otherwise…

• Does this resemble the typical programming if-else condition block?

• Is this the best design?• Why not if-else if?

Joget Inc Internal Use Only

Page 36: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Declaring the Workflow Variable

• Variable used in the Workflow Process must be declared in the Process’s properties.

Joget Inc Internal Use Only

Page 37: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Good to know

• Expressions in “Condition” are evaluated in Javascript.• Workflow variable are stored as string.

Joget Inc Internal Use Only

Page 38: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Also Good to know

• Native Javascript functions are accepted.– E.g. status == "Approved" && parseInt(balance) > 0

• Make sure of debugger tool such as Firebug to test the expression before deploying.

Joget Inc Internal Use Only

Page 39: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Deploying your Process Design

• On the bottom left of the designer, click on “Deploy” to push your finished design back into your Joget Workflow App.

Joget Inc Internal Use Only

Page 40: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Chapter 2 Review

• Create a new App.• Design and deploy Process design into the App.• Understand the naming convention.• Define various kind of process design elements.• Define workflow variable and condition.• Deploying process design back to Joget.

Joget Inc Internal Use Only

Page 41: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Chapter 3

Running Your First Automated Process

Joget Inc Internal Use Only

Page 42: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Verify the Workflow Process

• Run through the Workflow Process to verify.

Joget Inc Internal Use Only

Page 43: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Verify the Workflow Process

• Complete the Assignment to proceed.

Activity name configured in Process Builder

Joget Inc Internal Use Only

Page 44: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Accessing the Assignments

• App Center -> Inbox

Joget Inc Internal Use Only

Set the status variable as “Approved”

Page 45: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Determining the flow using route

• Manipulating the Workflow using Workflow Variable

Joget Inc Internal Use Only

Set the status variable as “Approved”

Page 46: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Completing the subsequent assignments

• Verify the flow and complete the flow.

Joget Inc Internal Use Only

Page 47: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Exercise

• Run the process again to test out the “Rejected” case scenario.

Joget Inc Internal Use Only

Page 48: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Good to know

• At this point of time, the App is NOT published yet therefore end user would not be able to run it.

• “Run Process” available at the App Designer’s Processes tab is a convenient way to verify its flow.

Joget Inc Internal Use Only

Page 49: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Discussion

• Who is Applicant? Who is Approver? Have we actually defined who they really are?

Joget Inc Internal Use Only

Page 50: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Chapter 3 Review

• Evaluate and verify the workflow process.

Joget Inc Internal Use Only

Page 51: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Chapter 4

Process Monitoring

Joget Inc Internal Use Only

Page 52: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Monitoring Processes

• Allows you to monitor the status of processes, both running and completed.

• Allows you to view an audit trail of workflow actions• Captures process data to allow for the generation of

reports.

Joget Inc Internal Use Only

Page 53: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Monitor Running Processes

• Click on Monitor from the Admin Bar to access.

Process Instance ID Format:#_AppId_ProcessId

Joget Inc Internal Use Only

Page 54: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Monitor Completed Processes

• Click on “Completed Processes” to see completed process instances.

Joget Inc Internal Use Only

Page 55: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

View the Details of a Running Process Instance

• From the list of running processes, click into any instance.• Details on the current state of the selected process

instance will be shown.

Joget Inc Internal Use Only

Page 56: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

View the Details of a Running Process Instance

Which activities are completed?

Which activity is active now?Activity Instance ID format:

#_ProcessInstanceId_ActivityId

Joget Inc Internal Use Only

Page 57: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

View the Details of a Running Process Instance• There are buttons to allow actions to be taken on the process

instance.

– View Graph• Displays the workflow diagram, where the current activities are highlighted in

yellow.– Abort Instance

• Terminates the process instance, leaving the process data intact– Remove Instance

• Permanently delete the process instance, process data will be removed as well– Re-evaluate

• In cases where participant mappings are changed before the process is completed, this action will allow pending assignments to be reassigned to the newly mapped participants.

Joget Inc Internal Use Only

Page 58: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

View the Details of an Activity

Workflow variable value

Joget Inc Internal Use Only

Page 59: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

View the Details of a Running Activity Instance• There are buttons to allow actions to be taken on the activity

instance.

– Re-evaluate• Re-evaluate the participant mapping for the current activity instance.

– Re-evaluate assignment(s) for user• Re-evaluate all assignments of a particular user.

– Reassign user• Reassign one of the assignee(s) of this activity instance to another user.

– Complete• Complete the activity instance as the current logged in user.

Joget Inc Internal Use Only

Page 60: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Discussion

• What if a person who is assigned to an assignment has left the organization? What can we do?

• In production, when one has thousands of instances running, how to quickly identify the troubled one?

Joget Inc Internal Use Only

Page 61: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Chapter 4 Review

We have learnt to:1. Monitor running and completed processes.2. Drill down into activity details of each process that is

running or completed.3. Debug workflow processes by examining workflow

variable value.4. Appreciate the “Re-evaluate” feature in process

monitoring.

Joget Inc Internal Use Only

Page 62: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Module Review

1. Business Process Design (BPE)2. Designing your First Workflow with Process Builder3. Running your First Automated Process4. Process Monitoring

Joget Inc Internal Use Only

Page 63: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Recommended Further Learning

• Designing Forms for the activities created in your Process Flow.

• Configure Process Tool plugin for the tool created in your Process Flow.

Joget Inc Internal Use Only

Page 64: Joget Workflow v5 Training Slides - Module 3 - Designing your first Process

All Rights Reserved © Joget Inc

Stay Connected with Joget Workflow

• http://www.joget.org • http://community.joget.org • http://twitter.com/jogetworkflow • http://facebook.com/jogetworkflow • http://youtube.com/jogetworkflow • http://slideshare.net/joget

Joget Inc Internal Use Only