Examples of execute()


Examples of org.jboss.soa.esb.services.jbpm.cmd.Command.execute()

    messageFacade.setJBPMContextParameters(message);

        CommandExecutor commandExecutor = CommandExecutor.getInstance();
        String commandString  = (String)message.getBody().get(Constants.COMMAND_CODE);
        Command command = commandExecutor.getCommand(commandString);
        command.execute(message);
        return message;
  }

  /**
   * Adds the current security context to the passed in message.
View Full Code Here

Examples of org.jboss.test.faces.FacesEnvironment.FacesRequest.execute()

    }

    @Test
    public void testRequest() throws Exception {
        FacesRequest request = environment.createFacesRequest("http://localhost/test.jsf?foo=bar");
        assertNotNull(request.execute());
        String contentAsString = request.getConnection().getContentAsString();
        assertFalse(contentAsString.contains(Bean.TEST_SCRIPT));
        FacesRequest request2 = submit(request).submit();
        request2.execute();
        String content2 = request2.getConnection().getContentAsString();
View Full Code Here

Examples of org.jboss.test.jbossts.taskdefs.ClientAction.execute()

            System.err.println("Class " + impl + " cannot be instantiated: " + e.getMessage());
        }

        try
        {
            printResult(action.execute(config, args));
        }
        catch (Exception e)
        {
            System.out.println("Error executing test: " + e.getMessage());
            printResult(false);
View Full Code Here

Examples of org.jboss.test.sessionsync.interfaces.ActionExecutor.execute()

      StatefulSessionHome sessionHome = (StatefulSessionHome) getInitialContext().lookup("StatefulSessionBean");
      final StatefulSession session = sessionHome.create();
      try
      {

         assertEquals("after-begin", executor.execute(new GetAfterBeginEntryAction(session.getHandle())));
         assertEquals("before-completion", executor.execute(new GetBeforeCompletionEntryAction(session.getHandle())));
         assertEquals("after-completion", executor.execute(new GetAfterCompletionEntryAction(session.getHandle())));
      }
      finally
      {
View Full Code Here

Examples of org.jbpm.ant.ProcessDeployer.execute()

    File processDefDir = new File(processDef);
    File[] processFiles = processDefDir.listFiles();
    for (int i= 0; i< processFiles.length; i++) {
      files.add(processFiles[i]);
    }
    pd.execute("localhost", "8080", "/jbpm-console/upload", files);
  }
 
  public void sendStartMessage() throws Exception {
    SendJMSMessageStart sm = new SendJMSMessageStart();
    sm.setupConnection();
View Full Code Here

Examples of org.jbpm.api.ProcessEngine.execute()

    ProcessEngine processEngine = new ConfigurationImpl()
        .skipDbCheck()
        .buildProcessEngine();
   
    try {
      processEngine.execute(new Command<Object>(){
        private static final long serialVersionUID = 1L;
        public Object execute(Environment environment) throws Exception {
          Session session = environment.get(Session.class);
          DbHelper.executeSqlResource("create/jbpm."+database+".create.sql", session);
          PropertyImpl.createProperties(session);
View Full Code Here

Examples of org.jbpm.api.activity.ActivityBehaviour.execute()

   
    try {
      execution.setPropagation(Propagation.UNSPECIFIED);
      execution.setHistoryActivityStart(Clock.getCurrentTime());

      activityBehaviour.execute(execution);
     
    } catch (Exception e) {
      execution.handleException(activity, null, null, e, execution.toString()+" couldn't execute "+activityBehaviour+" for activity "+activity);
    }
   
View Full Code Here

Examples of org.jbpm.client.CommandService.execute()

      }
      CommandService commandService = environmentFactory.get(CommandService.class);
      if (commandService==null) {
        throw new PvmException("environment factory doesn't have a command service");
      }
      commandService.execute(this);
    }
    public Object execute(Environment environment) {
      // reload the execution
      DbSession dbSession = environment.get(DbSession.class);
      if (dbSession==null) {
View Full Code Here

Examples of org.jbpm.command.Command.execute()

     
      if (message!=null) {
        checkForMoreMessages = true;
        Command command = (Command) message;
        log.trace("executing command '"+command+"'");
        command.execute();
      }
     
    } catch (Throwable t) {
      // rollback the transaction
      log.debug("command '"+message+"' threw exception. rolling back transaction", t);
View Full Code Here

Examples of org.jbpm.command.SignalCommand.execute()

                if (actor != null)
                {
                    jbpmContext.setActorId(actor) ;
                }
                final SignalCommand signalCommand = new SignalCommand(tokenId, transitionName) ;
                signalCommand.execute(jbpmContext) ;
            }
            finally
            {
                jbpmContext.setActorId(origActor) ;
            }
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.