Module: Oujoke::Workflow::InstanceMethods

Defined in:
lib/workflow.rb

Instance Method Summary collapse

Instance Method Details

#buid_business_process(options = {}) ⇒ Object

Create businessprocess , with filled data then after-create will be notify MQ-queue that we have one new BP, witch should be performed



21
22
23
24
25
# File 'lib/workflow.rb', line 21

def buid_business_process(options = {})
  #todo validation for main optons
    bp = ::BusinessProcess.new(:workflow_id => self.id , :_contact => options[:_contact], :data => options[:data] , :invoice_id => options[:invoice_id])
    bp.state = "created_state"
end