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

Chapter 3. Adding Code to our Definitions

This chapter introduces several key features of OSWorkflow like variable interpolation, OSWorkflow function providers, registers, conditions, and BeanShell scripting. These tools are useful for creating sophisticated business process definitions by adding custom code.

This chapter covers some advanced features available in OSWorkflow such as the ability to persist variables using PropertySet. We will learn how to check input data with our own validation rules using the OSWorkflow Validator model. Finally, we will cover two very handy definitions tips: Auto and Finish Actions, to make our definitions more compact.

How to Deal with Transient Data

Not every bit of data is created to be persisted; for these cases OSWorkflow provides a transient variables map. This map is created for every invocation to the Workflow instance and is used to store temporary data in one place during the workflow processing. Its content is cleared in each invocation and is pre...