joget workflow v4 training - module 3 - designing your first process
Post on 19-Jul-2015
288 Views
Preview:
TRANSCRIPT
All Rights Reserved © Joget Inc
Joget Workflow v4
Designing your first Process
http://facebook.com/jogetworkflowhttp://twitter.com/jogetworkflow
Last Revised on March 2015Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Prerequisites
• Installed Joget
• Understand various components of Joget
• General understanding of Joget as an end user
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Content
1. Business Process Design (BPE)
2. Designing your First Workflow with Workflow Designer
3. Running your First Automated Process
4. Process Monitoring
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 1
Business Process Design (BPE)
Joget Inc Internal Use Only
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
All Rights Reserved © Joget Inc
Business Process Engineering
1. Identify a process
2. Identify start and end of the process
3. Identify process participants
4. Identify as-is process activities
5. Identify business rules
6. 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
All Rights Reserved © Joget Inc
Identify a Process
• E.g. Leave Application Process
Joget Inc Internal Use Only
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
All Rights Reserved © Joget Inc
Process Participants
• Leave applicant
• Leave approver
• HR department
Joget Inc Internal Use Only
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
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
To-Be Process ActivitiesAs-Is1. Applicant submits leave
application form to HOD
2. HOD checks applicant’s leave balance
3. HOD informs applicant on insufficient leave balance
4. HOD approves / rejects leave application
5. HOD informs applicant on the application status
6. HOD submits approved leave application to HR Department
To-Be
1. Applicant submits leave application form to HOD
2. System checks applicant’s leave balance
3. System notifies applicant on insufficient leave balance
4. HOD approves / rejects leave application
5. System notifies applicant and HR Department on the application status via email
impro
ved
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
To-Be Leave Application Process
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Now, Identify a Process, and Engineer It!
Joget Inc Internal Use Only
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
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
All Rights Reserved © Joget Inc
Chapter 1 Review
• General understanding on how to best design a Process.
• With the finished process design, one may now implement it in Joget Workflow.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 2
Designing your First Workflow with Workflow Designer
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Business Process Automation
Business Process Design
Workflow Design
Workflow
Joget Inc Internal Use Only
All Rights Reserved © Joget IncJoget Inc Internal Use Only
All Rights Reserved © Joget IncJoget Inc Internal Use Only
All Rights Reserved © Joget Inc
Create Your First App
Accepted Characters:a-z, A-Z, 0-9, _
• 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
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
All Rights Reserved © Joget Inc
Design your first Workflow Process
• Launch Workflow Designer
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Defining your Workflow Process
• Rename Process ID and Name
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Smart Guide*
Double click for tips
Can only be deployed when there’s no error
Joget Inc Internal Use Only
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
All Rights Reserved © Joget Inc
Mouse-Click Interactions
• Single-click to select an element
• When an element is selected, single-click to insert the element into workspace
• Right-click to reset the element selection
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Defining Participants
• Rename Participant ID and Name
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Insert Activities and Transitions
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Rename Activity ID and Name
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Completing the Design
• Insert the rest of the activities
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Implementing the Business Rule
• Route: Diamond-shaped node – Used to implement business rules
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Defining the Transition Condition
• status == ‘Approved’
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Anything else…
• Handling the “otherwise”
Joget Inc Internal Use Only
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
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
All Rights Reserved © Joget Inc
• Processes designed are stored in XPDL format.
XPDL
Joget Inc Internal Use Only
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
All Rights Reserved © Joget Inc
Also Good to know
• Common 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
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 App.
Joget Inc Internal Use Only
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
All Rights Reserved © Joget Inc
Chapter 3
Running Your First Automated Process
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Verify the Workflow Process
• Run through the Workflow Process to verify.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Verify the Workflow Process
• Complete the Assignment to proceed.
Activity name configured in Workflow Designer
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Accessing the Assignments
• App Center -> Web Console > Run Apps -> Inbox
Set the status variable as “Approved”
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Determining the flow using route
• Manipulating the Workflow using Workflow VariableSet the status variable
as “Approved”
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Completing the subsequent assignments
• Verify the flow and complete the flow.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Exercise
• Run the process again to test out the “Rejected” case scenario.
Joget Inc Internal Use Only
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 for administrator to verify its design.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 3 Review
• Evaluate and verify the workflow process.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 4
Process Monitoring
Joget Inc Internal Use Only
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
All Rights Reserved © Joget Inc
Monitor Running Processes
Process Instance ID Format:#_AppId_ProcessId
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Monitor Completed Processes
Joget Inc Internal Use Only
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
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
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
All Rights Reserved © Joget Inc
View the Details of an Activity
Workflow variable value
Joget Inc Internal Use Only
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
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
All Rights Reserved © Joget Inc
Module Review
1. Business Process Design (BPE)
2. Designing your First Workflow with Workflow Designer
3. Running your First Automated Process
4. Process Monitoring
Joget Inc Internal Use Only
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
All Rights Reserved © Joget Inc
Stay Connected with Joget Workflow
• www.joget.org
• community.joget.org
• twitter.com/jogetworkflow
• facebook.com/jogetworkflow
• youtube.com/jogetworkflow
• slideshare.net/joget
Joget Inc Internal Use Only
top related