Examples of ExecutionImpl


Examples of org.jbpm.pvm.internal.model.ExecutionImpl

        execution.setActivity(parentActivity);
        execution.signal();
      }
       
    } else {
      ExecutionImpl executionToEnd = null;
      if (endProcessInstance) {
        executionToEnd = execution.getProcessInstance();
      } else {
        executionToEnd = execution;
      }
     
      if (state==null) {
        executionToEnd.end();
      } else {
        executionToEnd.end(state);
      }
    }
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.model.ExecutionImpl

 
  Map<String, SwimlaneDefinitionImpl> swimlaneDefinitions = new HashMap<String, SwimlaneDefinitionImpl>();
  Map<String, TaskDefinitionImpl> taskDefinitions = new HashMap<String, TaskDefinitionImpl>();

  protected ExecutionImpl newProcessInstance() {
    return new ExecutionImpl();
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.model.ExecutionImpl

      TaskService taskService = processEngine.getTaskService();
      Task task = taskService.getTask(ref.getReferenceId());

      // access the processdefition
      TaskImpl cast = ((TaskImpl) task);
      ExecutionImpl processInstance = cast.getProcessInstance();
      String processInstanceId =  processInstance.getId();
      String processId =  processInstance.getProcessDefinition().getId();

      RepositoryService repoService = processEngine.getRepositoryService();
      ProcessDefinitionQuery query = repoService.createProcessDefinitionQuery();
      query.processDefinitionId(processId);
      ProcessDefinition procDef = query.uniqueResult();
View Full Code Here

Examples of org.jbpm.pvm.internal.model.ExecutionImpl

    try
    {
      ExecutionService execService = this.processEngine.getExecutionService();
      ProcessInstanceQuery query = execService.createProcessInstanceQuery();
      query.processInstanceId(instanceId);
      ExecutionImpl processInstance = (ExecutionImpl) query.uniqueResult();

      String currentActivity = processInstance.getProcessInstance().getActivityName();

      // get coordinates
      RepositoryService repoService = this.processEngine.getRepositoryService();
      ActivityCoordinates coords = repoService.getActivityCoordinates(
          processInstance.getProcessDefinitionId(), currentActivity
      );


      results.add(new ActiveNodeInfo(
          coords.getWidth(), coords.getHeight(),
View Full Code Here

Examples of org.jbpm.pvm.internal.model.ExecutionImpl

        return res;
    }

    private BpmStep prepareStep(ProcessInstance pi) {
        ExecutionImpl exec = context.getScopeInstance().getExecution();
        MutableBpmStep step = new MutableBpmStep();
        step.setProcessInstance(pi);
        step.setExecutionId(exec.getId());
        step.setStateName(exec.getActivityName());
        List<String> transitionNames = new ArrayList<String>();
        for (Transition transition : exec.getActivity().getOutgoingTransitions()) {
            transitionNames.add(transition.getDestination().getName());
        }
        step.setOutgoingTransitions(transitionNames);
        return step;
    }
View Full Code Here

Examples of org.zkoss.zk.ui.http.ExecutionImpl

      final UiEngine uieng = wappc.getUiEngine();
      final Desktop desktop = wappc.getDesktopCache(sess).getDesktop(dtid);
      final DesktopCtrl desktopCtrl = (DesktopCtrl)desktop;

      final Execution oldexec = Executions.getCurrent();
      final Execution exec = new ExecutionImpl(
        _ctx, request, response, desktop, null);
      uieng.activate(exec);

      final Configuration config = wapp.getConfiguration();
      boolean err = false;
View Full Code Here

Examples of org.zkoss.zk.ui.http.ExecutionImpl

    ((SessionCtrl)sess).notifyClientRequest(keepAlive);

//    if (log.debugable()) log.debug("AU request: "+aureqs);
    final DesktopCtrl desktopCtrl = (DesktopCtrl)desktop;
    final Execution exec =
      new ExecutionImpl(_ctx, request, response, desktop, null);
    if (sid != null)
      ((ExecutionCtrl)exec).setRequestId(sid);

    final AuWriter out = AuWriters.newInstance();
    out.setCompress(_compress);
View Full Code Here

Examples of org.zkoss.zk.ui.http.ExecutionImpl

            .getDesktop(sess, request, response, null, true);
          if (desktop == null) //forward or redirect
            throw new IllegalStateException("sendRediect or forward not allowed in recovering");

          wappc.getUiEngine().execRecover(
            new ExecutionImpl(_ctx, request, response, desktop, null),
            failover);
          return desktop; //success
        }
      } catch (Throwable ex) {
        log.error("Unable to recover "+dtid, ex);
View Full Code Here

Examples of org.zkoss.zk.ui.http.ExecutionImpl

   */
   public static String outZkHtmlTags(ServletContext ctx,
   HttpServletRequest request, HttpServletResponse response,
   String deviceType) {
     Execution old = Executions.getCurrent();
     Execution exec = new ExecutionImpl(ctx, request, response, null, null);
    ExecutionsCtrl.setCurrent(exec);
     ((ExecutionCtrl)exec).onActivate();
    try {
      return HtmlPageRenders.outZkTags(exec,
        WebManager.getWebManager(ctx).getWebApp(),
View Full Code Here

Examples of org.zkoss.zk.ui.http.ExecutionImpl

   */
  public static final String outDeviceStyleSheets(ServletContext ctx,
   HttpServletRequest request, HttpServletResponse response,
   String deviceType) {
     Execution old = Executions.getCurrent();
     Execution exec = new ExecutionImpl(ctx, request, response, null, null);
    ExecutionsCtrl.setCurrent(exec);
     ((ExecutionCtrl)exec).onActivate();
    try {
      return HtmlPageRenders.outLangStyleSheets(exec,
        WebManager.getWebManager(ctx).getWebApp(),
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.