Package org.ogce.namespaces.x2010.x08.x30.workflowContextHeader.WorkflowContextHeaderDocument

Examples of org.ogce.namespaces.x2010.x08.x30.workflowContextHeader.WorkflowContextHeaderDocument.WorkflowContextHeader


            (OrderService) new XFireProxyFactory().create(serviceModel, url);
       
        PurchaseOrderDocument poDoc = PurchaseOrderDocument.Factory.newInstance();
        PurchaseOrderType po = poDoc.addNewPurchaseOrder();
       
        Address add = Address.Factory.newInstance();
        add.setName("Jane Doe");
        add.setStreet("123 Main St");
        add.setCountry("USA");
       
        po.setBillTo(add);
        po.setShipTo(add);
       
        po.setOrderDate(Calendar.getInstance());
View Full Code Here


        Service serviceModel = xsf.create(OrderService.class);
       
        OrderService client =
            (OrderService) new XFireProxyFactory().create(serviceModel, url);
       
        PurchaseOrderDocument poDoc = PurchaseOrderDocument.Factory.newInstance();
        PurchaseOrderType po = poDoc.addNewPurchaseOrder();
       
        Address add = Address.Factory.newInstance();
        add.setName("Jane Doe");
        add.setStreet("123 Main St");
        add.setCountry("USA");
View Full Code Here

        throws XFireFault
    {
        PurchaseOrderType order = purchaseOrder.getPurchaseOrder();
        order.setPurchaseOrderId(count++);

        PurchaseOrderIdDocument pid = PurchaseOrderIdDocument.Factory.newInstance();
        pid.setPurchaseOrderId(order.getPurchaseOrderId());

        return pid;
    }
View Full Code Here

       
        OrderService client =
            (OrderService) new XFireProxyFactory().create(serviceModel, url);
       
        PurchaseOrderDocument poDoc = PurchaseOrderDocument.Factory.newInstance();
        PurchaseOrderType po = poDoc.addNewPurchaseOrder();
       
        Address add = Address.Factory.newInstance();
        add.setName("Jane Doe");
        add.setStreet("123 Main St");
        add.setCountry("USA");
       
        po.setBillTo(add);
        po.setShipTo(add);
       
        po.setOrderDate(Calendar.getInstance());
       
        System.out.println("Purchase Order ID: " + client.receiveOrder(poDoc).getPurchaseOrderId());
    }
View Full Code Here

    }

    public PurchaseOrderIdDocument receiveOrder(PurchaseOrderDocument purchaseOrder)
        throws XFireFault
    {
        PurchaseOrderType order = purchaseOrder.getPurchaseOrder();
        order.setPurchaseOrderId(count++);

        PurchaseOrderIdDocument pid = PurchaseOrderIdDocument.Factory.newInstance();
        pid.setPurchaseOrderId(order.getPurchaseOrderId());

        return pid;
    }
View Full Code Here

  private ApplicationJobStatus getApplicationJobStatus(ActivityStatusType activityStatus){
    if (activityStatus==null){
      return ApplicationJobStatus.UNKNOWN;
    }
    Enum state = activityStatus.getState();
    if (ActivityStateEnumeration.PENDING.equals(state)){
      return ApplicationJobStatus.PENDING;
    } else if (ActivityStateEnumeration.CANCELLED.equals(state)){
      return ApplicationJobStatus.CANCELLED;
    } else if (ActivityStateEnumeration.FAILED.equals(state)){
View Full Code Here

  private ApplicationJobStatus getApplicationJobStatus(ActivityStatusType activityStatus){
    if (activityStatus==null){
      return ApplicationJobStatus.UNKNOWN;
    }
    Enum state = activityStatus.getState();
    if (ActivityStateEnumeration.PENDING.equals(state)){
      return ApplicationJobStatus.PENDING;
    } else if (ActivityStateEnumeration.CANCELLED.equals(state)){
      return ApplicationJobStatus.CANCELLED;
    } else if (ActivityStateEnumeration.FAILED.equals(state)){
View Full Code Here

  private JobState getApplicationJobStatus(ActivityStatusType activityStatus){
        if (activityStatus == null) {
            return JobState.UNKNOWN;
        }
        Enum state = activityStatus.getState();
        String status = null;
        XmlCursor acursor = activityStatus.newCursor();
        try {
            if (acursor.toFirstChild()) {
                if (acursor.getName().getNamespaceURI().equals("http://schemas.ogf.org/hpcp/2007/01/fs")) {
View Full Code Here

       
        //TODO publish the status messages to the message bus
        while ((factory.getActivityStatus(activityEpr) != ActivityStateEnumeration.FINISHED) &&
                (factory.getActivityStatus(activityEpr) != ActivityStateEnumeration.FAILED)){
         
            ActivityStatusType activityStatus = null;
        try {
          activityStatus = getStatus(factory, activityEpr);
          log.info (subStatusAsString(activityStatus));
        } catch (UnknownActivityIdentifierFault e) {
          throw new GFacProviderException(e.getMessage(), e.getCause());
        }
 
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
            }
            continue;
        }
       
        ActivityStatusType activityStatus = null;
    try {
      activityStatus = getStatus(factory, activityEpr);
    } catch (UnknownActivityIdentifierFault e) {
      throw new GFacProviderException(e.getMessage(), e.getCause());
    }
       
        log.info(formatStatusMessage(activityEpr.getAddress().getStringValue(), activityStatus.getState().toString()));
       
    if ((activityStatus.getState() == ActivityStateEnumeration.FAILED)) {
        log.info(activityStatus.getFault().getFaultcode().getLocalPart()
            + "\n" + activityStatus.getFault().getFaultstring());
        log.info("EXITCODE: "+activityStatus.getExitCode());
    }
  }
View Full Code Here

     
      stats.addNewGetActivityStatuses().setActivityIdentifierArray(new EndpointReferenceType[] {activityEpr});
     
    GetActivityStatusesResponseDocument resDoc = fc.getActivityStatuses(stats);
   
    ActivityStatusType activityStatus = resDoc
        .getGetActivityStatusesResponse()
        .getResponseArray()[0].getActivityStatus();
    return activityStatus;
  }
View Full Code Here

TOP

Related Classes of org.ogce.namespaces.x2010.x08.x30.workflowContextHeader.WorkflowContextHeaderDocument.WorkflowContextHeader

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.