Presentation is loading. Please wait.

Presentation is loading. Please wait.

M ODELING B USINESS P ROCESSES IN K UALI E NTERPRISE W ORKFLOW Eric Westfall – Indiana University Claus Niesen – Iowa State University.

Similar presentations


Presentation on theme: "M ODELING B USINESS P ROCESSES IN K UALI E NTERPRISE W ORKFLOW Eric Westfall – Indiana University Claus Niesen – Iowa State University."— Presentation transcript:

1 M ODELING B USINESS P ROCESSES IN K UALI E NTERPRISE W ORKFLOW Eric Westfall – Indiana University Claus Niesen – Iowa State University

2 ANATOMY OF A WORKFLOW ENGINE What is a Workflow Engine? Orchestrates business process workflow It accomplishes this via: routing content through a variety of routing nodes What must it be capable of doing? Modeling both simple and complex processes Interacting with multiple entities (both humans and services) Running asynchronously Transactional operation

3 KEW OVERVIEW Composed of a set of services APIs, frameworks, and User Interfaces Routes documents based on type, where the associated Document Type definition declares a route path for the document. Based on this route path, various behaviors will be performed based on the document content. Often, this behavior consists of interacting with one or more parties in the form of approval requests. For example: Transfer of Funds Timesheet Add/Drop Course Travel Authorization

4 KEW – CORE FEATURES Action List Document Search Route Log (Audit Trail) Flexible Process Definition (Document Types) Simulation Engine Notes and Attachments Programmatically extensible Frameworks for customization of routing and other pieces of the system

5 DOCUMENT TYPES Document Types allow you to specify content that can be initiated using KEW They are specified using XML markup They identify this content by a type name Can also include policies and other attributes Hierarchical, can inherit attributes from parents Most importantly, they define the route path for initiated content

6 DOCUMENT TYPE DEFINITIONS Document Type Name Parent (Document Types are Hierarchical) Post Processor Security Policies Search Attributes Route Path

7 ANATOMY OF A DOCUMENT TYPE DEFINITION...........................................................................

8 ROUTE PATH AND ROUTE NODES.........

9 PROCESS DEFINITION - ROUTE NODES Some of the primary types of Routing Nodes include: Split Nodes Join Nodes Simple Nodes Request Nodes Dynamic Nodes Sub Process Nodes You can also implement custom Nodes

10 ROUTE NODES - SPLIT A split node is one that is capable of splitting the routing path into multiple branches Branches are executed concurrently

11 ROUTE NODES - JOIN Join nodes complement a split node by allowing the multiple branches of the routing path to converge

12 ROUTE NODES – SIMPLE NODE Simple nodes are a base type that allows a developer to implement behaviors based on their own particular processing requirements

13 SIMPLE NODE EXAMPLES EmailNode: Allows sending of email messages LogNode: Sends messages to Rice’s logging stream SetVarNode: Allows setting of document variables RequestsNode: Generates action requests

14 ROUTE NODES - REQUEST NODES Generates ActionRequests that are fed into the action list(s) of a user, workgroup, or role Requires user action to proceed Include: approve, disapprove, acknowledge, etc… Have an associated Activation Type: S (Sequential): An ActionRequest is sent and must be acted upon before sending the next ActionRequest P (Parallel): Multiple ActionRequests are sent at once Requests can be generated by a custom Route Module or by the Rules engine

15 ROUTE NODES – DYNAMIC NODES Dynamic nodes are a more advanced form of developer-implemented node They allow for the dynamic modeling of a route path This is done by instantiating a set of node instances that will then be fed to the routing engine

16 DYNAMIC NODE EXAMPLE: HIERARCHY ROUTING TODO… add some graphics in here on the KC dynamic node routing process

17 ROUTE NODES – SUB-PROCESS Sub Process Nodes are named route paths that can be included in a document type’s primary route path. They allow the workflow author to create a route path that can be reused

