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.
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...