oujoke 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|