Package com.opensymphony.workflow

Examples of com.opensymphony.workflow.FactoryException


   */
  public WorkflowDescriptor getWorkflow(String name) throws FactoryException {
    WorkflowDescriptor wd = (WorkflowDescriptor) this.workflows.get(name);

    if (wd == null) {
      throw new FactoryException("Unknown workflow name [" + name + "].");
    }

    return wd;
  }
View Full Code Here


        return null;
    }

    public boolean removeWorkflow(String name) throws FactoryException
    {
        throw new FactoryException("remove workflow not supported");
    }
View Full Code Here

        workflows = (Map)CacheController.getCachedObject("workflowCache", "workflowMap");

        WorkflowConfig c = (WorkflowConfig) workflows.get(name);

        if (c == null) {
            throw new FactoryException("Unknown workflow name \"" + name + "\"");
        }

        if (c.descriptor != null)
        {
            loadWorkflow(c, validate);
View Full Code Here

    }


    public boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException
    {
        throw new FactoryException("Not supported...");
    }
View Full Code Here

            }
            c.descriptor = workflowDescriptor; //WorkflowLoader.load(new ByteArrayInputStream(c.workflowDefinitionVO.getValue().getBytes(encoding)) , validate);
        }
        catch (Exception e)
        {
            throw new FactoryException("Error in workflow descriptor: " + c.workflowDefinitionVO.getName(), e);
        }
    }
View Full Code Here

TOP

Related Classes of com.opensymphony.workflow.FactoryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.