oujoke 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/workflow.rb +2 -3
  2. 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 start(options = {})
21
+ def buid_business_process(options = {})
22
22
  #todo validation for main optons
23
- bp = options[:klass].new(:workflow_id => self.id , :_contact => options[:_contact], :data => options[:data] , :invoice_id => options[:invoice_id])
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dieinzige