Class: T2Flow::Processor

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

Overview

This is the (shim) object within the workflow. This can be a beanshell, a webservice, a workflow, etc…

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProcessor

Returns a new instance of Processor.



292
293
294
# File 'lib/t2flow/model.rb', line 292

def initialize
  @descriptions = []
end

Instance Attribute Details

#biomoby_authority_nameObject

Authority name for the biomoby service.



278
279
280
# File 'lib/t2flow/model.rb', line 278

def biomoby_authority_name
  @biomoby_authority_name
end

#biomoby_categoryObject

Category for the biomoby service.



285
286
287
# File 'lib/t2flow/model.rb', line 285

def biomoby_category
  @biomoby_category
end

#biomoby_service_nameObject

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



282
283
284
# File 'lib/t2flow/model.rb', line 282

def biomoby_service_name
  @biomoby_service_name
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.



255
256
257
# File 'lib/t2flow/model.rb', line 255

def dataflow_id
  @dataflow_id
end

#descriptionsObject

A string containing the description of the processor if available.

Returns nil otherwise.



244
245
246
# File 'lib/t2flow/model.rb', line 244

def descriptions
  @descriptions
end

#endpointObject

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



275
276
277
# File 'lib/t2flow/model.rb', line 275

def endpoint
  @endpoint
end

#inputsObject

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



262
263
264
# File 'lib/t2flow/model.rb', line 262

def inputs
  @inputs
end

#nameObject

A string containing name of the processor.



240
241
242
# File 'lib/t2flow/model.rb', line 240

def name
  @name
end

#outputsObject

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



265
266
267
# File 'lib/t2flow/model.rb', line 265

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”



259
260
261
# File 'lib/t2flow/model.rb', line 259

def script
  @script
end

#semantic_annotationObject

Returns the value of attribute semantic_annotation.



290
291
292
# File 'lib/t2flow/model.rb', line 290

def semantic_annotation
  @semantic_annotation
end

#typeObject

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



251
252
253
# File 'lib/t2flow/model.rb', line 251

def type
  @type
end

#valueObject

Value for string constants



288
289
290
# File 'lib/t2flow/model.rb', line 288

def value
  @value
end

#wsdlObject

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



269
270
271
# File 'lib/t2flow/model.rb', line 269

def wsdl
  @wsdl
end

#wsdl_operationObject

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



272
273
274
# File 'lib/t2flow/model.rb', line 272

def wsdl_operation
  @wsdl_operation
end

Instance Method Details

#descriptionObject



246
247
248
# File 'lib/t2flow/model.rb', line 246

def description
  @descriptions.first
end