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

OSWorkflow Configuration


This section will cover the configuration options available for OSWorkflow. We'll show you how to register the workflow definition created in the previous two chapters and generate new workflow instances through programming. After that, we will see the workflow persistence options offered by OSWorkflow and PropertySet.

Registering our Process Descriptors

Before tackling the aspects of persistence and the workflow factory concept, we must see how we can configure OSWorkflow.

Firstly, the framework configures itself by parsing and reading the osworkflow.xml file in the classpath. This file contains several settings, such as the WorkflowStore implementation class name, the WorkflowFactory handler class name, and so on.

The default osworkflow.xml file is as follows:

<osworkflow>
<persistence class="com.opensymphony.workflow.spi.memory
. MemoryWorkflowStore"/>
<factory class= "com.opensymphony.workflow.loader.
XMLWorkflowFactory">
<property key="resource...