18 CUSTOM NODE IMPLEMENTATION Making an example of the Email Node public class EmailNode implements SimpleNode { public SimpleResult process(RouteContext context, RouteHelper helper) throws Exception { if (context.isSimulation()) { // no side-effects! } else { // send off the email } return new SimpleResult(true); }

19 KEW APIS WorkflowDocumentActionsService – operations related to actions on workflow documents WorkflowUtilityService – miscellaneous operations In Rice 2.0, WorkflowUtilityService was split into the following: WorkflowDocumentService – document-related operations DocumentTypeService – Document Type-related operations ActionListService – retrieve action lists RuleService – interact with KEW rules engine NoteService – notes and attachments on documents

20 Workflow Document Actions Create Route Approve Save Blanket Approve Return to Previous Node Super User Actions Attach XML to document Set document title Execute Simulation

21 Using the API (Rice 2.0) WorkflowDocument document = WorkflowDocumentFactory.createDocument(“ewestfal”, “MyDocType”); document.setApplicationContent(“ my doc content ”); document.routeDocument(“My custom annotation”); String documentId = document.getDocumentId(); // after some routing happens... WorkflowDocument document = WorkflowDocumentFactory.loadDocument(“somebody”, documentId); if (document.isApprovalRequested()) { document.approve(“I approve this!”); }

22 RULE ROUTING Four key components used for Rule Routing Document Type (specifically the Route Nodes) Rule Attributes Rule Templates Routing Rules Not to be confused with the capabilities provided by KRMS (new module of Rice in version 2.0, we will discuss this later)

23 USING RULES Sample Route Node using ‘Rule Template’ Method … DocumentRuleTemplate Sample Route Node using ‘Named Rule’ Method … Named TestRule1

24 ROUTING RULES Evaluated against a document to determine who should receive action requests at a particular node. Created against a Rule Template. Rule matching behavior is handled by the Rule Attributes when the rule is executed. Defines the principals (users), groups and/or roles who should receive action requests should the rule fire. Examples: If dollar amount is greater than $10,000 then send an Approval request to Joe. If department is “HR” request an Acknowledgment from the HR.Acknowledgers workgroup.

25 KIM RESPONSIBILITY ROUTING Leverages Kuali Identity Management module to allow routing to KIM Roles via “responsibilities” which have been defined on those roles Allows for both KIM Permissions and workflow routing to use same KIM Roles Can be used with ‘Rule Routing’ on a single document type but not single node

26 RESPONSIBILITIES IN KIM Defines a responsibility to take action as part of a workflow process Based on: Document Type Route Node at which the responsibility should be applied Specifies: The action which should be generated when the responsibility is triggered (approve, ack, fyi, etc.) Request priority Force Action flag Responsibilities are assigned to roles, all members of the role inherit them

27 QUALIFIER RESOLVERS Used to find qualification data for matching to KIM Role Members Data can be located anywhere including external systems Can be custom coded java class implementing QualifierResolver interface Some provided options included in Rice NullQualifierResolver (Match All Role Members) XPathQualifierResolver (User provided XPath Expression) DataDictionaryQualifierResolver (KNS Specific)

28 PEOPLE FLOWS New to KEW in Rice 2.0 Principals, groups, or roles who need to take action in a prescribed order Supports delegation Processed as a combination of parallel and sequential processing Acts as a mini People-based workflow Integrated with the KRMS rules engine

29 PEOPLE FLOWS

30

31 EXAMPLE BUSINESS PROCESSES Using the tools available in KEW, many different types of workflow processes can be built Examples: HR Transactions (Hire, Terminate, etc.) Timesheet Review and Approval Purchasing Drop/Add Class

32 EXAMPLE - HUMAN RESOURCE TRANSACTIONS

33 EXAMPLE – TIMESHEET REVIEW AND APPROVAL

34 EXAMPLE - PURCHASING

35 SIS – DROP/ADD – THE RICE WAY EXAMPLE – DROP / ADD CLASS

36 QUESTIONS? Learn more at http://rice.kuali.orghttp://rice.kuali.org Join the rice.collab@kuali.org mailing listrice.collab@kuali.org


Download ppt "M ODELING B USINESS P ROCESSES IN K UALI E NTERPRISE W ORKFLOW Eric Westfall – Indiana University Claus Niesen – Iowa State University."

Similar presentations


Ads by Google