module Reactor::Workflow::Base
This module provides support for Workflow
actions and information querying.
Public Instance Methods
workflow()
click to toggle source
Returns instance of Standard
(or Empty
..) For the API See Reactor::Workflow::Standard
# File lib/reactor/workflow.rb, line 10 def workflow @workflow ||= if ((meta=RailsConnector::ObjectWithMetaData.find_by_object_id(self.obj_id)).workflow_name.present?) Standard.new(self,meta) else Empty.new(self) end end
workflow_comments()
click to toggle source
# File lib/reactor/workflow.rb, line 18 def workflow_comments Reactor::Cm::LogEntry.where(:objectId => self.id).map {|entry| Comment.new(entry) } end