Package org.apache.oodt.cas.workflow.structs.exceptions

Examples of org.apache.oodt.cas.workflow.structs.exceptions.WorkflowTaskInstanceException


          .getProperty("mail.to"), false));
      msg.setText(msgTxt);
      Transport.send(msg);

    } catch (MessagingException e) {
      throw new WorkflowTaskInstanceException(e.getMessage());
    }

  }
View Full Code Here


    try {
      wm = new XmlRpcWorkflowManagerClient(new URL(
          metadata.getMetadata(CoreMetKeys.WORKFLOW_MANAGER_URL)));
      wm.sendEvent(config.getProperty("eventName"), metadata);
    } catch (Exception e) {
      throw new WorkflowTaskInstanceException(e.getMessage());
    }
  }
View Full Code Here

         // Commit dynamic metadata.
         updateDynamicMetadata();
      } catch (Exception e) {
         logger.log(Level.SEVERE, "PGETask FAILED!!! : " + e.getMessage(), e);
         throw new WorkflowTaskInstanceException("PGETask FAILED!!! : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

  public void run(Metadata metadata, WorkflowTaskConfiguration config)
      throws WorkflowTaskInstanceException {
    String conditionClassName = config.getProperty("ConditionClassName");
    if (conditionClassName == null
        || (conditionClassName != null && conditionClassName.equals(""))) {
      throw new WorkflowTaskInstanceException(
          "Condition class name is null or " + "unreadable: ["
              + conditionClassName + "]: unable to run ConditionTaskInstance!");
    }

    LOG.log(Level.INFO, "ConditionTaskInstance: evaluating condition: ["
        + conditionClassName + "]");
    WorkflowConditionInstance cond = GenericWorkflowObjectFactory
        .getConditionObjectFromClassName(conditionClassName);
    WorkflowConditionConfiguration condConfig = fromWorkflowTaskConfig(config);
    if (!cond.evaluate(metadata, condConfig)) {
      throw new WorkflowTaskInstanceException("Condition: ["
          + conditionClassName + "] failed!");
    }

  }
View Full Code Here

      }
      LOG.log(Level.INFO, "Creating job file: [" + jobFilePath + "]");
      pw = new PrintWriter(new FileOutputStream(jobFilePath));
      pw.println("StartDateTime=" + metadata.getMetadata("StartDateTime"));
    } catch (FileNotFoundException e) {
      throw new WorkflowTaskInstanceException(e.getMessage());
    } finally {
      if (pw != null) {
        try {
          pw.close();
        } catch (Exception ignore) {
View Full Code Here

            this.runPge();
            this.processOutput();
            this.updateDynamicMetadata();
            this.ingestProducts();
        } catch (Exception e) {
            throw new WorkflowTaskInstanceException("PGETask failed : "
                    + e.getMessage(), e);
        }
    }
View Full Code Here

         // Commit dynamic metadata.
         updateDynamicMetadata();
      } catch (Exception e) {
         logger.log(Level.SEVERE, "PGETask FAILED!!! : " + e.getMessage(), e);
         throw new WorkflowTaskInstanceException("PGETask FAILED!!! : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

          + metadata.getMetadata("StartDateTime") + ".job";
      LOG.log(Level.INFO, "Creating job file: [" + jobFilePath + "]");
      pw = new PrintWriter(new FileOutputStream(jobFilePath));
      pw.println("StartDateTime=" + metadata.getMetadata("StartDateTime"));
    } catch (FileNotFoundException e) {
      throw new WorkflowTaskInstanceException(e.getMessage());
    } finally {
      if (pw != null) {
        try {
          pw.close();
        } catch (Exception ignore) {
View Full Code Here

         // Commit dynamic metadata.
         updateDynamicMetadata();
      } catch (Exception e) {
         logger.log(Level.SEVERE, "PGETask FAILED!!! : " + e.getMessage(), e);
         throw new WorkflowTaskInstanceException("PGETask FAILED!!! : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.workflow.structs.exceptions.WorkflowTaskInstanceException

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.