oujoke 0.1.1 → 0.1.2

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.
@@ -9,9 +9,9 @@ module Oujoke
9
9
  module InstanceMethods
10
10
 
11
11
  def start
12
- self.current_state = "initialized_state"
12
+ self.state = "initialized_state"
13
13
  self.workflow_data.current_state = "initialized_state"
14
- self.raw_workflow = self.workflow_data.persistanse_data
14
+ self.data = self.workflow_data.persistanse_data
15
15
  self.save
16
16
  Oujoke::InvoiceQueue::Publisher.new.publish("workflow-initialized_state" , self)
17
17
  end
data/lib/workflow.rb CHANGED
@@ -21,7 +21,7 @@ module Oujoke
21
21
  def buid_business_process(options = {})
22
22
  #todo validation for main optons
23
23
  bp = ::BusinessProcess.new(:workflow_id => self.id , :_contact => options[:_contact], :data => options[:data] , :invoice_id => options[:invoice_id])
24
- bp.current_state = "created_state"
24
+ bp.state = "created_state"
25
25
  end
26
26
 
27
27
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dieinzige