Class WorkflowFactory

java.lang.Object
com.easydesk.workflow.WorkflowFactory

public class WorkflowFactory extends Object
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 Details

    • WorkflowFactory

      public WorkflowFactory()
      Creates a new WorkflowFactory object.
  • Method Details

    • setForceUseDefault

      public static void setForceUseDefault(boolean value) throws Exception
      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

      protected static Workflow getInstanceImpl() throws EasyDeskException
      Creates a new instance of the configured Workflow implementation, defaulting to DefaultWorkflow if not specified.
      Returns:
      A Workflow instance.
      Throws:
      EasyDeskException - Trouble creating Workflow.
    • getInstance

      public static Workflow getInstance() throws EasyDeskException
      현재 thread 에 대한 Workflow 를 구한다. 없으면 새로 생성하여 Spring bean 주입 후 thread 별로 보관한다.
      Returns:
      Workflow
      Throws:
      EasyDeskException - Workflow 생성 또는 주입 중 오류가 발생한 경우