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

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


            }
            CreateActivityDocument cad = CreateActivityDocument.Factory
                    .newInstance();
            cad.addNewCreateActivity().addNewActivityDocument()
                    .setJobDefinition(job.getJobDoc().getJobDefinition());
            CreateActivityResponseDocument response = null;
            try {
                response = factory.createActivity(cad);
            } catch (NotAcceptingNewActivitiesFault notAcceptingNewActivitiesFault) {
                notAcceptingNewActivitiesFault.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
            } catch (InvalidRequestMessageFault invalidRequestMessageFault) {
                invalidRequestMessageFault.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
            } catch (UnsupportedFeatureFault unsupportedFeatureFault) {
                unsupportedFeatureFault.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
            }
            EndpointReferenceType activityEpr = response
                    .getCreateActivityResponse().getActivityIdentifier();
            //factory.waitWhileActivityIsDone(activityEpr, 1000);
            jobId = WSUtilities.extractResourceID(activityEpr);
            if (jobId == null) {
                jobId = new Long(Calendar.getInstance().getTimeInMillis())
View Full Code Here


        try {
            factory = new FactoryClient(eprt, secProperties);
        } catch (Exception e) {
            throw new GFacProviderException("");
        }
        CreateActivityResponseDocument response = null;
        try {
            log.info(String.format("Activity Submitting to %s ... \n", factoryUrl));
            response = factory.createActivity(cad);
            log.info(String.format("Activity Submitted to %s \n", factoryUrl));
        } catch (Exception e) {
          e.printStackTrace();
            throw new GFacProviderException("Cannot create activity.", e);
        }
        EndpointReferenceType activityEpr = response
                .getCreateActivityResponse().getActivityIdentifier();
       
        log.debug("Activity EPR: "+activityEpr);
       
        log.info("Activity: "+activityEpr.getAddress().getStringValue()" Submitted.");
View Full Code Here

        try {
            factory = new FactoryClient(eprt, secProperties);
        } catch (Exception e) {
            throw new GFacProviderException("");
        }
        CreateActivityResponseDocument response = null;
        try {
            log.info(String.format("Activity Submitting to %s ... \n", factoryUrl));
            response = factory.createActivity(cad);
            log.info(String.format("Activity Submitted to %s \n", factoryUrl));
        } catch (Exception e) {
          e.printStackTrace();
            throw new GFacProviderException("Cannot create activity.", e);
        }
        EndpointReferenceType activityEpr = response
                .getCreateActivityResponse().getActivityIdentifier();
       
        log.debug("Activity EPR: "+activityEpr);
       
        log.info("Activity: "+activityEpr.getAddress().getStringValue()" Submitted.");
View Full Code Here

    }
  }
 
  protected ActivityStatusType getStatus(FactoryClient fc, EndpointReferenceType activityEpr) throws UnknownActivityIdentifierFault{
   
      GetActivityStatusesDocument stats = GetActivityStatusesDocument.Factory.newInstance();
     
      stats.addNewGetActivityStatuses().setActivityIdentifierArray(new EndpointReferenceType[] {activityEpr});
     
    GetActivityStatusesResponseDocument resDoc = fc.getActivityStatuses(stats);
   
    ActivityStatusType activityStatus = resDoc
        .getGetActivityStatusesResponse()
View Full Code Here

    }
  }
 
  protected ActivityStatusType getStatus(FactoryClient fc, EndpointReferenceType activityEpr) throws UnknownActivityIdentifierFault{
   
      GetActivityStatusesDocument stats = GetActivityStatusesDocument.Factory.newInstance();
     
      stats.addNewGetActivityStatuses().setActivityIdentifierArray(new EndpointReferenceType[] {activityEpr});
     
    GetActivityStatusesResponseDocument resDoc = fc.getActivityStatuses(stats);
   
    ActivityStatusType activityStatus = resDoc
        .getGetActivityStatusesResponse()
View Full Code Here

    }
  }
 
  protected ActivityStatusType getStatus(FactoryClient fc, EndpointReferenceType activityEpr) throws UnknownActivityIdentifierFault{
   
      GetActivityStatusesDocument stats = GetActivityStatusesDocument.Factory.newInstance();
     
      stats.addNewGetActivityStatuses().setActivityIdentifierArray(new EndpointReferenceType[] {activityEpr});
     
    GetActivityStatusesResponseDocument resDoc = fc.getActivityStatuses(stats);
   
    ActivityStatusType activityStatus = resDoc
        .getGetActivityStatusesResponse()
View Full Code Here

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

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

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

    String applicationNameNs = method.getApplication().getApplicationName().getTargetNamespace();
    return new QName(applicationNameNs, applicationName);
  }

  public static GlobusGatekeeperType findGateKeeper(ExecutionContext appExecContext, boolean wsgram) throws GfacException {
    WorkflowContextHeader header = appExecContext.getWorkflowHeader();
    boolean isSpruceEnabled = false;
    if (header != null) {
      isSpruceEnabled = (appExecContext.getWorkflowHeader().getURGENCY() != null);
      ResourceMapping resourceMapping = appExecContext.getWorkflowHeader().getResourceMappings().getResourceMappingArray()[0];
      if (resourceMapping != null) {
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.