Class: OpenWFE::InFlowItem

Inherits:
WorkItem show all
Defined in:
lib/openwfe/workitem.rb

Overview

The common parent class for InFlowWorkItem and CancelItem.

Direct Known Subclasses

CancelItem, InFlowWorkItem

Instance Attribute Summary collapse

Attributes inherited from WorkItem

#attributes, #last_modified

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from WorkItem

#[], #[]=, #dup, #has_attribute?, #initialize, #lookup_attribute, #method_missing, #set_attribute, #touch, #unset_attribute

Constructor Details

This class inherits a constructor from OpenWFE::WorkItem

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OpenWFE::WorkItem

Instance Attribute Details

#flow_expression_idObject Also known as: fei

Returns the value of attribute flow_expression_id.



247
248
249
# File 'lib/openwfe/workitem.rb', line 247

def flow_expression_id
  @flow_expression_id
end

#participant_nameObject

Returns the value of attribute participant_name.



247
248
249
# File 'lib/openwfe/workitem.rb', line 247

def participant_name
  @participant_name
end

Class Method Details

.from_h(h) ⇒ Object



270
271
272
273
274
275
# File 'lib/openwfe/workitem.rb', line 270

def InFlowItem.from_h (h)
    wi = super
    wi.flow_expression_id = FlowExpressionId.from_h(h[:flow_expression_id])
    wi.participant_name = h[:participant_name]
    wi
end

Instance Method Details

#last_expression_idObject



249
250
251
# File 'lib/openwfe/workitem.rb', line 249

def last_expression_id
    @flow_expression_id
end

#last_expression_id=(fei) ⇒ Object



253
254
255
# File 'lib/openwfe/workitem.rb', line 253

def last_expression_id= (fei)
    @flow_expression_id = fei
end

#to_hObject



263
264
265
266
267
268
# File 'lib/openwfe/workitem.rb', line 263

def to_h
    h = super
    h[:flow_expression_id] = @flow_expression_id.to_h
    h[:participant_name] = @participant_name
    h
end