Package gri.tasks.managers.workflows

Examples of gri.tasks.managers.workflows.WorkflowInfo


            String xml = service.getWorkflowInfo(id);
            Document doc = buildXML(xml);
            throwExceptions(doc);
           
            Element rootElem = doc.getRootElement();
            WorkflowInfo info = serializers.getWorkflowInfoSerializer()
                .readWorkflowInfo(rootElem);
            return info;
        }
        catch(UnknownWorkflowException e) {
            throw new UnknownWorkflowException(id);
View Full Code Here


            config.put("TASK_INFO_MANAGER", taskManager);
            config.put("WORKFLOW_MANAGER", this);
            config.put("WORKFLOW_MANAGER_SERVICE", this.service);
            config.put("WORKFLOW_ID", wkflId);
           
            WorkflowInfo info = getWorkflowInfo(wkflId);
            String taskId = info.getJobInfo(jobIndex).getTaskId();
                       
            JDOMSerializer serializer = serializers
                .getWorkflowSerializerSet(this)
                .getOutputParameterSerializer(jobIndex, taskId, config);
          
View Full Code Here

 
  //process:
  try {
     
      WorkflowManager wkflManager = getWorkflowManager();
      WorkflowInfo wkflInfo = wkflManager.getWorkflowInfo(wkflId);
      String taskId = wkflInfo.getJobInfo(jobIndex).getTaskId();
     
      RunningJobInfo jobInfo = jobInfoManager.getJobInfo(wkflId);
                
            //create serializer config:
            Map config = new HashMap();
View Full Code Here

   
    // -------------------------------------------------------- Workflow Info
   
    public String getWorkflowInfo(String id) throws IOException {
        try {
            WorkflowInfo info = getWorkflowManager().getWorkflowInfo(id);
           
            Element elem = new Element("workflowInfo");
            serializers.getWorkflowInfoSerializer().write(info, elem);
            return xmlUtil.writeXML(elem);
        }
View Full Code Here

  Element jobsElem = elem.getChild("jobs");
  if (jobsElem == null)
      throw new MissingElementException("jobs");
  List jobs = jobInfoListSerializer.readList(jobsElem);

        WorkflowInfo info = new WorkflowInfo(id, toInfoArray(jobs));
       
        //status:
        Element statusElem = elem.getChild("status");
  if (statusElem != null) {
      int status = Util.parseJobStatus(statusElem.getText());
      info.setStatus(status);
  }
       
        return info;
    }
View Full Code Here

TOP

Related Classes of gri.tasks.managers.workflows.WorkflowInfo

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.