org.tigris.scarab.workflow
Class WorkflowFactory

java.lang.Object
  extended byorg.tigris.scarab.workflow.WorkflowFactory

public class WorkflowFactory
extends java.lang.Object

This class retrieves the appropriate workflow tool. The DefaultWorkflow is a noop implementation of workflow that always returns true.

Version:
$Id: WorkflowFactory.java 9115 2004-05-14 12:10:49Z thierrylach $
Author:
Elicia David, Daniel Rall, Jon Scott Stevens

Constructor Summary
WorkflowFactory()
           
 
Method Summary
static boolean getForceUseDefault()
          This is used when you want to force the workflow to use the default workflow and override whatever is configured.
static Workflow getInstance()
          Creates a new instance of the configured Workflow implementation, defaulting to DefaultWorkflow if not specified.
static void setForceUseDefault(boolean value)
          This is used when you want to force the workflow to use the default workflow and override whatever is configured.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowFactory

public WorkflowFactory()
Method Detail

setForceUseDefault

public static void setForceUseDefault(boolean value)
This is used when you want to force the workflow to use the default workflow and override whatever is configured. Set it to true to override and false to turn that off again. This is useful during xml import to turn off workflow validation in case the import process doesn't know anything about the workflow process.


getForceUseDefault

public static boolean getForceUseDefault()
This is used when you want to force the workflow to use the default workflow and override whatever is configured. Set it to true to override and false to turn that off again. This is useful during xml import to turn off workflow validation in case the import process doesn't know anything about the workflow process.


getInstance

public static Workflow getInstance()
                            throws ScarabException
Creates a new instance of the configured Workflow implementation, defaulting to DefaultWorkflow if not specified.

Returns:
A Workflow instance.
Throws:
ScarabException - Trouble creating Workflow.


Copyright © 2000-2004 Tigris.org. All Rights Reserved.