Examples of receiveMessage()


Examples of de.danet.an.workflow.api.Channel.receiveMessage()

        break;
    }
      }
      process.start();
      assertTrue (stateReached (sleepAct, "open.running"));
      Map pd = chan.receiveMessage();
      assertTrue ("Hello world!".equals(pd.get("message")));
      assertTrue (stateReached (process, "closed.completed"));
      procDir.removeProcess(process);
  } finally {
            workflowService.release (chan);
View Full Code Here

Examples of de.danet.an.workflow.api.Channel.receiveMessage()

      chan = workflowService.getChannel(process, "test_channel");
      Map pd = new HashMap ();
      pd.put ("message", "Do you echo?");
      chan.sendMessage(pd);
      process.start();
      pd = chan.receiveMessage();
      assertTrue ("Got: " + pd.get("message"),
      "Do you echo?".equals(pd.get("message")));
      assertTrue (stateReached (process, "closed.completed"));
      procDir.removeProcess(process);
  } finally {
View Full Code Here

Examples of de.danet.an.workflow.api.Channel.receiveMessage()

      chan = workflowService.getChannel(process, "test_channel");
      Map pd = new HashMap ();
      pd.put ("message", "Do you echo?");
      chan.sendMessage(pd);
      process.start();
      pd = chan.receiveMessage();
      assertTrue ("Got: " + pd.get("message"),
      "Do you echo?".equals(pd.get("message")));
      assertTrue (stateReached (process, "closed.completed"));
      pd = process.processContext();
      assertTrue (pd.get("feedback").equals ("Got message"));
View Full Code Here

Examples of de.danet.an.workflow.api.Channel.receiveMessage()

    ("chabacc", "chabacc_test_close_notification");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      chan = workflowService.getChannel(process, "test_channel");
      process.start();
      Map pd = chan.receiveMessage();
      assertTrue (pd == null);
      assertTrue (stateReached (process, "closed.completed"));
      procDir.removeProcess(process);
  } finally {
            workflowService.release(chan);
View Full Code Here

Examples of de.danet.an.workflow.api.Channel.receiveMessage()

                ("chabacc", "chabacc_test_sender");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            chan = workflowService.getChannel(process, "test_channel");
            process.start();
            Map pd = chan.receiveMessage();
            return pd;
        } catch (RemoteException e) {
            throw new EJBException (e);
        } finally {
            workflowService.release(chan);
View Full Code Here

Examples of de.danet.an.workflow.api.Channel.receiveMessage()

                ("chabacc", "chabacc_test_sender");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            chan = workflowService.getChannel(process, "test_channel");
            process.start();
            Map pd = chan.receiveMessage(timeout);
            return pd;
        } catch (RemoteException e) {
            throw new EJBException (e);
        } finally {
          workflowService.release (chan);
View Full Code Here

Examples of mage.client.chat.ChatPanel.receiveMessage()

      }
      else if (callback.getMethod().equals("chatMessage")) {
        ChatMessage message = (ChatMessage) callback.getData();
        ChatPanel panel = session.getChats().get(message.getChatId());
        if (panel != null)
          panel.receiveMessage(message.getMessage(), message.getColor());
      }
      else if (callback.getMethod().equals("replayInit")) {
        session.getGame().init((GameView) callback.getData());
      }
      else if (callback.getMethod().equals("replayDone")) {
View Full Code Here

Examples of mage.client.chat.ChatPanel.receiveMessage()

                                    }
                                    // send the message to subchat if exists and it's not a game message
                                    if (!message.getMessageType().equals(MessageType.GAME) && panel.getConnectedChat() != null) {
                                        panel.getConnectedChat().receiveMessage(message.getUsername(), message.getMessage(), message.getTime(), message.getMessageType(), ChatMessage.MessageColor.BLACK);
                                    } else {
                                        panel.receiveMessage(message.getUsername(), message.getMessage(), message.getTime(), message.getMessageType(),  message.getColor());
                                    }
                                   
                                }       break;
                            }
                        case "serverMessage":
View Full Code Here

Examples of mage.client.chat.ChatPanel.receiveMessage()

        if (chatPanel.getConnectedChat() != null) {
            usedPanel = chatPanel.getConnectedChat();
        }
        switch (usedPanel.getChatType()) {
            case GAME:
                usedPanel.receiveMessage("", new StringBuilder("You may use hot keys to play faster:")
                        .append("<br/>Turn mousewheel up (ALT-e) - enlarge image of card the mousepointer hovers over")
                        .append("<br/>Turn mousewheel down (ALT-s) - enlarge original/alternate image of card the mousepointer hovers over")
                        .append("<br/><b>F2</b> - Confirm \"Ok\", \"Yes\" or \"Done\" button")
                        .append("<br/><b>F4</b> - Skip current turn but stop on declare attackers/blockers and something on the stack")
                        .append("<br/><b>F5</b> - Skip to next end step but stop on declare attackers/blockers and something on the stack")
View Full Code Here

Examples of mage.client.chat.ChatPanel.receiveMessage()

                        .append("<br/><b>F9</b> - Skip everything until your next turn")
                        .append("<br/><b>F3</b> - Undo F4/F5/F7/F9").toString(),
                        null, MessageType.USER_INFO, ChatMessage.MessageColor.BLUE);
                break;
            case TOURNAMENT:
                usedPanel.receiveMessage("", new StringBuilder("On this panel you can see the players, their state and the results of the games of the tournament. Also you can chat with the competitors of the tournament.").toString(),
                        null,  MessageType.USER_INFO, ChatMessage.MessageColor.BLUE);
                break;
            case TABLES:
                usedPanel.receiveMessage("", new StringBuilder("Download card images by using the \"Images\" menu to the top right .")
                        .append("<br/>Download icons and symbols by using the \"Symbols\" menu to the top right.")
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.