iab-InsuranceBizLogic 0.2.3 → 0.2.5
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/processengine/engine.rb +8 -2
- metadata +5 -8
data/lib/processengine/engine.rb
CHANGED
@@ -88,7 +88,6 @@ class PEngine
|
|
88
88
|
|
89
89
|
def push(session,process,params)
|
90
90
|
package = 'CommercialProperty'
|
91
|
-
persist = Persist.instance
|
92
91
|
|
93
92
|
case process
|
94
93
|
when "ProcessDefinition"
|
@@ -101,6 +100,7 @@ class PEngine
|
|
101
100
|
when "GetNBQuote"
|
102
101
|
eval(deriveActiveRecordDefinitionOfProduct(session[:product]))
|
103
102
|
xml = createXMLMessage(session[:product],params,false) { |k,v| "<#{k}>#{v}</#{k}>" }
|
103
|
+
persist = Persist.instance
|
104
104
|
key = persist.put("UUID",xml)
|
105
105
|
session[:policyKey] = key
|
106
106
|
|
@@ -125,6 +125,7 @@ class PEngine
|
|
125
125
|
|
126
126
|
when "RefineNBQuote"
|
127
127
|
eval(deriveActiveRecordDefinitionOfProduct(session[:product]))
|
128
|
+
persist = Persist.instance
|
128
129
|
origxml = persist.get(session[:policyKey])
|
129
130
|
h = prepareModels(session[:product],origxml)
|
130
131
|
params = h.deep_merge(params)
|
@@ -144,6 +145,7 @@ class PEngine
|
|
144
145
|
executeSearch(session[:product],params)
|
145
146
|
|
146
147
|
when "FindPolicyOrQuote"
|
148
|
+
persist = Persist.instance
|
147
149
|
xml = persist.get(params[:choosen][:one])
|
148
150
|
prepareModels(session[:product],xml)
|
149
151
|
|
@@ -157,6 +159,7 @@ class PEngine
|
|
157
159
|
|
158
160
|
eval(deriveActiveRecordDefinitionOfProduct(session[:product]))
|
159
161
|
open("#{File.dirname(__FILE__)}/../bizLogic/xquery2") {|f| @query = f.read }
|
162
|
+
persist = Persist.instance
|
160
163
|
results = persist.find(@query.gsub('EMAIL',session[:user_email]))
|
161
164
|
key = results[0]
|
162
165
|
xml = persist.get(key)
|
@@ -177,6 +180,7 @@ class PEngine
|
|
177
180
|
eval(deriveActiveRecordDefinitionOfProduct(session[:product]))
|
178
181
|
xml = createXMLMessage(session[:product],params,false) { |k,v| "<#{k}>#{v}</#{k}>" }
|
179
182
|
open("#{File.dirname(__FILE__)}/../bizLogic/xquery2") {|f| @query = f.read }
|
183
|
+
persist = Persist.instance
|
180
184
|
results = persist.find(@query.gsub('EMAIL',session[:user_email]))
|
181
185
|
key = nil
|
182
186
|
if !results
|
@@ -199,11 +203,12 @@ class PEngine
|
|
199
203
|
"1553.25"
|
200
204
|
|
201
205
|
when "MTAReason"
|
206
|
+
persist = Persist.instance
|
202
207
|
xml = persist.get(session[:policyKey])
|
203
208
|
prepareModels(session[:product],xml)
|
204
209
|
|
205
210
|
when "GetMTAQuote"
|
206
|
-
|
211
|
+
persist = Persist.instance
|
207
212
|
origImage = persist.get(session[:policyKey])
|
208
213
|
#TODO: the origImage will need any MTAs layering on there
|
209
214
|
xml = createXMLMessage(session[:product],params,false) { |k,v| "<#{k}>#{v}</#{k}>" }
|
@@ -212,6 +217,7 @@ class PEngine
|
|
212
217
|
|
213
218
|
when "PolicyDocumentation"
|
214
219
|
#get XML quote/policy document
|
220
|
+
persist = Persist.instance
|
215
221
|
xml = persist.get(session[:policyKey])
|
216
222
|
#call the rating engine (again!) until we've preserved the quote
|
217
223
|
cmd = SBroker.RequestRatingService("NB",session[:product],true,false,false)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iab-InsuranceBizLogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary Mawdsley
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-31 00:00:00
|
12
|
+
date: 2009-03-31 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -41,7 +41,6 @@ extensions: []
|
|
41
41
|
extra_rdoc_files: []
|
42
42
|
|
43
43
|
files:
|
44
|
-
- lib/bizLogic
|
45
44
|
- lib/bizLogic/search.rb
|
46
45
|
- lib/bizLogic/continualQNB.rb
|
47
46
|
- lib/bizLogic/VPMSHelper.rb
|
@@ -50,22 +49,20 @@ files:
|
|
50
49
|
- lib/bizLogic/applymta.rb
|
51
50
|
- lib/bizLogic/payment.rb
|
52
51
|
- lib/bizLogic/diff.rb
|
53
|
-
- lib/servicebroker
|
54
|
-
- lib/servicebroker/mocks
|
55
52
|
- lib/servicebroker/mocks/RoadRisksQuoteNBRs.xml
|
56
53
|
- lib/servicebroker/mocks/CommercialCombinedQuoteNBRs.xml
|
57
54
|
- lib/servicebroker/broker.rb
|
58
|
-
- lib/servicebroker/xsl
|
59
55
|
- lib/servicebroker/xsl/in_MotorTrade.xsl
|
60
56
|
- lib/servicebroker/xsl/extractPremium.xsl
|
61
57
|
- lib/servicebroker/xsl/extractDescription.xsl
|
62
58
|
- lib/servicebroker/xsl/extractCode.xsl
|
63
|
-
- lib/processengine
|
64
59
|
- lib/processengine/HashEnhancement.rb
|
65
60
|
- lib/processengine/engine.rb
|
66
61
|
- lib/processengine/communicator.rb
|
67
62
|
has_rdoc: true
|
68
63
|
homepage: http://github.com/iab/InsuranceBizLogic
|
64
|
+
licenses: []
|
65
|
+
|
69
66
|
post_install_message:
|
70
67
|
rdoc_options:
|
71
68
|
- --inline-source
|
@@ -87,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
84
|
requirements: []
|
88
85
|
|
89
86
|
rubyforge_project: InsuranceBizLogic
|
90
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.3.5
|
91
88
|
signing_key:
|
92
89
|
specification_version: 2
|
93
90
|
summary: InsuranceBizLogic contains biz logic for stand four insurance processes of NB, MTA, Cancellations, Renewals
|