congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ErrorDocumentService
Code IndexAdd Tabnine to your IDE (free)

How to use
ErrorDocumentService
in
net.sf.taverna.t2.reference

Best Java code snippets using net.sf.taverna.t2.reference.ErrorDocumentService (Showing top 20 results out of 315)

origin: net.sf.taverna.t2.activities/external-tool-activity

  results.put(cur.getKey(), ref);
} else {
  ErrorDocument ed = referenceService.getErrorDocumentService().registerError("No result for " + cur.getKey(), 0, getContext());
  results.put(cur.getKey(), ed);
origin: net.sf.taverna.t2.workbench.views/results

public static List<ErrorDocument> getErrorDocuments(T2Reference reference, InvocationContext context) {
  List<ErrorDocument> errorDocuments = new ArrayList<ErrorDocument>();
  if (reference.getReferenceType().equals(T2ReferenceType.ErrorDocument)) {
    ErrorDocumentService errorDocumentService = context.getReferenceService().getErrorDocumentService();
    errorDocuments.add(errorDocumentService.getError(reference));			
  } else if (reference.getReferenceType().equals(T2ReferenceType.IdentifiedList)) {
    ListService listService = context.getReferenceService().getListService();
    IdentifiedList<T2Reference> list = listService.getList(reference);
    for (T2Reference listReference : list) {
      errorDocuments.addAll(getErrorDocuments(listReference, context));
    }
  }
  return errorDocuments;
}

origin: net.sf.taverna.t2.core/reference-impl

public boolean delete(T2Reference reference)
    throws ReferenceServiceException {
  boolean result=false;
  switch (reference.getReferenceType()) {
  case IdentifiedList:
    result=listService.delete(reference);
    break;
  case ReferenceSet:
    result=referenceSetService.delete(reference);
    break;
  case ErrorDocument:
    result=errorDocumentService.delete(reference);
    break;
  default:
    throw new ReferenceServiceException(
        "Unknown reference type!");
  }
  return result;
}
origin: net.sf.taverna.t2.component/component-activity

private T2Reference replaceErrors(T2Reference value, int depth,
    List<T2Reference> exceptions) {
  ErrorDocument doc = errorService.getError(value);
  HandleException matchingHandleException = null;
          for (T2Reference newErrorRef : getErrors(subRef)) {
            ErrorDocument subDoc = errorService
                .getError(newErrorRef);
            if (subDoc == null)
              logger.error("Error document contains references to non-existent sub-errors");
    T2Reference replacement = errorService.registerError(
        exceptionMessage, newException, depth, context).getId();
    exceptions.add(errorService.registerError(exceptionMessage,
        newException, 0, context).getId());
    return replacement;
      exceptionReplacement.getReplacementId(),
      exceptionReplacement.getReplacementMessage());
  T2Reference replacement = errorService.registerError(
      exceptionReplacement.getReplacementMessage(), newException,
      depth, context).getId();
  exceptions.add(errorService.registerError(
      exceptionReplacement.getReplacementMessage(), newException, 0,
      context).getId());
origin: net.sf.taverna.t2.core/reference-impl

public void deleteReferencesForWorkflowRun(String workflowRunId)
    throws ReferenceServiceException {
  
  String errorString = "";
  try{
    listService.deleteIdentifiedListsForWorkflowRun(workflowRunId);
  }
  catch(ReferenceServiceException resex){
    errorString += "Failed to delete lists for workflow run: " + workflowRunId + ".";
  }
  try{
    referenceSetService.deleteReferenceSetsForWorkflowRun(workflowRunId);
  }
  catch(ReferenceServiceException resex){
    errorString += "Failed to delete reference sets for workflow run: " + workflowRunId + ".";
  }
  try{
    errorDocumentService.deleteErrorDocumentsForWorkflowRun(workflowRunId);
  }
  catch(ReferenceServiceException resex){
    errorString += "Failed to delete error documents for workflow run: " + workflowRunId +".";
  }
  if (!errorString.equals("")){
    throw new ReferenceServiceException(errorString);
  }
}
origin: net.sf.taverna.t2.core/reference-impl

ErrorDocument doc = errorDocumentService.registerError(
    (Throwable) o, currentDepth, context);
return doc.getId();
origin: net.sf.taverna.t2.lang/results

public static List<ErrorDocument> getErrorDocuments(T2Reference reference,
    ReferenceService referenceService) {
  List<ErrorDocument> errorDocuments = new ArrayList<ErrorDocument>();
  if (reference.getReferenceType().equals(T2ReferenceType.ErrorDocument)) {
    ErrorDocumentService errorDocumentService = referenceService
        .getErrorDocumentService();
    errorDocuments.add(errorDocumentService.getError(reference));
  } else if (reference.getReferenceType().equals(
      T2ReferenceType.IdentifiedList)) {
    ListService listService = referenceService.getListService();
    IdentifiedList<T2Reference> list = listService.getList(reference);
    for (T2Reference listReference : list) {
      errorDocuments
          .addAll(getErrorDocuments(listReference, referenceService));
    }
  }
  return errorDocuments;
}
origin: net.sf.taverna.t2.activities/external-tool-activity

  results.put(cur.getKey(), url);
} else {
  ErrorDocument ed = referenceService.getErrorDocumentService().registerError("No result for " + cur.getKey(), 0, getContext());
  results.put(cur.getKey(), ed);
ErrorDocument ed = referenceService.getErrorDocumentService().registerError("No result for " + cur.getKey(), 0, getContext());
results.put(cur.getKey(), ed);
origin: net.sf.taverna.t2/results

public static List<ErrorDocument> getErrorDocuments(T2Reference reference,
    ReferenceService referenceService) {
  List<ErrorDocument> errorDocuments = new ArrayList<ErrorDocument>();
  if (reference.getReferenceType().equals(T2ReferenceType.ErrorDocument)) {
    ErrorDocumentService errorDocumentService = referenceService
        .getErrorDocumentService();
    errorDocuments.add(errorDocumentService.getError(reference));
  } else if (reference.getReferenceType().equals(
      T2ReferenceType.IdentifiedList)) {
    ListService listService = referenceService.getListService();
    IdentifiedList<T2Reference> list = listService.getList(reference);
    for (T2Reference listReference : list) {
      errorDocuments
          .addAll(getErrorDocuments(listReference, referenceService));
    }
  }
  return errorDocuments;
}
origin: net.sf.taverna.t2.activities/jsonpath-activity

  ErrorDocumentService errorDocService = referenceService.getErrorDocumentService();
  textValue = errorDocService.registerError("No value produced" , 
      0, callback.getContext());
} else {
  ErrorDocumentService errorDocService = referenceService.getErrorDocumentService();
  jsonValue = errorDocService.registerError("No value produced" , 
      0, callback.getContext());
} else {
origin: net.sf.taverna.t2.workbench.views/results

if (reference.getReferenceType().equals(T2ReferenceType.ErrorDocument)) {
  ErrorDocumentService errorDocumentService = context.getReferenceService().getErrorDocumentService();
  ErrorDocument causeErrorDocument = errorDocumentService.getError(reference);
  if (errorReferences.size() == 1) {
    buildErrorDocumentTree(node, causeErrorDocument, context);
origin: net.sf.taverna.t2/workflowmodel-impl

      .registerError(message, cause, op.getDepth()).getId());
} else {
  outputDataMap.put(op.getName(), rs.getErrorDocumentService()
      .registerError(message, errorReferences, op.getDepth()).getId());
origin: net.sf.taverna.t2/results

    .getErrorDocumentService();
ErrorDocument causeErrorDocument = errorDocumentService
    .getError(reference);
if (errorReferences.size() == 1) {
  buildErrorDocumentTree(node, causeErrorDocument, referenceService);
origin: net.sf.taverna.t2.core/workflowmodel-core-extensions

      .registerError(message, cause, op.getDepth(), event.getContext()).getId());
} else {
  outputDataMap.put(op.getName(), rs.getErrorDocumentService()
      .registerError(message, errorReferences, op.getDepth(), event.getContext()).getId());
origin: net.sf.taverna.t2.lang/results

    .getErrorDocumentService();
ErrorDocument causeErrorDocument = errorDocumentService
    .getError(reference);
if (errorReferences.size() == 1) {
  buildErrorDocumentTree(node, causeErrorDocument, referenceService);
origin: net.sf.taverna.t2.activities/oauth-rest-activity

.getErrorDocumentService().registerError("", 0, context);
      .getErrorDocumentService().registerError(
          (String) requestResponse
              .getResponseBody(), 0,
      .getErrorDocumentService().registerError(
          str, 0, context);
} else {
      .getErrorDocumentService().registerError(
          requestResponse.getResponseBody()
              .toString(), 0, context);
origin: net.sf.taverna.t2.workbench.views/results

if (reference.getReferenceType().equals(T2ReferenceType.ErrorDocument)) {
  ErrorDocumentService errorDocumentService = context.getReferenceService().getErrorDocumentService();
  ErrorDocument causeErrorDocument = errorDocumentService.getError(reference);
  if (listCounter == 0){
    errDocumentString += "ErrorDocument " + (errorCounter++) + "\n";
origin: net.sf.taverna.t2.activities/rest-activity

.getErrorDocumentService().registerError("", 0, context);
      .getErrorDocumentService().registerError(
          (String) requestResponse
              .getResponseBody(), 0,
      .getErrorDocumentService().registerError(
          str, 0, context);
} else {
      .getErrorDocumentService().registerError(
          requestResponse.getResponseBody()
              .toString(), 0, context);
origin: net.sf.taverna.t2.core/provenanceconnector

if (reference.getReferenceType().equals(T2ReferenceType.ErrorDocument)) {
  ErrorDocument error = referenceService.getErrorDocumentService()
      .getError(reference);
origin: net.sf.taverna.t2/t2reference-impl

ErrorDocument doc = errorDocumentService.registerError(
    (Throwable) o, currentDepth);
return doc.getId();
net.sf.taverna.t2.referenceErrorDocumentService

Javadoc

Provides facilities to register list of T2References, register empty lists at any given depth and to resolve appropriate T2Reference instances back to these lists. Registration operations assign names and lock the list contents as a result. This service operates strictly on T2References, it neither tries to nor is capable of any form of reference resolution, so aspects such as collection traversal are not handled here (these are performed by the top level reference service)

Most used methods

  • registerError
    Equivalent to registerError("",t, depth)
  • getError
    Retrieve a previously named and registered ErrorDocument from the backing store
  • delete
  • deleteErrorDocumentsForWorkflowRun

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now