Package edu.indiana.extreme.xbaya.lead

Examples of edu.indiana.extreme.xbaya.lead.LeadContextHeaderHelper


        // Start the workflow instance.
        WsdlDefinitions wsdl = this.workflowClient.start(instance);

        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
                .getLeadContextHeader();

        URI messageBoxURL = null;
        if (this.configuration.isPullMode()) {
            messageBoxURL = this.configuration.getMessageBoxURL();
View Full Code Here


                .getServerLocation();
        logger.finest("client is waiting at " + serverLoc);

        // LEAD Context Header
        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
                .getLeadContextHeader();
        leadContext.setWorkflowId(URI
                .create("http://host/2005/11/09/workflowinstace"));
        leadContext.setNodeId("decoder1");
        leadContext.setTimeStep("5");
View Full Code Here

        WSIFAsyncResponsesCorrelator correlator;
        correlator = null;

        // pass some headers
        LeadContextHeaderHelper helper = new LeadContextHeaderHelper();
        helper.setXBayaConfiguration(new XBayaConfiguration());
        LeadContextHeader leadContext = helper.getLeadContextHeader();
        leadContext.setWorkflowId(URI
                .create("http://host/2005/11/09/workflowinstace"));
        leadContext.setNodeId("decoder1");
        leadContext.setTimeStep("5");
        leadContext.setServiceId("decoder-instance-10");
View Full Code Here

        // Start the workflow instance.
        WsdlDefinitions wsdl = client.start(instance);

        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
                .getLeadContextHeader();

        URI messageBoxURL = null;
        if (this.configuration.isPullMode()) {
            messageBoxURL = this.configuration.getMessageBoxURL();
View Full Code Here

            System.out.println("Invoking operation deploy using WSDL from " + wsdlLoc);
            WSIFAsyncResponsesCorrelator correlator;
            correlator = null;

            // pass some headers
            LeadContextHeaderHelper helper = new LeadContextHeaderHelper();
            helper.setXBayaConfiguration(new XBayaConfiguration());
            LeadContextHeader leadContext = helper.getLeadContextHeader();
            leadContext.setWorkflowId(URI
                    .create("http://host/2005/11/09/workflowinstace"));
            leadContext.setNodeId("decoder1");
            leadContext.setTimeStep("5");
            leadContext.setServiceId("decoder-instance-10");
View Full Code Here

        }

        logger.info(definitions.xmlStringPretty());

        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
                .getLeadContextHeader();

        URI messageBoxURL = null;
        if (this.configuration.isPullMode()) {
            messageBoxURL = this.configuration.getMessageBoxURL();
View Full Code Here

  }

  private void setup(WsdlDefinitions definitions) throws XBayaException {

    // Set LEAD context header.
    LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
    LeadContextHeader leadContext = leadContextHelper
        .getLeadContextHeader();
    leadContext.setEventSink(this.notifier.getEventSink());
    StickySoapHeaderHandler handler = new StickySoapHeaderHandler(
        "use-lead-header", leadContext);
    leadContext.setServiceId(this.nodeID);
View Full Code Here

   * @throws URISyntaxException
   */
  public static LeadContextHeader buildLeadContextHeader(Workflow workflow,
      XBayaConfiguration configuration,  MyLead myLead, MonitorConfiguration monitorConfiguration, String nodeId, LeadResourceMapping resourceMapping)
      throws URISyntaxException {
    LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
    leadContextHelper.setXBayaConfiguration(configuration);
    leadContextHelper.setMyLeadConfiguration(myLead
        .getConfiguration());
   
    leadContextHelper.setWorkflowInstanceID(workflow
        .getGPELInstanceID());
    leadContextHelper.setWorkflowTemplateID(workflow
        .getUniqueWorkflowName());

    leadContextHelper.setMonitorConfiguration(monitorConfiguration);

    LeadContextHeader leadContext = leadContextHelper
        .getLeadContextHeader();
   
    leadContext.setNodeId(nodeId);
   
    leadContext.setTimeStep("1");
View Full Code Here

    return null; // To change body of implemented methods use File |
    // Settings | File Templates.
  }

  private LeadContextHeader getLeadContextHeader() {
    LeadContextHeaderHelper helper = new LeadContextHeaderHelper();
    helper.setXBayaConfiguration(new XBayaConfiguration());
    LeadContextHeader leadContext = helper.getLeadContextHeader();
    leadContext.setWorkflowId(URI
        .create("http://host/2005/11/09/workflowinstace"));
    leadContext.setNodeId("decoder1");
    leadContext.setTimeStep("5");
    leadContext.setServiceId("decoder-instance-10");
View Full Code Here

   * @return
   */
  public LeadContextHeader getDefaultLeadHeader(Workflow workflow,
      String topic, String usedDN, URI instanceID,
      LeadResourceMapping resourceMapping, URI scmsURL) {
    LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();

    leadContextHelper.setXRegistryURL(XBayaConstants.DEFAULT_XREGISTRY_URL);
    leadContextHelper.setGFacURL(XBayaConstants.DEFAULT_GFAC_URL);

    leadContextHelper.setUser(usedDN);
    leadContextHelper
        .setMyLeadAgentURL(XBayaConstants.DEFAULT_MYLEAD_AGENT_URL);
    leadContextHelper.setWorkflowInstanceID(instanceID);
    leadContextHelper.setWorkflowTemplateID(workflow
        .getUniqueWorkflowName());

    MonitorConfiguration monitorConfiguration = new MonitorConfiguration(
        XBayaConstants.DEFAULT_BROKER_URL, topic, true,
        XBayaConstants.DEFAULT_MESSAGE_BOX_URL);
    leadContextHelper.setMonitorConfiguration(monitorConfiguration);

    LeadContextHeader leadContext = leadContextHelper
        .getLeadContextHeader();

    leadContext.setNodeId(workflow.getName());

    leadContext.setTimeStep("1");
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.lead.LeadContextHeaderHelper

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.