oujoke 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/workflow.rb +2 -3
- metadata +2 -2
data/lib/workflow.rb
CHANGED
@@ -18,11 +18,10 @@ module Oujoke
|
|
18
18
|
#Create businessprocess , with filled data
|
19
19
|
#then after-create will be notify MQ-queue that we have one new BP, witch should be performed
|
20
20
|
#
|
21
|
-
def
|
21
|
+
def buid_business_process(options = {})
|
22
22
|
#todo validation for main optons
|
23
|
-
bp =
|
23
|
+
bp = ::BusinessProcess.new(:workflow_id => self.id , :_contact => options[:_contact], :data => options[:data] , :invoice_id => options[:invoice_id])
|
24
24
|
bp.current_state = "created_state"
|
25
|
-
bp.save!
|
26
25
|
end
|
27
26
|
|
28
27
|
end
|