Modified: trunk/lib/workflow_processors/taverna2.rb (3435 => 3436)
--- trunk/lib/workflow_processors/taverna2.rb 2013-02-22 10:52:42 UTC (rev 3435)
+++ trunk/lib/workflow_processors/taverna2.rb 2013-02-22 11:04:42 UTC (rev 3436)
@@ -396,25 +396,24 @@
:name => processor.name,
:wsdl => processor.wsdl,
:wsdl_operation => processor.wsdl)
- create_semantic_annotations(workflow_processor, processor.semantic_annotation)
+ create_semantic_annotations(workflow_processor, processor.semantic_annotation) if processor.semantic_annotation
end
@t2flow_model.sources.each do |source|
port = WorkflowPort.create(:workflow => workflow,
:port_type => "input",
:name => source.name)
- create_semantic_annotations(port, source.semantic_annotation)
+ create_semantic_annotations(port, source.semantic_annotation) if source.semantic_annotation
end
@t2flow_model.sinks.each do |sink|
port = WorkflowPort.create(:workflow => workflow,
:port_type => "output",
:name => sink.name)
- create_semantic_annotations(port, sink.semantic_annotation)
+ create_semantic_annotations(port, sink.semantic_annotation) if sink.semantic_annotation
end
- create_semantic_annotations(workflow, @t2flow_model.main.annotations.semantic_annotation)
-
+ create_semantic_annotations(workflow, @t2flow_model.main.annotations.semantic_annotation) if @t2flow_model.main.annotations.semantic_annotation
end
def create_semantic_annotations(subject, semantic_annotations)