From: <cod...@go...> - 2009-10-08 13:23:50
|
Revision: 8446 Author: ia...@my... Date: Thu Oct 8 06:20:53 2009 Log: The iteration item needs to know which workflow it belongs to easily, rather than having to traverse any complex parent child tree structures http://code.google.com/p/taverna/source/detail?r=8446 Modified: /taverna/engine/net.sf.taverna.t2.core/trunk/workflowmodel-impl/src/main/java/net/sf/taverna/t2/workflowmodel/processor/dispatch/layers/IntermediateProvenance.java ======================================= --- /taverna/engine/net.sf.taverna.t2.core/trunk/workflowmodel-impl/src/main/java/net/sf/taverna/t2/workflowmodel/processor/dispatch/layers/IntermediateProvenance.java Thu Apr 23 08:00:30 2009 +++ /taverna/engine/net.sf.taverna.t2.core/trunk/workflowmodel-impl/src/main/java/net/sf/taverna/t2/workflowmodel/processor/dispatch/layers/IntermediateProvenance.java Thu Oct 8 06:20:53 2009 @@ -344,6 +344,7 @@ IterationProvenanceItem iterationProvItem = null; iterationProvItem = new IterationProvenanceItem(); + iterationProvItem.setWorklfowId(workflowItem.getParentId()); iterationProvItem.setIteration(jobEvent.getIndex()); iterationProvItem.setIdentifier(UUID.randomUUID().toString()); ReferenceService referenceService = jobEvent.getContext() @@ -405,8 +406,8 @@ @Override public void receiveResult(DispatchResultEvent resultEvent) { // FIXME use the connector from the result event context - IterationProvenanceItem iterationProvItem = getIterationProvItem(resultEvent); + ReferenceService referenceService = resultEvent.getContext() .getReferenceService(); @@ -451,8 +452,7 @@ @Override public void receiveResultCompletion(DispatchCompletionEvent completionEvent) { - // TODO Auto-generated method stub - + // TODO Auto-generated method stub super.receiveResultCompletion(completionEvent); } |