Class SimpleConfiguration

  • All Implemented Interfaces:
    com.opensymphony.workflow.config.Configuration

    public class SimpleConfiguration
    extends Object
    implements com.opensymphony.workflow.config.Configuration
    Really simple OSWorkflow configuration, allowing to setup the WorkflowFactory and the WorkflowStore outside this class.
    • Constructor Detail

      • SimpleConfiguration

        public SimpleConfiguration​(com.opensymphony.workflow.loader.WorkflowFactory factory,
                                   com.opensymphony.workflow.spi.WorkflowStore store)
        Constructor.
        Parameters:
        factory - the WorkflowFactory to manipulate workflow descriptors
        store - the WorkflowStore for persisting data
    • Method Detail

      • getPersistence

        public String getPersistence()
        Specified by:
        getPersistence in interface com.opensymphony.workflow.config.Configuration
      • getPersistenceArgs

        public Map getPersistenceArgs()
        Specified by:
        getPersistenceArgs in interface com.opensymphony.workflow.config.Configuration
      • getVariableResolver

        public com.opensymphony.workflow.util.VariableResolver getVariableResolver()
        Specified by:
        getVariableResolver in interface com.opensymphony.workflow.config.Configuration
      • getWorkflow

        public com.opensymphony.workflow.loader.WorkflowDescriptor getWorkflow​(String name)
                                                                        throws com.opensymphony.workflow.FactoryException
        Specified by:
        getWorkflow in interface com.opensymphony.workflow.config.Configuration
        Throws:
        com.opensymphony.workflow.FactoryException
      • getWorkflowNames

        public String[] getWorkflowNames()
                                  throws com.opensymphony.workflow.FactoryException
        Specified by:
        getWorkflowNames in interface com.opensymphony.workflow.config.Configuration
        Throws:
        com.opensymphony.workflow.FactoryException
      • getWorkflowStore

        public com.opensymphony.workflow.spi.WorkflowStore getWorkflowStore()
                                                                     throws com.opensymphony.workflow.StoreException
        Specified by:
        getWorkflowStore in interface com.opensymphony.workflow.config.Configuration
        Throws:
        com.opensymphony.workflow.StoreException
      • isInitialized

        public boolean isInitialized()
        Specified by:
        isInitialized in interface com.opensymphony.workflow.config.Configuration
      • isModifiable

        public boolean isModifiable​(String name)
        Specified by:
        isModifiable in interface com.opensymphony.workflow.config.Configuration
      • load

        public void load​(URL url)
                  throws com.opensymphony.workflow.FactoryException
        Specified by:
        load in interface com.opensymphony.workflow.config.Configuration
        Throws:
        com.opensymphony.workflow.FactoryException
      • removeWorkflow

        public boolean removeWorkflow​(String workflow)
                               throws com.opensymphony.workflow.FactoryException
        Specified by:
        removeWorkflow in interface com.opensymphony.workflow.config.Configuration
        Throws:
        com.opensymphony.workflow.FactoryException
      • saveWorkflow

        public boolean saveWorkflow​(String name,
                                    com.opensymphony.workflow.loader.WorkflowDescriptor descriptor,
                                    boolean replace)
                             throws com.opensymphony.workflow.FactoryException
        Specified by:
        saveWorkflow in interface com.opensymphony.workflow.config.Configuration
        Throws:
        com.opensymphony.workflow.FactoryException