Package org.jbpm.pvm.internal.cmd

Examples of org.jbpm.pvm.internal.cmd.ExecuteJobCmd


            "where m.execution.dbid = :executionDbid"
        );
        query.setLong("executionDbid", executionDbid);
        query.setMaxResults(1);
        Long messageDbid = (Long) query.uniqueResult();
        ExecuteJobCmd executeJobCommand = new ExecuteJobCmd(messageDbid);
        Job job = executeJobCommand.execute(environment);
        return job.getExecution();
      }
    });
  }
View Full Code Here


            "where t.dbid = :timerDbid"
        );
        query.setLong("timerDbid", timerDbid);
        query.setMaxResults(1);
        Long timerDbid = (Long) query.uniqueResult();
        ExecuteJobCmd executeJobCommand = new ExecuteJobCmd(timerDbid);
        Job job = executeJobCommand.execute(environment);
        return job.getExecution();
      }
    });
  }
View Full Code Here

* @author Tom Baeyens
*/
public class ManagementServiceImpl extends AbstractServiceImpl implements ManagementService {

  public void executeJob(String jobId) {
    commandService.execute(new ExecuteJobCmd(jobId));
  }
View Full Code Here

            jobDbids = queue.take();
            log.debug("took job(s) "+jobDbids+" from queue");

            for (Long jobDbid: jobDbids) {
              CommandService commandService = jobExecutor.getCommandExecutor();
              commandService.execute(new ExecuteJobCmd(jobDbid));
            }
          } catch (InterruptedException e) {
            log.trace("waiting for acquired jobs got interrupted");
          } catch (Exception e) {
            log.error("exception in job executor thread", e);
View Full Code Here

    // messages can also contain a jobId property
    else if (message.getObjectProperty("jobId") != null) {
      String jobId = message.getStringProperty("jobId");
      log.debug("received message with job id " + jobId);
      // create a command with the given jobId
      command = new ExecuteJobCmd(jobId);
    }
    else {
      log.info("WARNING: ignoring message, unknown format: " + message);
    }
    return command;
View Full Code Here

  }

  public void run() {
    try {
      for (Long jobDbid : jobDbids) {
        commandService.execute(new ExecuteJobCmd(jobDbid));
      }
    } catch (RuntimeException e) {
      log.error("exception in job block", e);
    }
  }
View Full Code Here

            "where m.execution.dbid = :executionDbid"
        );
        query.setLong("executionDbid", executionDbid);
        query.setMaxResults(1);
        Long messageDbid = (Long) query.uniqueResult();
        ExecuteJobCmd executeJobCommand = new ExecuteJobCmd(messageDbid);
        Job job = executeJobCommand.execute(environment);
        return job.getExecution();
      }
    });
  }
View Full Code Here

            "where t.dbid = :timerDbid"
        );
        query.setLong("timerDbid", timerDbid);
        query.setMaxResults(1);
        Long timerDbid = (Long) query.uniqueResult();
        ExecuteJobCmd executeJobCommand = new ExecuteJobCmd(timerDbid);
        Job job = executeJobCommand.execute(environment);
        return job.getExecution();
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.cmd.ExecuteJobCmd

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.