class Reactor::Cm::Workflow
Public Class Methods
create(name, edit_groups = [])
click to toggle source
Creates a workflow with given name. A list of edit groups may also be specified - otherwise it defaults to empty list
Calls superclass method
Reactor::Cm::ObjectBase::create
# File lib/reactor/cm/workflow.rb, line 20 def self.create(name, edit_groups = []) super(name, {:name => name, :editGroups => edit_groups}) end
serialize_attribute_to_xml(xml, xml_attribute, value)
click to toggle source
Calls superclass method
Reactor::Cm::ObjectBase#serialize_attribute_to_xml
# File lib/reactor/cm/workflow.rb, line 24 def self.serialize_attribute_to_xml(xml, xml_attribute, value) if xml_attribute.name.to_sym == :signatureDefs xml.tag!('signatureDefs') do (value || []).each do |hash| xml.tag!('listitem') do xml.tag!('listitem', hash[:attribute]) xml.tag!('listitem', hash[:group]) end end end else super(xml, xml_attribute, value) end end