Class: T2Flow::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/t2flow/model/processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProcessor

Returns a new instance of Processor.


75
76
77
78
# File 'lib/t2flow/model/processor.rb', line 75

def initialize
  @descriptions = []
  @configuration = {}
end

Instance Attribute Details

#configurationObject

Hash containing details of the processors configuration.


73
74
75
# File 'lib/t2flow/model/processor.rb', line 73

def configuration
  @configuration
end

#dataflow_idObject

For processors that have type “dataflow”, this is the the reference to the dataflow. For all other processor types, this is nil.


21
22
23
# File 'lib/t2flow/model/processor.rb', line 21

def dataflow_id
  @dataflow_id
end

#descriptionsObject

A string containing the description of the processor if available. Returns nil otherwise.


10
11
12
# File 'lib/t2flow/model/processor.rb', line 10

def descriptions
  @descriptions
end

#inputsObject

This is a list of inputs that the processor can take in.


28
29
30
# File 'lib/t2flow/model/processor.rb', line 28

def inputs
  @inputs
end

#nameObject

A string containing name of the processor.


6
7
8
# File 'lib/t2flow/model/processor.rb', line 6

def name
  @name
end

#outputsObject

This is a list of outputs that the processor can produce.


31
32
33
# File 'lib/t2flow/model/processor.rb', line 31

def outputs
  @outputs
end

#scriptObject

This only has a value in beanshell processors. This is the actual script embedded with the processor which does all the “work”


25
26
27
# File 'lib/t2flow/model/processor.rb', line 25

def script
  @script
end

#semantic_annotationObject

Returns the value of attribute semantic_annotation


70
71
72
# File 'lib/t2flow/model/processor.rb', line 70

def semantic_annotation
  @semantic_annotation
end

#typeObject

A string for the type of processor, e.g. beanshell, workflow, webservice, etc…


17
18
19
# File 'lib/t2flow/model/processor.rb', line 17

def type
  @type
end

Instance Method Details

#biomoby_authority_nameObject

Authority name for the biomoby service.


50
51
52
# File 'lib/t2flow/model/processor.rb', line 50

def biomoby_authority_name
  @configuration[:biomoby_authority_name]
end

#biomoby_categoryObject

Category for the biomoby service.


61
62
63
# File 'lib/t2flow/model/processor.rb', line 61

def biomoby_category
  @configuration[:biomoby_category]
end

#biomoby_service_nameObject

Service name for the biomoby service. This is not necessarily the same as the processors name.


56
57
58
# File 'lib/t2flow/model/processor.rb', line 56

def biomoby_service_name
  @configuration[:biomoby_service_name]
end

#descriptionObject


12
13
14
# File 'lib/t2flow/model/processor.rb', line 12

def description
  @descriptions.first
end

#endpointObject

For soaplab and biomoby services, this is the endpoint URI.


45
46
47
# File 'lib/t2flow/model/processor.rb', line 45

def endpoint
  @configuration[:endpoint]
end

#valueObject

Value for string constants


66
67
68
# File 'lib/t2flow/model/processor.rb', line 66

def value
  @configuration[:value]
end

#wsdlObject

For processors of type “arbitrarywsdl”, this is the URI to the location of the wsdl file.


35
36
37
# File 'lib/t2flow/model/processor.rb', line 35

def wsdl
  @configuration[:wsdl]
end

#wsdl_operationObject

For processors of type “arbitrarywsdl”, this is the operation invoked.


40
41
42
# File 'lib/t2flow/model/processor.rb', line 40

def wsdl_operation
  @configuration[:wsdl_operation]
end