Book Image

OSWorkflow: A guide for Java developers and architects to integrating open-source Business Process Management

Book Image

OSWorkflow: A guide for Java developers and architects to integrating open-source Business Process Management

Overview of this book

OSWorkflow is an open-source workflow engine written entirely in Java with a flexible approach and a technical user-base target. It is released under the Apache License. You can create simple or complex workflows, depending on your needs. You can focus your work on the business logic and rules. No more Petri Net or finite state machine coding! You can integrate OSWorkflow into your application with a minimum of fuss. OSWorkflow provides all of the workflow constructs that you might encounter in real-life processes, such as steps, conditions, loops, splits, joins, roles, etc.This book explains in detail all the various aspects of OSWorkflow, without assuming any prior knowledge of Business Process Management. Real-life examples are used to clarify concepts.
Table of Contents (13 chapters)
OSWorkflow
Credits
About the Author
About the Reviewers
Introduction

Simple Logic with Conditional Results


Most business processes have a simple logic in the form of decisions: branch points that follow a condition predicate. The Conditions construct in OSWorkflow serves as a branch point for workflows with conditional results.

Remember that Conditions can be BeanShell scripts or Java classes implementing com.opensymphony.workflow.Condition.

In this chapter we'll use an example from the financial domain, a simple loan request processes performed in every bank. This process has been depicted in the following figure.

The business process begins when the bank customer hands in the signed loan-application form. This form contains several personal, financial, and employment data such as social security number, loan amount, annual salary, and so on.

This data is used to calculate a risk index (RI) with a loan-risk algorithm. If this index is above a certain threshold the loan is rejected, otherwise it is approved.

This is an oversimplified risk index calculation algorithm...