bumbleworks 0.0.72 → 0.0.73
Sign up to get free protection for your applications and to get access to all the features.
data/lib/bumbleworks/process.rb
CHANGED
@@ -135,6 +135,11 @@ module Bumbleworks
|
|
135
135
|
@process_status ||= Bumbleworks.dashboard.process(id)
|
136
136
|
end
|
137
137
|
|
138
|
+
def definition_name
|
139
|
+
root_ruote_expression.attribute('name') ||
|
140
|
+
root_ruote_expression.attribute_text
|
141
|
+
end
|
142
|
+
|
138
143
|
def method_missing(method, *args)
|
139
144
|
ps = process_status
|
140
145
|
if ps.respond_to?(method)
|
@@ -145,6 +150,10 @@ module Bumbleworks
|
|
145
150
|
|
146
151
|
private
|
147
152
|
|
153
|
+
def root_ruote_expression
|
154
|
+
@root_ruote_expression ||= ruote_expressions.first
|
155
|
+
end
|
156
|
+
|
148
157
|
def ruote_expressions
|
149
158
|
@ruote_expressions ||= begin
|
150
159
|
context = Bumbleworks.dashboard.context
|
data/lib/bumbleworks/version.rb
CHANGED
@@ -152,6 +152,15 @@ describe Bumbleworks::Process do
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
|
155
|
+
describe '#definition_name' do
|
156
|
+
it 'returns the name of the process definition' do
|
157
|
+
bp = Bumbleworks.launch!('i_wait_for_nobody')
|
158
|
+
wait_until { bp.reload.tasks.count == 1 }
|
159
|
+
bp_reloaded = described_class.new(bp.wfid)
|
160
|
+
expect(bp_reloaded.definition_name).to eq 'i_wait_for_nobody'
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
155
164
|
describe '#expression_at_position' do
|
156
165
|
before(:each) do
|
157
166
|
@bp = Bumbleworks.launch!('food_is_an_illusion')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bumbleworks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.73
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -271,7 +271,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
271
271
|
version: '0'
|
272
272
|
segments:
|
273
273
|
- 0
|
274
|
-
hash: -
|
274
|
+
hash: -2455234384689575722
|
275
275
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
276
276
|
none: false
|
277
277
|
requirements:
|
@@ -280,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
280
|
version: '0'
|
281
281
|
segments:
|
282
282
|
- 0
|
283
|
-
hash: -
|
283
|
+
hash: -2455234384689575722
|
284
284
|
requirements: []
|
285
285
|
rubyforge_project:
|
286
286
|
rubygems_version: 1.8.23
|