Examples of WorkflowFactory


Examples of org.apache.lenya.cms.workflow.WorkflowFactory

    if (eventName == null) {
      log.debug("No workflow event.");
    } else {
      log.debug("Workflow event: [" + eventName + "]");
      // check for workflow instance first (task can initialize the workflow history)
      WorkflowFactory factory = WorkflowFactory.newInstance();
      try {
        document = publication.getDocumentBuilder().buildDocument(publication, webappUrl);
      } catch (DocumentBuildException e) {
        throw new ExecutionException(e);
      }
      doTransition = factory.hasWorkflow(document);
    }
  }
View Full Code Here

Examples of org.apache.lenya.cms.workflow.WorkflowFactory

   */
  public void invokeTransition() throws ExecutionException {
    if (doTransition) {

      try {
        WorkflowFactory factory = WorkflowFactory.newInstance();
        SynchronizedWorkflowInstances instance =
          factory.buildSynchronizedInstance(document);
        Situation situation =
          factory.buildSituation(getRoleIDs(), getUserId(), getMachineIp());

        Event event = null;
        Event[] events = instance.getExecutableEvents(situation);

        log.debug("Resolved executable events.");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.