rock_rms 4.6.0 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rock_rms/client.rb +3 -0
- data/lib/rock_rms/resources/transaction.rb +10 -0
- data/lib/rock_rms/resources/workflow_action_type.rb +17 -0
- data/lib/rock_rms/resources/workflow_activity_type.rb +17 -0
- data/lib/rock_rms/resources/workflow_type.rb +17 -0
- data/lib/rock_rms/response/workflow_action_type.rb +16 -0
- data/lib/rock_rms/response/workflow_activity_type.rb +20 -0
- data/lib/rock_rms/response/workflow_type.rb +20 -0
- data/lib/rock_rms/version.rb +1 -1
- data/spec/rock_rms/resources/workflow_action_type_spec.rb +35 -0
- data/spec/rock_rms/resources/workflow_activity_type_spec.rb +37 -0
- data/spec/rock_rms/resources/workflow_type_spec.rb +35 -0
- data/spec/rock_rms/response/workflow_action_type_spec.rb +24 -0
- data/spec/rock_rms/response/workflow_activity_type_spec.rb +26 -0
- data/spec/rock_rms/response/workflow_type_spec.rb +26 -0
- data/spec/support/fixtures/workflow_action_type.json +26 -0
- data/spec/support/fixtures/workflow_action_types.json +28 -0
- data/spec/support/fixtures/workflow_activity_type.json +21 -0
- data/spec/support/fixtures/workflow_activity_types.json +23 -0
- data/spec/support/fixtures/workflow_type.json +33 -0
- data/spec/support/fixtures/workflow_types.json +35 -0
- data/spec/support/rock_mock.rb +7 -1
- metadata +20 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b2d2f9df62a52732d06238b5d280a6d4f8ac583
|
4
|
+
data.tar.gz: e6c950482f326abd105cbe4b1bfc3373fd482d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 460874c078c591d47e35e6f3fa4335a0cd286ecac1f3f657d9a3436185a99c4acdfa10fcb45bcb627f3c23ec3a20763b2e5a9bc89a016c1041aea95e4d005fb6
|
7
|
+
data.tar.gz: f491964f7b63c89466519bb705db64e21b6dea0e02e0a53779845fb186556d0ded30db8b3fe3c277e07cbab5a6e77ec53a3db21bbf58b0c69ff61bcc5576754d
|
data/lib/rock_rms/client.rb
CHANGED
@@ -28,6 +28,9 @@ module RockRMS
|
|
28
28
|
include RockRMS::Client::Transaction
|
29
29
|
include RockRMS::Client::TransactionDetail
|
30
30
|
include RockRMS::Client::Utility
|
31
|
+
include RockRMS::Client::WorkflowActionType
|
32
|
+
include RockRMS::Client::WorkflowActivityType
|
33
|
+
include RockRMS::Client::WorkflowType
|
31
34
|
|
32
35
|
attr_reader :url, :username, :password, :logger, :cookie, :connection
|
33
36
|
|
@@ -75,6 +75,16 @@ module RockRMS
|
|
75
75
|
delete(transaction_path(id))
|
76
76
|
end
|
77
77
|
|
78
|
+
def launch_transaction_workflow(
|
79
|
+
id,
|
80
|
+
workflow_type_id:,
|
81
|
+
workflow_name:,
|
82
|
+
attributes: {}
|
83
|
+
)
|
84
|
+
query_string = "?workflowTypeId=#{workflow_type_id}&workflowName=#{workflow_name}"
|
85
|
+
post(transaction_path + "/LaunchWorkflow/#{id}#{query_string}", attributes)
|
86
|
+
end
|
87
|
+
|
78
88
|
private
|
79
89
|
|
80
90
|
def translate_funds(funds)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module RockRMS
|
2
|
+
class Client
|
3
|
+
module WorkflowActionType
|
4
|
+
PATH = 'WorkflowActionTypes'.freeze
|
5
|
+
|
6
|
+
def list_workflow_action_types(options = {})
|
7
|
+
res = get(PATH)
|
8
|
+
Response::WorkflowActionType.format(res)
|
9
|
+
end
|
10
|
+
|
11
|
+
def find_workflow_action_type(id)
|
12
|
+
res = get(PATH + "/#{id}")
|
13
|
+
Response::WorkflowActionType.format(res)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module RockRMS
|
2
|
+
class Client
|
3
|
+
module WorkflowActivityType
|
4
|
+
PATH = 'WorkflowActivityTypes'.freeze
|
5
|
+
|
6
|
+
def list_workflow_activity_types(options = {})
|
7
|
+
res = get(PATH, options)
|
8
|
+
Response::WorkflowActivityType.format(res)
|
9
|
+
end
|
10
|
+
|
11
|
+
def find_workflow_activity_type(id)
|
12
|
+
res = get(PATH + "/#{id}")
|
13
|
+
Response::WorkflowActivityType.format(res)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module RockRMS
|
2
|
+
class Client
|
3
|
+
module WorkflowType
|
4
|
+
PATH = 'WorkflowTypes'.freeze
|
5
|
+
|
6
|
+
def list_workflow_types(options = {})
|
7
|
+
res = get(PATH, options)
|
8
|
+
Response::WorkflowType.format(res)
|
9
|
+
end
|
10
|
+
|
11
|
+
def find_workflow_type(id)
|
12
|
+
res = get(PATH + "/#{id}")
|
13
|
+
Response::WorkflowType.format(res)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module RockRMS
|
2
|
+
module Response
|
3
|
+
class WorkflowActivityType < Base
|
4
|
+
MAP = {
|
5
|
+
id: 'Id',
|
6
|
+
name: 'Name',
|
7
|
+
description: 'Description',
|
8
|
+
order: 'Order',
|
9
|
+
actions: 'ActionTypes',
|
10
|
+
workflow_type_id: 'WorkflowTypeId'
|
11
|
+
}.freeze
|
12
|
+
|
13
|
+
def format_single(data)
|
14
|
+
response = to_h(MAP, data)
|
15
|
+
response[:actions] = WorkflowActionType.format(response[:actions])
|
16
|
+
response
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module RockRMS
|
2
|
+
module Response
|
3
|
+
class WorkflowType < Base
|
4
|
+
MAP = {
|
5
|
+
id: 'Id',
|
6
|
+
active: 'IsActive',
|
7
|
+
name: 'Name',
|
8
|
+
description: 'Description',
|
9
|
+
summary: 'SummaryViewText',
|
10
|
+
activities: 'ActivityTypes'
|
11
|
+
}.freeze
|
12
|
+
|
13
|
+
def format_single(data)
|
14
|
+
response = to_h(MAP, data)
|
15
|
+
response[:activities] = WorkflowActivityType.format(response[:activities])
|
16
|
+
response
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/rock_rms/version.rb
CHANGED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe RockRMS::Client::WorkflowActionType, type: :model do
|
4
|
+
include_context 'resource specs'
|
5
|
+
|
6
|
+
describe '#list_workflow_action_types' do
|
7
|
+
it 'returns a array' do
|
8
|
+
resource = client.list_workflow_action_types
|
9
|
+
expect(resource).to be_a(Array)
|
10
|
+
expect(resource.first).to be_a(Hash)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe '#find_workflow_action_type(id)' do
|
15
|
+
it 'returns a hash' do
|
16
|
+
expect(client.find_workflow_action_type(2)).to be_a(Hash)
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'queries groups' do
|
20
|
+
expect(client).to receive(:get).with('WorkflowActionTypes/2')
|
21
|
+
.and_call_original
|
22
|
+
|
23
|
+
resource = client.find_workflow_action_type(2)
|
24
|
+
|
25
|
+
expect(resource[:id]).to eq(2)
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'formats with WorkflowActionType' do
|
29
|
+
response = double
|
30
|
+
expect(RockRMS::Response::WorkflowActionType).to receive(:format).with(response)
|
31
|
+
allow(client).to receive(:get).and_return(response)
|
32
|
+
client.find_workflow_action_type(2)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe RockRMS::Client::WorkflowActivityType, type: :model do
|
4
|
+
include_context 'resource specs'
|
5
|
+
|
6
|
+
describe '#list_workflow_activity_types' do
|
7
|
+
it 'returns a array' do
|
8
|
+
resource = client.list_workflow_activity_types
|
9
|
+
expect(resource).to be_a(Array)
|
10
|
+
expect(resource.first).to be_a(Hash)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe '#find_workflow_activity_type(id)' do
|
15
|
+
it 'returns a hash' do
|
16
|
+
expect(client.find_workflow_activity_type(2)).to be_a(Hash)
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'queries groups' do
|
20
|
+
expect(client).to receive(:get).with('WorkflowActivityTypes/2')
|
21
|
+
.and_call_original
|
22
|
+
|
23
|
+
resource = client.find_workflow_activity_type(2)
|
24
|
+
|
25
|
+
expect(resource[:id]).to eq(2)
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'formats with WorkflowActivityType' do
|
29
|
+
response = double
|
30
|
+
expect(RockRMS::Response::WorkflowActivityType).to receive(:format).with(response)
|
31
|
+
allow(client).to receive(:get).and_return(response)
|
32
|
+
client.find_workflow_activity_type(123)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe RockRMS::Client::WorkflowType, type: :model do
|
4
|
+
include_context 'resource specs'
|
5
|
+
|
6
|
+
describe '#list_workflow_types' do
|
7
|
+
it 'returns a array' do
|
8
|
+
resource = client.list_workflow_types
|
9
|
+
expect(resource).to be_a(Array)
|
10
|
+
expect(resource.first).to be_a(Hash)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe '#find_workflow_type(id)' do
|
15
|
+
it 'returns a hash' do
|
16
|
+
expect(client.find_workflow_type(123)).to be_a(Hash)
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'queries groups' do
|
20
|
+
expect(client).to receive(:get).with('WorkflowTypes/123')
|
21
|
+
.and_call_original
|
22
|
+
|
23
|
+
resource = client.find_workflow_type(123)
|
24
|
+
|
25
|
+
expect(resource[:id]).to eq(123)
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'formats with WorkflowType' do
|
29
|
+
response = double
|
30
|
+
expect(RockRMS::Response::WorkflowType).to receive(:format).with(response)
|
31
|
+
allow(client).to receive(:get).and_return(response)
|
32
|
+
client.find_workflow_type(123)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe RockRMS::Response::WorkflowActionType, type: :model do
|
4
|
+
let(:parsed) { JSON.parse(FixturesHelper.read('workflow_action_types.json')) }
|
5
|
+
|
6
|
+
describe '.format' do
|
7
|
+
subject(:result) { described_class.format(parsed) }
|
8
|
+
|
9
|
+
context 'when response is array' do
|
10
|
+
it 'returns an array' do
|
11
|
+
expect(described_class.format([])).to be_a(Array)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'translates keys' do
|
16
|
+
result.take(1).zip(parsed) do |r, p|
|
17
|
+
expect(r[:id]).to eq(p['Id'])
|
18
|
+
expect(r[:name]).to eq(p['Name'])
|
19
|
+
expect(r[:order]).to eq(p['Order'])
|
20
|
+
expect(r[:activity_type_id]).to eq(p['ActivityTypeId'])
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe RockRMS::Response::WorkflowActivityType, type: :model do
|
4
|
+
let(:parsed) { JSON.parse(FixturesHelper.read('workflow_activity_types.json')) }
|
5
|
+
|
6
|
+
describe '.format' do
|
7
|
+
subject(:result) { described_class.format(parsed) }
|
8
|
+
|
9
|
+
context 'when response is array' do
|
10
|
+
it 'returns an array' do
|
11
|
+
expect(described_class.format([])).to be_a(Array)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'translates keys' do
|
16
|
+
result.take(1).zip(parsed) do |r, p|
|
17
|
+
expect(r[:id]).to eq(p['Id'])
|
18
|
+
expect(r[:name]).to eq(p['Name'])
|
19
|
+
expect(r[:description]).to eq(p['Description'])
|
20
|
+
expect(r[:order]).to eq(p['Order'])
|
21
|
+
expect(r[:workflow_type_id]).to eq(p['WorkflowTypeId'])
|
22
|
+
expect(r[:actions]).to eq([])
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe RockRMS::Response::WorkflowType, type: :model do
|
4
|
+
let(:parsed) { JSON.parse(FixturesHelper.read('workflow_types.json')) }
|
5
|
+
|
6
|
+
describe '.format' do
|
7
|
+
subject(:result) { described_class.format(parsed) }
|
8
|
+
|
9
|
+
context 'when response is array' do
|
10
|
+
it 'returns an array' do
|
11
|
+
expect(described_class.format([])).to be_a(Array)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'translates keys' do
|
16
|
+
result.take(1).zip(parsed) do |r, p|
|
17
|
+
expect(r[:id]).to eq(p['Id'])
|
18
|
+
expect(r[:active]).to eq(p['IsActive'])
|
19
|
+
expect(r[:name]).to eq(p['Name'])
|
20
|
+
expect(r[:description]).to eq(p['Description'])
|
21
|
+
expect(r[:summary]).to eq(p['SummaryViewText'])
|
22
|
+
expect(r[:activities]).to eq([])
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"ActivityTypeId": 2,
|
3
|
+
"Name": "Find Families",
|
4
|
+
"Order": 0,
|
5
|
+
"EntityTypeId": 144,
|
6
|
+
"IsActionCompletedOnSuccess": true,
|
7
|
+
"IsActivityCompletedOnSuccess": false,
|
8
|
+
"WorkflowFormId": null,
|
9
|
+
"CriteriaAttributeGuid": null,
|
10
|
+
"CriteriaComparisonType": 0,
|
11
|
+
"CriteriaValue": null,
|
12
|
+
"EntityType": null,
|
13
|
+
"WorkflowForm": null,
|
14
|
+
"CreatedDateTime": null,
|
15
|
+
"ModifiedDateTime": null,
|
16
|
+
"CreatedByPersonAliasId": null,
|
17
|
+
"ModifiedByPersonAliasId": null,
|
18
|
+
"ModifiedAuditValuesAlreadyUpdated": false,
|
19
|
+
"Attributes": null,
|
20
|
+
"AttributeValues": null,
|
21
|
+
"Id": 2,
|
22
|
+
"Guid": "350e349f-1cf7-4fb6-a48f-f9fd42869695",
|
23
|
+
"ForeignId": null,
|
24
|
+
"ForeignGuid": null,
|
25
|
+
"ForeignKey": null
|
26
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"ActivityTypeId": 2,
|
4
|
+
"Name": "Find Families",
|
5
|
+
"Order": 0,
|
6
|
+
"EntityTypeId": 144,
|
7
|
+
"IsActionCompletedOnSuccess": true,
|
8
|
+
"IsActivityCompletedOnSuccess": false,
|
9
|
+
"WorkflowFormId": null,
|
10
|
+
"CriteriaAttributeGuid": null,
|
11
|
+
"CriteriaComparisonType": 0,
|
12
|
+
"CriteriaValue": null,
|
13
|
+
"EntityType": null,
|
14
|
+
"WorkflowForm": null,
|
15
|
+
"CreatedDateTime": null,
|
16
|
+
"ModifiedDateTime": null,
|
17
|
+
"CreatedByPersonAliasId": null,
|
18
|
+
"ModifiedByPersonAliasId": null,
|
19
|
+
"ModifiedAuditValuesAlreadyUpdated": false,
|
20
|
+
"Attributes": null,
|
21
|
+
"AttributeValues": null,
|
22
|
+
"Id": 2,
|
23
|
+
"Guid": "350e349f-1cf7-4fb6-a48f-f9fd42869695",
|
24
|
+
"ForeignId": null,
|
25
|
+
"ForeignGuid": null,
|
26
|
+
"ForeignKey": null
|
27
|
+
}
|
28
|
+
]
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"IsActive": true,
|
3
|
+
"WorkflowTypeId": 10,
|
4
|
+
"Name": "Family Search",
|
5
|
+
"Description": "",
|
6
|
+
"IsActivatedWithWorkflow": false,
|
7
|
+
"Order": 0,
|
8
|
+
"ActionTypes": [],
|
9
|
+
"CreatedDateTime": null,
|
10
|
+
"ModifiedDateTime": null,
|
11
|
+
"CreatedByPersonAliasId": null,
|
12
|
+
"ModifiedByPersonAliasId": null,
|
13
|
+
"ModifiedAuditValuesAlreadyUpdated": false,
|
14
|
+
"Attributes": null,
|
15
|
+
"AttributeValues": null,
|
16
|
+
"Id": 2,
|
17
|
+
"Guid": "5617683e-b061-4043-8e7b-fb7b25248000",
|
18
|
+
"ForeignId": null,
|
19
|
+
"ForeignGuid": null,
|
20
|
+
"ForeignKey": null
|
21
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"IsActive": true,
|
4
|
+
"WorkflowTypeId": 10,
|
5
|
+
"Name": "Family Search",
|
6
|
+
"Description": "",
|
7
|
+
"IsActivatedWithWorkflow": false,
|
8
|
+
"Order": 0,
|
9
|
+
"ActionTypes": [],
|
10
|
+
"CreatedDateTime": null,
|
11
|
+
"ModifiedDateTime": null,
|
12
|
+
"CreatedByPersonAliasId": null,
|
13
|
+
"ModifiedByPersonAliasId": null,
|
14
|
+
"ModifiedAuditValuesAlreadyUpdated": false,
|
15
|
+
"Attributes": null,
|
16
|
+
"AttributeValues": null,
|
17
|
+
"Id": 2,
|
18
|
+
"Guid": "5617683e-b061-4043-8e7b-fb7b25248000",
|
19
|
+
"ForeignId": null,
|
20
|
+
"ForeignGuid": null,
|
21
|
+
"ForeignKey": null
|
22
|
+
}
|
23
|
+
]
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"IsSystem": false,
|
3
|
+
"IsActive": true,
|
4
|
+
"WorkflowIdPrefix": null,
|
5
|
+
"Name": "Unattended Check-in",
|
6
|
+
"Description": "",
|
7
|
+
"CategoryId": 59,
|
8
|
+
"Order": 0,
|
9
|
+
"WorkTerm": "Check-in",
|
10
|
+
"ProcessingIntervalSeconds": null,
|
11
|
+
"IsPersisted": false,
|
12
|
+
"SummaryViewText":
|
13
|
+
"\r\n<div class='row'>\r\n <div class='col-sm-6'>\r\n <dl><dt>Started By</dt><dd>{{ Workflow.InitiatorPersonAlias.Person.FullName }}</dd></dl>\r\n </div>\r\n <div class='col-sm-6'>\r\n <dl><dt>Started On</dt><dd>{{ Workflow.ActivatedDateTime | Date:'MM/dd/yyyy' }} at {{ Workflow.ActivatedDateTime | Date:'hh:mm:ss tt' }}</dd></dl>\r\n </div>\r\n</div>\r\n\r\n{% assign attributeList = '' %}\r\n{% for attribute in Workflow.AttributeValues %}\r\n {% if attribute.AttributeIsGridColumn %}\r\n {% assign attributeValue = attribute.ValueFormatted %}\r\n {% if attributeValue != '' %}\r\n {% capture item %}<dt>{{ attribute.AttributeName }}</dt><dd>{{ attributeValue }}</dd>{% endcapture %}\r\n {% assign attributeList = attributeList | Append:item %}\r\n {% endif %}\r\n {% endif %}\r\n{% endfor %}\r\n\r\n{% if attributeList != '' %}\r\n <div class='row'>\r\n <div class='col-sm-6'>\r\n <dl>\r\n {{ attributeList }}\r\n </dl>\r\n </div>\r\n </div>\r\n{% endif %}\r\n",
|
14
|
+
"NoActionMessage": "r\nThis {{ Workflow.WorkflowType.WorkTerm }} does not currently require your attention.\r\n",
|
15
|
+
"LogRetentionPeriod": null,
|
16
|
+
"CompletedWorkflowRetentionPeriod": null,
|
17
|
+
"LoggingLevel": 0,
|
18
|
+
"IconCssClass": "fa fa-list-ol",
|
19
|
+
"Category": null,
|
20
|
+
"ActivityTypes": [],
|
21
|
+
"CreatedDateTime": null,
|
22
|
+
"ModifiedDateTime": null,
|
23
|
+
"CreatedByPersonAliasId": null,
|
24
|
+
"ModifiedByPersonAliasId": null,
|
25
|
+
"ModifiedAuditValuesAlreadyUpdated": false,
|
26
|
+
"Attributes": null,
|
27
|
+
"AttributeValues": null,
|
28
|
+
"Id": 123,
|
29
|
+
"Guid": "011e9f5a-60d4-4ff5-912a-290881e37eaf",
|
30
|
+
"ForeignId": null,
|
31
|
+
"ForeignGuid": null,
|
32
|
+
"ForeignKey": null
|
33
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"IsSystem": false,
|
4
|
+
"IsActive": true,
|
5
|
+
"WorkflowIdPrefix": null,
|
6
|
+
"Name": "Unattended Check-in",
|
7
|
+
"Description": "",
|
8
|
+
"CategoryId": 59,
|
9
|
+
"Order": 0,
|
10
|
+
"WorkTerm": "Check-in",
|
11
|
+
"ProcessingIntervalSeconds": null,
|
12
|
+
"IsPersisted": false,
|
13
|
+
"SummaryViewText":
|
14
|
+
"\r\n<div class='row'>\r\n <div class='col-sm-6'>\r\n <dl><dt>Started By</dt><dd>{{ Workflow.InitiatorPersonAlias.Person.FullName }}</dd></dl>\r\n </div>\r\n <div class='col-sm-6'>\r\n <dl><dt>Started On</dt><dd>{{ Workflow.ActivatedDateTime | Date:'MM/dd/yyyy' }} at {{ Workflow.ActivatedDateTime | Date:'hh:mm:ss tt' }}</dd></dl>\r\n </div>\r\n</div>\r\n\r\n{% assign attributeList = '' %}\r\n{% for attribute in Workflow.AttributeValues %}\r\n {% if attribute.AttributeIsGridColumn %}\r\n {% assign attributeValue = attribute.ValueFormatted %}\r\n {% if attributeValue != '' %}\r\n {% capture item %}<dt>{{ attribute.AttributeName }}</dt><dd>{{ attributeValue }}</dd>{% endcapture %}\r\n {% assign attributeList = attributeList | Append:item %}\r\n {% endif %}\r\n {% endif %}\r\n{% endfor %}\r\n\r\n{% if attributeList != '' %}\r\n <div class='row'>\r\n <div class='col-sm-6'>\r\n <dl>\r\n {{ attributeList }}\r\n </dl>\r\n </div>\r\n </div>\r\n{% endif %}\r\n",
|
15
|
+
"NoActionMessage": "r\nThis {{ Workflow.WorkflowType.WorkTerm }} does not currently require your attention.\r\n",
|
16
|
+
"LogRetentionPeriod": null,
|
17
|
+
"CompletedWorkflowRetentionPeriod": null,
|
18
|
+
"LoggingLevel": 0,
|
19
|
+
"IconCssClass": "fa fa-list-ol",
|
20
|
+
"Category": null,
|
21
|
+
"ActivityTypes": [],
|
22
|
+
"CreatedDateTime": null,
|
23
|
+
"ModifiedDateTime": null,
|
24
|
+
"CreatedByPersonAliasId": null,
|
25
|
+
"ModifiedByPersonAliasId": null,
|
26
|
+
"ModifiedAuditValuesAlreadyUpdated": false,
|
27
|
+
"Attributes": null,
|
28
|
+
"AttributeValues": null,
|
29
|
+
"Id": 123,
|
30
|
+
"Guid": "011e9f5a-60d4-4ff5-912a-290881e37eaf",
|
31
|
+
"ForeignId": null,
|
32
|
+
"ForeignGuid": null,
|
33
|
+
"ForeignKey": null
|
34
|
+
}
|
35
|
+
]
|
data/spec/support/rock_mock.rb
CHANGED
@@ -39,7 +39,13 @@ class RockMock < Sinatra::Base
|
|
39
39
|
recurring_donations: 'FinancialScheduledTransactions',
|
40
40
|
saved_payment_methods: 'FinancialPersonSavedAccounts',
|
41
41
|
transaction_detail: 'FinancialTransactionDetails/:id',
|
42
|
-
transaction_details: 'FinancialTransactionDetails'
|
42
|
+
transaction_details: 'FinancialTransactionDetails',
|
43
|
+
workflow_type: 'WorkflowTypes/:id',
|
44
|
+
workflow_types: 'WorkflowTypes',
|
45
|
+
workflow_activity_type: 'WorkflowActivityTypes/:id',
|
46
|
+
workflow_activity_types: 'WorkflowActivityTypes',
|
47
|
+
workflow_action_type: 'WorkflowActionTypes/:id',
|
48
|
+
workflow_action_types: 'WorkflowActionTypes'
|
43
49
|
}.each do |json, end_point|
|
44
50
|
get "/api/#{end_point}" do
|
45
51
|
json_response 200, "#{json}.json"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rock_rms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -203,6 +203,9 @@ files:
|
|
203
203
|
- lib/rock_rms/resources/transaction.rb
|
204
204
|
- lib/rock_rms/resources/transaction_detail.rb
|
205
205
|
- lib/rock_rms/resources/version.rb
|
206
|
+
- lib/rock_rms/resources/workflow_action_type.rb
|
207
|
+
- lib/rock_rms/resources/workflow_activity_type.rb
|
208
|
+
- lib/rock_rms/resources/workflow_type.rb
|
206
209
|
- lib/rock_rms/response/attribute.rb
|
207
210
|
- lib/rock_rms/response/attribute_value.rb
|
208
211
|
- lib/rock_rms/response/base.rb
|
@@ -222,6 +225,9 @@ files:
|
|
222
225
|
- lib/rock_rms/response/saved_payment_method.rb
|
223
226
|
- lib/rock_rms/response/transaction.rb
|
224
227
|
- lib/rock_rms/response/transaction_detail.rb
|
228
|
+
- lib/rock_rms/response/workflow_action_type.rb
|
229
|
+
- lib/rock_rms/response/workflow_activity_type.rb
|
230
|
+
- lib/rock_rms/response/workflow_type.rb
|
225
231
|
- lib/rock_rms/version.rb
|
226
232
|
- rock_rms.gemspec
|
227
233
|
- spec/rock_rms/client_spec.rb
|
@@ -242,6 +248,9 @@ files:
|
|
242
248
|
- spec/rock_rms/resources/saved_payment_method_spec.rb
|
243
249
|
- spec/rock_rms/resources/transaction_detail_spec.rb
|
244
250
|
- spec/rock_rms/resources/transaction_spec.rb
|
251
|
+
- spec/rock_rms/resources/workflow_action_type_spec.rb
|
252
|
+
- spec/rock_rms/resources/workflow_activity_type_spec.rb
|
253
|
+
- spec/rock_rms/resources/workflow_type_spec.rb
|
245
254
|
- spec/rock_rms/response/attribute_spec.rb
|
246
255
|
- spec/rock_rms/response/attribute_value_spec.rb
|
247
256
|
- spec/rock_rms/response/batch_spec.rb
|
@@ -255,6 +264,9 @@ files:
|
|
255
264
|
- spec/rock_rms/response/recurring_donation_spec.rb
|
256
265
|
- spec/rock_rms/response/transaction_detail_spec.rb
|
257
266
|
- spec/rock_rms/response/transaction_spec.rb
|
267
|
+
- spec/rock_rms/response/workflow_action_type_spec.rb
|
268
|
+
- spec/rock_rms/response/workflow_activity_type_spec.rb
|
269
|
+
- spec/rock_rms/response/workflow_type_spec.rb
|
258
270
|
- spec/rock_rms_spec.rb
|
259
271
|
- spec/spec_helper.rb
|
260
272
|
- spec/support/client_factory.rb
|
@@ -296,6 +308,12 @@ files:
|
|
296
308
|
- spec/support/fixtures/transaction_detail.json
|
297
309
|
- spec/support/fixtures/transaction_details.json
|
298
310
|
- spec/support/fixtures/transactions.json
|
311
|
+
- spec/support/fixtures/workflow_action_type.json
|
312
|
+
- spec/support/fixtures/workflow_action_types.json
|
313
|
+
- spec/support/fixtures/workflow_activity_type.json
|
314
|
+
- spec/support/fixtures/workflow_activity_types.json
|
315
|
+
- spec/support/fixtures/workflow_type.json
|
316
|
+
- spec/support/fixtures/workflow_types.json
|
299
317
|
- spec/support/fixtures_helper.rb
|
300
318
|
- spec/support/rock_mock.rb
|
301
319
|
homepage: https://github.com/taylorbrooks/rock_rms
|