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.



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

def dataflow_id
  @dataflow_id
end

#descriptionObject

A string containing the description of the processor if available.

Returns nil otherwise.



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

def description
  @description
end

#inputsObject

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



184
185
186
# File 'lib/t2flow/model.rb', line 184

def inputs
  @inputs
end

#nameObject

A string containing name of the processor.



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

def name
  @name
end

#outputsObject

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



187
188
189
# File 'lib/t2flow/model.rb', line 187

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”



181
182
183
# File 'lib/t2flow/model.rb', line 181

def script
  @script
end

#typeObject

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



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

def type
  @type
end