public static Dataflow getDataflow(Version.ID id) throws RegistryException { synchronized (id) { if (!cache.containsKey(id)) { logger.info("Before Calculate component version"); Version componentVersion; try { componentVersion = calculateComponentVersion(id); } catch (Exception e) { throw new RegistryException(e.getMessage(), e); } logger.info("Calculated component version"); Dataflow dataflow = componentVersion.getDataflow(); dataflow.checkValidity(); cache.put(id, dataflow); } } return cache.get(id); }
public static Dataflow getDataflow(Version.ID id) throws RegistryException { synchronized (id) { if (!cache.containsKey(id)) { logger.info("Before Calculate component version"); Version componentVersion; try { componentVersion = calculateComponentVersion(id); } catch (Exception e) { throw new RegistryException(e.getMessage(), e); } logger.info("Calculated component version"); Dataflow dataflow = componentVersion.getDataflow(); dataflow.checkValidity(); cache.put(id, dataflow); } } return cache.get(id); }
public void actionPerformed(ActionEvent e) { FileManager.getInstance().getCurrentDataflow().checkValidity(); refreshView(); }}; }
public void actionPerformed(ActionEvent e) { FileManager.getInstance().getCurrentDataflow().checkValidity(); refreshView(); }}; }
public void actionPerformed(ActionEvent e) { FileManager.getInstance().getCurrentDataflow().checkValidity(); refreshView(); }}; }
protected DataflowValidationReport validateDataflow(Dataflow dataflow) { DataflowValidationReport report = dataflow.checkValidity(); for (TokenProcessingEntity unsatisfiedEntity : report.getUnsatisfiedEntities()) { System.out.println(unsatisfiedEntity.getLocalName()); } for (TokenProcessingEntity failedEntity : report.getFailedEntities()) { System.out.println(failedEntity.getLocalName()); } for (DataflowOutputPort unresolvedOutput : report .getUnresolvedOutputs()) { System.out.println(unresolvedOutput.getName()); } return report; }
+ fileType); DataflowValidationReport dvr = dataflow.checkValidity();
public WorkflowInstanceFacadeImpl(final Dataflow dataflow, InvocationContext context, String parentProcess) throws InvalidDataflowException { DataflowValidationReport report = dataflow.checkValidity(); if (!report.isValid()) { throw new InvalidDataflowException(dataflow, report);
+ destination.getClass().getName()); DataflowValidationReport dvr = dataflow.checkValidity(); if (!dvr.isValid()) { throw new SaveException("Cannot save a structurally invalid workflow as a component");
DataflowValidationReport dvr = dataflow.checkValidity();
public WorkflowInstanceFacadeImpl(final Dataflow dataflow, InvocationContext context, String parentProcess) throws InvalidDataflowException { DataflowValidationReport report = dataflow.checkValidity(); if (!report.isValid()) { throw new InvalidDataflowException(dataflow, report);
NestedDataflow nestedDataflowActivity = (NestedDataflow) activity; Dataflow nestedDataflow = nestedDataflowActivity.getNestedDataflow(); DataflowValidationReport validity = nestedDataflow.checkValidity(); if (! validity.isValid()) { throw new InvalidDataflowException(nestedDataflow, validity);
NestedDataflow nestedDataflowActivity = (NestedDataflow) activity; Dataflow nestedDataflow = nestedDataflowActivity.getNestedDataflow(); DataflowValidationReport validity = nestedDataflow.checkValidity(); if (! validity.isValid()) { throw new InvalidDataflowException(nestedDataflow, validity);