Examples of Send


Examples of com.consol.citrus.model.testcase.core.Send

        return action;
    }

    @Override
    public Send convertModel(SendMessageAction definition) {
        Send action = new ObjectFactory().createSend();

        if (definition.getActor() != null) {
            action.setActor(definition.getActor().getName());
        } else if (definition.getEndpoint().getActor() != null) {
            action.setActor(definition.getEndpoint().getActor().getName());
        }

        action.setDescription(definition.getDescription());
        action.setEndpoint(definition.getEndpoint().getName());

        return action;
    }
View Full Code Here

Examples of lupos.event.action.send.Send

    String query = null;
    String htmlCode = null;
    List<String> subscriptionNames = new ArrayList<String>();
    JSONObject template;
    JSONArray templates = null;
    Send send = null;

    if (selectedSendOption.equals("Generate HTML")) {

      JFileChooser chooser = new JFileChooser(".");
      chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
      chooser.setAcceptAllFileFilterUsed(false);

      if (chooser.showDialog(this.view.getFrame(), "Select output directory.") == JFileChooser.APPROVE_OPTION) {
        outPutFolder = chooser.getSelectedFile().getAbsolutePath()
            + "/";
        outPutFolder = outPutFolder.replace(File.separatorChar, '/');
      } else {
        return;
      }
    }

    try {
      templates = subscriptions.getJSONArray("templates");

    } catch (JSONException e) {
      this.view.showError(e.toString());
      e.printStackTrace();
    }

    for (int i = 0; i < templates.length(); i++) {

      try {
        template = templates.getJSONObject(i);
        name = template.getString("name");
        name = name.replaceAll(" ", "");
        subscriptionNames.add(name);
        query = template.getString("query");
        htmlCode = template.getString("htmlCode");

      } catch (JSONException e) {
        this.view.showError(e.toString());
        e.printStackTrace();
      }

      if (selectedSendOption.equals("Generate HTML")) {

        send = new GenerateHTML(name, outPutFolder);

      } else if (selectedSendOption.equals("Send EMail")) {
        //_______________________________________________________________________________________________
        send = new SendEMail("text/html");
        //---------------------------------------------------------------------------------------

      } else if (selectedSendOption.equals("Sliding Window")) {

        send = new SlidingWindow();
      }

      send.init();

      subscribe(new Subscription("#" + this.subcount++ + " " + name,
          query), new PageAction(name, htmlCode, send));

    }
View Full Code Here

Examples of nexj.core.meta.integration.service.Send

               sync.setOnError(getOnError(element));
               step = sync;
            }
            else if (sElement.equals("Send"))
            {
               Send send = new Send(sStepName);
               send.setActivity(activity);
               String sOutput = XMLUtil.getStringAttr(element, "output");
               send.setOutputExpression(m_helper.parse(sOutput, false, activity.getFlow().getPosMap(), null, m_metadata.getGlobalEnvironment()));
               String sInterface = XMLUtil.getStringAttr(element, "interface");

               if (sInterface != null)
               {
                  send.setInterface(m_metadata.defineInterface(sInterface, send));
               }

               step = send;
            }
            else if (sElement.equals("SendReceive"))
            {
               SendReceive send = new SendReceive(sStepName);

               send.setActivity(activity);

               String sOutput = XMLUtil.getStringAttr(element, "output");

               if (sOutput != null)
               {
                  Object outputExpression = m_helper.parse(sOutput, false, activity.getFlow().getPosMap(), Boolean.TRUE, m_metadata.getGlobalEnvironment());
                  send.setOutputExpression(outputExpression);
               }

               String sInterface = XMLUtil.getStringAttr(element, "interface");

               if (sInterface != null)
               {
                  send.setInterface(m_metadata.defineInterface(sInterface, send));
               }

               step = send;
            }
            else if (sElement.equals("Semaphore"))
View Full Code Here

