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.



122
123
124
# File 'lib/t2flow/model.rb', line 122

def dataflow_id
  @dataflow_id
end

#descriptionObject

A string containing the description of the processor if available.

Returns nil otherwise.



115
116
117
# File 'lib/t2flow/model.rb', line 115

def description
  @description
end

#inputsObject

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



129
130
131
# File 'lib/t2flow/model.rb', line 129

def inputs
  @inputs
end

#nameObject

A string containing name of the processor.



111
112
113
# File 'lib/t2flow/model.rb', line 111

def name
  @name
end

#outputsObject

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



132
133
134
# File 'lib/t2flow/model.rb', line 132

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”



126
127
128
# File 'lib/t2flow/model.rb', line 126

def script
  @script
end

#typeObject

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



118
119
120
# File 'lib/t2flow/model.rb', line 118

def type
  @type
end