CommandExecutor commandExecutor = processEngineConfiguration.getCommandExecutorTxRequired();
commandExecutor.execute(new Command<Void>() {
public Void execute(CommandContext commandContext) {
JobManager jobManager = commandContext.getJobManager();
jobManager.send(createTweetMessage("message-one"));
jobManager.send(createTweetMessage("message-two"));
jobManager.send(createTweetMessage("message-three"));
jobManager.send(createTweetMessage("message-four"));
jobManager.schedule(createTweetTimer("timer-one", new Date()));
jobManager.schedule(createTweetTimer("timer-two", new Date()));