Examples of nexj.core.meta.integration.service.Send

      }
      else if (step instanceof Send)
      {
         openStepElement(step, "Send");

         Send send = (Send)step;

         exportSExpression(send.getOutputExpression(), false, false, null, "output");

         if (send.getInterface() != null)
         {
            m_writer.writeAttribute("interface", send.getInterface().getName());
         }

         m_writer.closeEmptyElement();
      }
      else if (step instanceof Jump)
View Full Code Here

Examples of org.apache.commons.scxml.model.Send

       
        assertEquals(assertValue, SCXMLSerializer.serialize(scxml));
    }
   
    public void testSerializeSend() {
        Send send = new Send();
        send.setSendid("1");
        send.setTarget("newTarget");
        send.setTargettype("newTargetType");
        send.setNamelist("names");
        send.setDelay("4 secs");
        send.setEvent("turnoff");
        send.setHints("guess");
       
        String assertValue = " <send sendid=\"1\" " +
                "target=\"newTarget\" " +
                "targetType=\"newTargetType\" " +
                "namelist=\"names\" " +
View Full Code Here

Examples of org.apache.commons.scxml.model.Send

        List ten_done = ten.getTransitionsList("ten.done");
        assertEquals(1, ten_done.size());
        Transition ten2twenty = (Transition) ten_done.get(0);
        List actions = ten2twenty.getActions();
        assertEquals(1, actions.size());
        Send send = (Send) actions.get(0);
        assertEquals("send1", send.getSendid());
        /* Serialize
        scxmlAsString = serialize(scxml);
        assertNotNull(scxmlAsString);
        String expectedFoo2Serialization =
            "<foo xmlns=\"http://my.test.namespace\" id=\"foo2\">"
View Full Code Here

Examples of org.apache.commons.scxml.model.Send

       
        assertEquals(assertValue, SCXMLSerializer.serialize(scxml));
    }
   
    public void testSerializeSend() {
        Send send = new Send();
        send.setSendid("1");
        send.setTarget("newTarget");
        send.setTargettype("newTargetType");
        send.setNamelist("names");
        send.setDelay("4 secs");
        send.setEvent("turnoff");
        send.setHints("guess");
       
        String assertValue = " <send sendid=\"1\" " +
                "target=\"newTarget\" " +
                "targetType=\"newTargetType\" " +
                "namelist=\"names\" " +
View Full Code Here

Examples of org.apache.commons.scxml.model.Send

       
        assertEquals(assertValue, SCXMLSerializer.serialize(scxml));
    }
   
    public void testSerializeSend() {
        Send send = new Send();
        send.setSendid("1");
        send.setTarget("newTarget");
        send.setTargettype("newTargetType");
        send.setNamelist("names");
        send.setDelay("4s");
        send.setEvent("turnoff");
        send.setHints("guess");
       
        String assertValue = " <send sendid=\"1\" " +
                "target=\"newTarget\" " +
                "targetType=\"newTargetType\" " +
                "namelist=\"names\" " +
View Full Code Here

Examples of org.apache.commons.scxml.model.Send

        assertEquals(assertValue.toString(), returnValue.toString());
    }

    public void testSerializeSendEmptyAttributes() {
        // test a <send event="foo"/>, i.e.most attributes are empty
        Send send = new Send();
        send.setEvent("foo");

        String assertValue = " <send event=\"foo\">\n </send>\n";

        StringBuffer returnValue = new StringBuffer();
        SCXMLSerializer.serializeSend(returnValue, send, " ");
View Full Code Here

Examples of org.apache.commons.scxml.model.Send

       
        assertEquals(assertValue, SCXMLSerializer.serialize(scxml));
    }
   
    public void testSerializeSend() {
        Send send = new Send();
        send.setSendid("1");
        send.setTarget("newTarget");
        send.setTargettype("newTargetType");
        send.setNamelist("names");
        send.setDelay("4 secs");
        send.setEvent("turnoff");
        send.setHints("guess");
       
        String assertValue = " <send sendid=\"1\" " +
                "target=\"newTarget\" " +
                "targetType=\"newTargetType\" " +
                "namelist=\"names\" " +
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.