myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3436] trunk/lib/workflow_processors/taverna2.rb:


From: noreply
Subject: [myexperiment-hackers] [3436] trunk/lib/workflow_processors/taverna2.rb: Fixed big issue with parsing of T2 workflows
Date: Fri, 22 Feb 2013 11:04:42 +0000 (UTC)

Revision
3436
Author
fbacall
Date
2013-02-22 11:04:42 +0000 (Fri, 22 Feb 2013)

Log Message

Fixed big issue with parsing of T2 workflows

Modified Paths

Diff

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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]