Module: Oujoke::Workflow::InstanceMethods
- Defined in:
- lib/workflow.rb
Instance Method Summary collapse
-
#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.
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( = {}) #todo validation for main optons bp = ::BusinessProcess.new(:workflow_id => self.id , :_contact => [:_contact], :data => [:data] , :invoice_id => [:invoice_id]) bp.state = "created_state" end |