Package org.infoglue.cms.util.workflow

Examples of org.infoglue.cms.util.workflow.WorkflowFacade


        session = hibernateSessionFactory.openSession();
        tx = session.beginTransaction();

        if(getIsAccessApproved(name, principal))
        {
          WorkflowFacade wf = new WorkflowFacade(principal, name, actionId, inputs, hibernateSessionFactory, session);
          workflowVO = wf.createWorkflowVO();

          session.flush();

          tx.commit();
        }
View Full Code Here


    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();
     
      WorkflowFacade wf = new WorkflowFacade(userPrincipal, hibernateSessionFactory, session);
      final List<WorkflowVO> allWorkflows = wf.getDeclaredWorkflows();
     
      for(final Iterator<WorkflowVO> i = allWorkflows.iterator(); i.hasNext(); )
      {
        final WorkflowVO workflowVO = i.next();
        if(getIsAccessApproved(workflowVO.getName(), userPrincipal))
View Full Code Here

    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(userPrincipal, hibernateSessionFactory, session);
      list = wf.getActiveWorkflows(maxNumberOfWorkflows);
     
      session.flush();

      tx.commit();
    }
View Full Code Here

    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(userPrincipal, hibernateSessionFactory, session);
      list = wf.getMyActiveWorkflows(userPrincipal, maxNumberOfWorkflows);
     
      session.flush();

      tx.commit();
    }
View Full Code Here

    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(principal, workflowId, hibernateSessionFactory, session);
      wf.doAction(actionId, inputs);

      session.flush();

      tx.commit();
    }
    catch (Exception e)
    {
      logger.error("An error occurred when we tries to execute invokeAction():" + e.getMessage(), e);
      try
      {
        tx.rollback();
      }
      catch (HibernateException he)
      {
        logger.error("An error occurred when we tries to rollback transaction:" + he.getMessage(), he);
      }
      restoreSessionFactory(e);
    }
    finally
    {
      try
      {
        session.close();
        }
      catch (HibernateException e)
      {
        logger.error("An error occurred when we tries to close session:" + e.getMessage(), e);
      }
    }
     
    try
    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(principal, workflowId, hibernateSessionFactory, session);

      workflowVO = wf.createWorkflowVO();
     
      session.flush();

      tx.commit();
    }
View Full Code Here

    try
    {
      session = hibernateSessionFactory.openSession();
      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(userPrincipal, workflowId, hibernateSessionFactory, session);
      propertySet = wf.getPropertySet();
   
      session.flush();

      tx.commit();
    }
View Full Code Here

  {
    PropertySet propertySet = null;
   
    try
    {
      WorkflowFacade wf = new WorkflowFacade(userPrincipal, workflowId, hibernateSessionFactory, session);
      propertySet = wf.getPropertySet();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

    try
    {
      session = hibernateSessionFactory.openSession();
      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(userPrincipal, workflowId, hibernateSessionFactory, session);
      historySteps = wf.getHistorySteps();
     
      session.flush();

      tx.commit();
    }
View Full Code Here

    try
    {
      session = hibernateSessionFactory.openSession();
      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(userPrincipal, workflowId, hibernateSessionFactory, session);
      currentSteps = wf.getCurrentSteps();
     
      session.flush();

      tx.commit();
    }
View Full Code Here

    try
    {
      session = hibernateSessionFactory.openSession();
      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(userPrincipal, workflowId, hibernateSessionFactory, session);
      declaredSteps = wf.getDeclaredSteps();
     
      session.flush();

      tx.commit();
    }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.util.workflow.WorkflowFacade

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.