Package org.openeai.moa

Examples of org.openeai.moa.XmlEnterpriseObject


      queryObjectName = getMessageObject().getName();
      logger.info("Query object name is: " + queryObjectName);
    }
    try {
      // build the query object from the contents of the message (QueryFilter)
      XmlEnterpriseObject xeo = (XmlEnterpriseObject)getExecutorAppConfig().getObject(queryObjectName + "." + generateRelease(getMessageRelease()));
       
      xeo.buildObjectFromInput(getMessageObject());

      // query for all jobs that match criteria passed in
      java.util.List listOfJeos = query((LightweightPerson)xeo, getMessageObjectName(), getMessageRelease());
      if (listOfJeos.size() > 0) {
        logger.info("Adding " + listOfJeos.size() + " " +
          getMessageObjectName() + " objects to the Provide-Reply document.");

        // remove DataArea from primed provide reply document.
        replyDoc.getRootElement().
          getChild(DATA_AREA).
          removeChildren(getMessageObjectName());

        // add an Element to the provide document for each XmlEnterpriseObjectImpl stored in the List
        logger.info("Building reply document...");
        for (int j=0; j<listOfJeos.size(); j++) {
          XmlEnterpriseObject x = (XmlEnterpriseObject)listOfJeos.get(j);

          // Put the Element in the reply document...
          Element eOutput = null;
          EnterpriseLayoutManager outElm = x.getOutputLayoutManager("xml");
          x.setOutputLayoutManager(outElm);
          eOutput = (Element)x.buildOutputFromObject();

          replyDoc.getRootElement().
            getChild(DATA_AREA).
            addContent(eOutput);
        }
View Full Code Here


      }
    }

    try {
      // build the message object from the content of the message (DataArea)
      XmlEnterpriseObject xeo = (XmlEnterpriseObject)getExecutorAppConfig().
        getObject(getMessageObjectName() + "." + generateRelease(getMessageRelease()));

      // getMessageObject returns an element (the DataArea in the create-request)
      xeo.buildObjectFromInput(getMessageObject());

      // create the BasicPerson
      try {
        create((BasicPerson)xeo, getMessageObjectName(), getMessageRelease());
      }
View Full Code Here

      }
    }

    try {
      // build the message object from the content of the message (DataArea)
      XmlEnterpriseObject xeo = (XmlEnterpriseObject)getExecutorAppConfig().
        getObject(getMessageObjectName() + "." + generateRelease(getMessageRelease()));

      XmlEnterpriseObject baselineXeo = (XmlEnterpriseObject)getExecutorAppConfig().
        getObject(getMessageObjectName() + "." + generateRelease(getMessageRelease()));

      // getMessageObject returns an element (the DataArea in the create-request)
      xeo.buildObjectFromInput(getMessageObject());
      baselineXeo.buildObjectFromInput(getBaseline());

      // create the BasicPerson
      try {
        update((BasicPerson)xeo, (BasicPerson)baselineXeo, getMessageObjectName(), getMessageRelease());
      }
View Full Code Here

TOP

Related Classes of org.openeai.moa.XmlEnterpriseObject

Copyright © 2018 www.massapicom. 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.