Examples of MessageService


Examples of interfaces.MessageService

  public static void main(String[] args) {
    InteractiveTestRunner.run(MessageIntegrationTest.class);
  }

  public void testIntegration() {
    MessageService service = Impala.getBean("messageService", MessageService.class);
    System.out.println(service.getMessage());
  }
View Full Code Here

Examples of net.cloudcodex.server.service.MessageService

    @Before
    public void setUp() {
        helper.setUp();
        DatastoreService store = DatastoreServiceFactory.getDatastoreService();
        campaignService = new CampaignService(store);
        messageService = new MessageService(store);
        homeService = new HomeService(store);
        dao = new AdvancedDAO(store);
       
    master = homeService.createUser(null, "master@test.com", "Master");
      player1 = homeService.createUser(null, "player1@test.com", "Player1");
View Full Code Here

Examples of net.cloudcodex.server.service.MessageService

    @Before
    public void setUp() {
        helper.setUp();
        DatastoreService store = DatastoreServiceFactory.getDatastoreService();
        campaignService = new CampaignService(store);
        messageService = new MessageService(store);
        homeService = new HomeService(store);
        dao = new AdvancedDAO(store);
       
    master = homeService.createUser(null, "master@test.com", "Master");
      player1 = homeService.createUser(null, "player1@test.com", "Player1");
View Full Code Here

Examples of net.cloudcodex.server.service.MessageService

    @Before
    public void setUp() {
        helper.setUp();
        DatastoreService store = DatastoreServiceFactory.getDatastoreService();
        campaignService = new CampaignService(store);
        messageService = new MessageService(store);
        homeService = new HomeService(store);
        dao = new AdvancedDAO(store);
       
    master = homeService.createUser(null, "master@test.com", "Master");
      player1 = homeService.createUser(null, "player1@test.com", "Player1");
View Full Code Here

Examples of org.jbpm.msg.MessageService

    if (actions != null) {
      for (Action action : actions) {
        if (action.acceptsPropagatedEvents() || (!isPropagated)) {
          if (action.isAsync()) {
            ExecuteActionJob job = createAsyncActionExecutionJob(executionContext.getToken(), action);
            MessageService messageService = (MessageService) Services.getCurrentService(Services.SERVICENAME_MESSAGE);
            messageService.send(job);
          } else {
            executeAction(action, executionContext);
          }
        }
      }
View Full Code Here

Examples of org.jbpm.msg.MessageService

    // execute the node
    if (isAsync)
    {
      ExecuteNodeJob job = createAsyncContinuationJob(token);
      MessageService messageService = (MessageService)Services.getCurrentService(Services.SERVICENAME_MESSAGE);
      messageService.send(job);
      token.lock(job.toString());
    }
    else
    {
      execute(executionContext);
View Full Code Here

Examples of org.jbpm.msg.MessageService

      // after the process end updates are posted to the database
      JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
      if (jbpmContext != null)
      {
        Services services = jbpmContext.getServices();
        MessageService messageService = services.getMessageService();
        PersistenceService persistenceService = services.getPersistenceService();
        if (messageService != null
            && persistenceService != null
            && persistenceService.getJobSession().countDeletableJobsForProcessInstance(this) > 0)
        {
          CleanUpProcessJob job = new CleanUpProcessJob(rootToken);
          job.setDueDate(new Date());
          messageService.send(job);
        }
      }
    }
  }
View Full Code Here

Examples of org.jbpm.msg.MessageService

        if ( action.acceptsPropagatedEvents()
             || (!isPropagated)
           ) {
          if (action.isAsync()) {
            Message continuationMsg = new ExecuteActionCommand(action, executionContext.getToken());
            MessageService messageService = (MessageService) Services.getCurrentService(Services.SERVICENAME_MESSAGE);
            messageService.send(continuationMsg);
          } else {
            executeAction(action, executionContext);
          }
        }
      }
View Full Code Here

Examples of org.jbpm.msg.MessageService

    executionContext.setTransitionSource(null);

    // execute the node
    if (isAsync) {
      Message continuationMsg = new ExecuteNodeCommand(this, executionContext.getToken());
      MessageService messageService = (MessageService) Services.getCurrentService(Services.SERVICENAME_MESSAGE);
      messageService.send(continuationMsg);
    } else {
      execute(executionContext);
    }
  }
View Full Code Here

Examples of org.jbpm.msg.MessageService

    }
  }

  void suspendMessages() {
    // notify the message service of this resuming
    MessageService messageService = (MessageService) Services.getCurrentService(Services.SERVICENAME_MESSAGE, false);
    if (messageService!=null) {
      messageService.suspendMessages(this);
    }
  }
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.