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 Attribute Details

#dataflow_idObject

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



166
167
168
# File 'lib/t2flow/model.rb', line 166

def dataflow_id
  @dataflow_id
end

#descriptionObject

A string containing the description of the processor if available.

Returns nil otherwise.



159
160
161
# File 'lib/t2flow/model.rb', line 159

def description
  @description
end

#inputsObject

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



173
174
175
# File 'lib/t2flow/model.rb', line 173

def inputs
  @inputs
end

#nameObject

A string containing name of the processor.



155
156
157
# File 'lib/t2flow/model.rb', line 155

def name
  @name
end

#outputsObject

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



176
177
178
# File 'lib/t2flow/model.rb', line 176

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”



170
171
172
# File 'lib/t2flow/model.rb', line 170

def script
  @script
end

#typeObject

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



162
163
164
# File 'lib/t2flow/model.rb', line 162

def type
  @type
end