Package org.apache.juddi.xlt.flow

Examples of org.apache.juddi.xlt.flow.RegisterBusinessFlow


    //If the property maxNumberOfBusinessServices is not found, the max will be the second argument
    //of the getProperties method call (in this case 2
    int numberOfBusinessService = XltRandom.nextInt(getProperty("maxNumberOfBusinessServices", 1)) + 1;
   
    //Save business under generated name using Auth token and save the above random number of services.
    RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(getAuthenticationToken.getAuthenticationToken(),
        uniqueBusinessName, numberOfBusinessService);
  }
View Full Code Here


   
    //Pick a company name from a previously generated list of business names.
    String businessName = data.getCompany(false);
   
    //Register the business with services
    RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(authToken,
        businessName + "1TDel", numberOfBusinessService);
   
    //Add the returned BusinessEntity to the data pool.
    dataPool.add(registerBusinessFlow.getBusinessDetail().getBusinessEntity().get(0), rate);
  }
View Full Code Here

   
    //Pick a company name from a previously generated list of business names.
    String businessName = data.getCompany(false);
   
    //Register the business with services
    RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(authToken,
        businessName, numberOfBusinessService);
   
    //Add the returned BusinessEntity to the data pool.
    dataPool.add(registerBusinessFlow.getBusinessDetail().getBusinessEntity().get(0));
  }
View Full Code Here

     
      //Pick a company name from a previously generated list of business names.
      String businessName = data.getCompany(false);
     
      //Register the business with services
      RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(getAuthenticationToken.getAuthenticationToken(),
          businessName, numberOfBusinessService);
     
      Thread.sleep(4000);
     
      //Add the returnThread.sleep(8000);ed BusinessEntity to the data pool.
      dataPool.add(registerBusinessFlow.getBusinessDetail().getBusinessEntity().get(0), 100);
       
    }
    else
    {
      //Get a business entity from the pool.
      BusinessEntity businessEntity= dataPool.getDataElement();
     
      if (businessEntity == null)
      {
        //Pick a company name from a previously generated list of business names.
        String businessName = data.getCompany(false);
       
        //Register the business with services
        RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(getAuthenticationToken.getAuthenticationToken(),
            businessName, numberOfBusinessService);
       
        Thread.sleep(4000);
       
        //Add the returnThread.sleep(8000);ed BusinessEntity to the data pool.
        dataPool.add(registerBusinessFlow.getBusinessDetail().getBusinessEntity().get(0), 100);
      }
      else
      {
        //Find the random business by passing it's name and the AuthToken.
        FindBusinessByName findBusinessByName = new FindBusinessByName(getAuthenticationToken.getAuthenticationToken(),
View Full Code Here

    //If the property maxNumberOfBusinessServices is not found, the max will be the second argument
    //of the getProperties method call (in this case 2
    int numberOfBusinessService = XltRandom.nextInt(getProperty("maxNumberOfBusinessServices", 1)) + 1;
   
    //Save business under generated name using Auth token and save the above random number of services.
    RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(getAuthenticationToken.getAuthenticationToken(),
        uniqueBusinessName, numberOfBusinessService);
   
    //Get returned business name (should be the same).
    String businessName = registerBusinessFlow.getBusinessDetail().getBusinessEntity().get(0).getName().get(0).getValue();
   
    //Write business name to file to perform valid searches later.    
    try
    {
            BufferedWriter orders = new BufferedWriter(new FileWriter("/home/jeremi/Desktop/BusinessNames.txt", true));
View Full Code Here

TOP

Related Classes of org.apache.juddi.xlt.flow.RegisterBusinessFlow

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.