Examples of execute()


Examples of org.jbpm.db.compatibility.JbpmSchemaUpdate.execute()

        schemaExport.execute(false, false, false, true);
        exceptions = CollectionUtil.checkList(schemaExport.getExceptions(), Exception.class);
      }
      else if ("update".equalsIgnoreCase(action)) {
        JbpmSchemaUpdate schemaUpdate = getSchemaUpdate(configuration);
        schemaUpdate.execute(false, false);
        exceptions = schemaUpdate.getExceptions();
      }
      else {
        throw new BuildException("Unsupported action: " + action);
      }
View Full Code Here

Examples of org.jbpm.ejb.LocalCommandService.execute()

        } else {
          throw new ClassCastException("timer info ("+info.getClass().getName()+") is not of the expected class "+TimerInfo.class.getName());
        }
      }
      TimerInfo timerInfo = (TimerInfo) info;
      Timer timer = (Timer) localCommandService.execute(new ExecuteTimerCommand(timerInfo.getTimerId()));
      // if the timer has repeat
      if ( (timer!=null)
           && (timer.getRepeat()!=null)
         ) {
        // create a new timer
View Full Code Here

Examples of org.jbpm.env.session.Job.execute()

  public Object execute(Environment environment) throws Exception {
  Job job = environment.get(JobSession.class).get(jobDbid);

    try {
      log.fine("executing job "+job+"...");
      job.execute(environment);

      // if this job is locked too long, it could be unlocked by the lockmonitor and
      // executed by another thread.
      Date lockExpirationDate = job.getLockExpirationTime();
      //can be null if it was rescheduled
View Full Code Here

Examples of org.jbpm.eventmessaging.EventResponseHandler.execute()

                  }
                    if (!cmd.getArguments().isEmpty() && cmd.getArguments().get(0) instanceof RuntimeException) {
                        responseHandler.setError((RuntimeException) cmd.getArguments().get(0));
                    } else {
                        Payload payload = (Payload) cmd.getArguments().get(0);
                        responseHandler.execute(payload);
                    }
                }
                break;
            }
            case QueryGenericResponse: {
View Full Code Here

Examples of org.jbpm.graph.def.Action.execute()

 
  public void execute(NodeInstance from, String type) {
      Action action = getAction();
        if (action != null) {
            try {
                action.execute(new JpdlExecutionContext());
            } catch (Exception exception) {
                raiseException(exception);
            }
        } else {
            leave();
View Full Code Here

Examples of org.jbpm.graph.def.ActionHandler.execute()

    // we have to use transient variables or otherwise HB will get in the way
    instance.getContextInstance().setTransientVariable(DummyActionHandler.TEST_LABEL,
        applicationContext.getBean("jbpmAction"));
    Token token = instance.getRootToken();

    delegate.execute(new ExecutionContext(token));
  }

  /**
   * @return Returns the processDefinition.
   */
 
View Full Code Here

Examples of org.jbpm.graph.def.Node.execute()

    if (initialNode!=null) {
      ExecutionContext executionContext = new ExecutionContext(rootToken);
      processDefinition.fireEvent(Event.EVENTTYPE_PROCESS_START, executionContext);

      // execute the start node
      initialNode.execute(executionContext);
    }
  }

  // optional module instances ////////////////////////////////////////////////
View Full Code Here

Examples of org.jbpm.job.Job.execute()

  public Object execute(JbpmContext jbpmContext) throws Exception {
    JobSession jobSession = jbpmContext.getJobSession();
    log.debug("loading job "+jobId);
    Job job = jobSession.loadJob(jobId);
    log.debug("executing job "+jobId);
    if (!job.execute(jbpmContext)) {
      log.warn("job "+jobId+" was not supposed to be deleted");
    }
    jobSession.deleteJob(job);
    return null;
  }
View Full Code Here

Examples of org.jbpm.job.Timer.execute()

  public Object execute(JbpmContext jbpmContext) throws Exception {
    Timer timer = (Timer) jbpmContext.getJobSession().getJob(timerId);
    if (timer!=null) {
      log.debug("executing timer "+timerId);
      timer.execute(jbpmContext);
    } else {
      log.info("execution of timer "+timerId+" was skipped cause the timer was deleted from the database");
    }
    return timer;
  }
View Full Code Here

Examples of org.jbpm.process.instance.impl.Action.execute()

  protected void executeAction(DroolsAction droolsAction) {
    Action action = (Action) droolsAction.getMetaData("Action");
    ProcessContext context = new ProcessContext(getProcessInstance().getKnowledgeRuntime());
    context.setNodeInstance(this);
    try {
      action.execute(context);
    } catch (Exception exception) {
      exception.printStackTrace();
      String exceptionName = exception.getClass().getName();
      ExceptionScopeInstance exceptionScopeInstance = (ExceptionScopeInstance)
        resolveContextInstance(ExceptionScope.EXCEPTION_SCOPE, exceptionName);
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.