Package com.easydesk.workflow
Class WorkflowFactory
java.lang.Object
com.easydesk.workflow.WorkflowFactory
This class retrieves the appropriate workflow tool. The DefaultWorkflow is a noop implementation of workflow that
always returns true.
- Version:
- $Id: WorkflowFactory.java,v 1.24 2007/12/09 14:04:42 youngho Exp $
- Author:
- Elicia David, Daniel Rall, Jon Scott Stevens, Youngho Cho
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean현재 thread 에서 default workflow 를 강제로 사용하는지 여부를 구한다.static Workflow현재 thread 에 대한 Workflow 를 구한다.protected static WorkflowCreates a new instance of the configuredWorkflowimplementation, defaulting toDefaultWorkflowif not specified.static voidsetForceUseDefault(boolean value) This is used when you want to force the workflow to use the default workflow and override whatever is configured.
-
Constructor Details
-
WorkflowFactory
public WorkflowFactory()Creates a new WorkflowFactory object.
-
-
Method Details
-
setForceUseDefault
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.- Parameters:
value-true이면 default workflow 를 강제로 사용한다.- Throws:
Exception- 설정 중 오류가 발생한 경우
-
getForceUseDefault
public static boolean getForceUseDefault()현재 thread 에서 default workflow 를 강제로 사용하는지 여부를 구한다.- Returns:
- default workflow 를 강제로 사용하면
true - See Also:
-
getInstanceImpl
Creates a new instance of the configuredWorkflowimplementation, defaulting toDefaultWorkflowif not specified.- Returns:
- A
Workflowinstance. - Throws:
EasyDeskException- Trouble creatingWorkflow.
-
getInstance
현재 thread 에 대한 Workflow 를 구한다. 없으면 새로 생성하여 Spring bean 주입 후 thread 별로 보관한다.- Returns:
- Workflow
- Throws:
EasyDeskException- Workflow 생성 또는 주입 중 오류가 발생한 경우
-