archestry_lookup 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.gitlab-ci.yml +1 -0
  4. data/Gemfile +3 -0
  5. data/archestry_lookup.gemspec +29 -0
  6. data/lib/archestry_lookup.rb +45 -0
  7. data/lib/context/_refactor_dialog/constructors/DockedGroupings2AppFunctions.rb +28 -0
  8. data/lib/context/_refactor_dialog/constructors/Element2ModSend.rb +28 -0
  9. data/lib/context/_refactor_dialog/constructors/ElementsInElements.rb +29 -0
  10. data/lib/context/_refactor_dialog/data/1.ModReceive2GetData.rb +29 -0
  11. data/lib/context/_refactor_dialog/data/2.GetData2Elements.rb +29 -0
  12. data/lib/context/_refactor_dialog/data/3.GenData2Dest.rb +29 -0
  13. data/lib/context/_refactor_dialog/data/4.Results2GenData.rb +29 -0
  14. data/lib/context/_refactor_dialog/folder_lookup.rb +36 -0
  15. data/lib/context/_refactor_dialog/functional/1.Expect2Events.rb +28 -0
  16. data/lib/context/_refactor_dialog/functional/2.1.Events2AppEvent.rb +28 -0
  17. data/lib/context/_refactor_dialog/functional/2.2.1.Events2ModReceive.rb +28 -0
  18. data/lib/context/_refactor_dialog/functional/2.2.2.ModReceive2AppEvent.rb +28 -0
  19. data/lib/context/_refactor_dialog/functional/3.Appevent2EventBus.rb +28 -0
  20. data/lib/context/_refactor_dialog/functional/4.1.AppEvent2Elements.rb +28 -0
  21. data/lib/context/_refactor_dialog/functional/4.2.Elements2AppEvent.rb +28 -0
  22. data/lib/context/_refactor_dialog/functional/5.1.Element2ModElements.rb +28 -0
  23. data/lib/context/_refactor_dialog/functional/5.2.Element2ModSend.rb +27 -0
  24. data/lib/context/_refactor_dialog/functional/6.ModElementsSpecs.rb +28 -0
  25. data/lib/context/_refactor_dialog/functional/7.ElementChains.rb +28 -0
  26. data/lib/context/_refactor_dialog/main.rb +69 -0
  27. data/lib/context/archestry/library.rb +53 -0
  28. data/lib/context/archestry/prepost.rb +39 -0
  29. data/lib/objects/_old.rb +43 -0
  30. data/lib/objects/lookup.rb +152 -0
  31. data/lib/schema/schema.rb +38 -0
  32. data/lib/sql/dbhandlers.rb +81 -0
  33. data/lib/sql/lookup_mfv.rb +113 -0
  34. data/lib/sql/pre.rb +51 -0
  35. data/lib/sql/view2ModelElements.rb +227 -0
  36. data/lib/tooling/hash.rb +17 -0
  37. data/lib/tooling/log.rb +49 -0
  38. data/license.txt +428 -0
  39. metadata +123 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1df2a470e2291730fb31a448c462300121e89dd1d71d46bf322ffb7789123356
4
+ data.tar.gz: 979b5d67163e569f30f7442b5a7ce2cf2cd86f8de0e15754bc0fe8572a9eb7be
5
+ SHA512:
6
+ metadata.gz: 33050edd3bdf948971be49f99a418591027265f7a5e3ad774fa153b2b3e055175f744602e3c1b7c62c97071bf82b78c407c121e2165e63f0326d114cffbf3d0b
7
+ data.tar.gz: c0261dc48faf4bc8850a65154008b58156a713d0f52de8ba015e9df1201ae5457eec9667fe81d2d0950e645a2118d82788dd8252093219ca696c6067d92f1790
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ Gemfile.lock
2
+ *.gem
data/.gitlab-ci.yml ADDED
@@ -0,0 +1 @@
1
+
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,29 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'archestry_lookup'.freeze
7
+ s.version = '0.0.11'
8
+ s.authors = ['Eugene Istomin'.freeze]
9
+ s.email = ['info@innosense.org'.freeze]
10
+ s.license = 'CC-BY-SA-4.0'
11
+
12
+ s.homepage = 'https://gitlab.com/Innosense/Archestry/archestry_lookup'.freeze
13
+ s.description = 'Dialect lookup'.freeze
14
+ s.summary = 'Dialect lookup'.freeze
15
+
16
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ s.bindir = 'exe'
18
+ s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ s.require_paths = ['lib'.freeze]
20
+
21
+ s.required_ruby_version = '>= 2.5'
22
+
23
+ s.add_runtime_dependency 'oj', '~> 3.6'
24
+ s.add_runtime_dependency 'json', '~> 2.1'
25
+ s.add_runtime_dependency 'sqlite3', '~> 1.3'
26
+
27
+ end
28
+
29
+
@@ -0,0 +1,45 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ class << self
14
+
15
+ #Gems
16
+ require 'json'
17
+ require 'oj'
18
+ require 'logger'
19
+ require 'digest'
20
+
21
+ #Files
22
+ def run(state)
23
+ ['tooling', 'sql', 'objects', 'schema', "context/#{state[:myAppName].downcase}"].each do |folderName|
24
+ Dir[File.join(__dir__, "#{folderName}/**", '*.rb')].each { |file| require_relative file}
25
+ end
26
+
27
+ args = ArchestryLookup::Schema.getMFVSchema
28
+ state[:timing] = Process.clock_gettime(Process::CLOCK_MONOTONIC)
29
+
30
+ ArchestryLookup::Sql.preSql(state)
31
+ ArchestryLookup::Sql.archestry_model_lookup(args, state)
32
+ ArchestryLookup::Objects.lookup_post(args, state)
33
+
34
+ if state[:json] == 'obj'
35
+ return args
36
+ else
37
+ json = JSON.pretty_generate(args) #json = Oj.dump(args) ## NO GIT-PREFERRED PRETTY OUTPUT IN OJ
38
+ FileUtils.rm("#{state[:json]}")
39
+ FileUtils.mkdir_p("#{state[:jsonFolder]}")
40
+ File.open(state[:json], 'w') { |file| file.write(json) }
41
+ end
42
+ end
43
+
44
+ end
45
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_constructors_DockedGroupings2AppFunctions(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_constructors_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'CompositionRelationship', fPropKey: :docked, fPropValue: "true",
19
+ fClass: 'Grouping', fFqn: "#{state[:myAppName]}Element*",
20
+ tClass: 'ApplicationFunction', tFqn: "#{state[:myAppName]}Element*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ # dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_constructors_Element2ModSend(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_constructors_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'AccessRelationship',
19
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}Element*",
20
+ tClass: 'DataObject', tFqn: "#{state[:myAppName]}ModSend*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,29 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+
17
+ def lookup_constructors_ElementsInElements(args, state, viewId, viewType)
18
+ queryName = __method__.to_s; queryName.slice! 'lookup_constructors_'; queryName.to_sym
19
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'SpecializationRelationship',
20
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}Element*",
21
+ tClass: 'ApplicationFunction', tFqn: "#{state[:myAppName]}Element*" }
22
+
23
+ dialectLookup(args, state, viewId, viewType)
24
+ # dialectRepack(args, state, viewId, viewType, queryName)
25
+ end
26
+
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,29 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_data_ModReceive2GetData(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_data_'; queryName.to_sym
18
+
19
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'AccessRelationship',
20
+ fClass: 'ApplicationService', fFqn: "#{state[:myAppName]}ArchiGetdata*",
21
+ tClass: 'DataObject', tFqn: "#{state[:myAppName]}ModReceiveData*" }
22
+
23
+ dialectLookup(args, state, viewId, viewType)
24
+ dialectRepack(args, state, viewId, viewType, queryName)
25
+ end
26
+
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,29 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_data_GetData2Elements(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_data_'; queryName.to_sym
18
+
19
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'TriggeringRelationship',
20
+ fClass: 'ApplicationService', fFqn: "#{state[:myAppName]}ArchiGetdata*",
21
+ tClass: 'ApplicationFunction', tFqn: "#{state[:myAppName]}Element*" }
22
+
23
+ dialectLookup(args, state, viewId, viewType)
24
+ dialectRepack(args, state, viewId, viewType, queryName)
25
+ end
26
+
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,29 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_data_GenData2Dest(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_data_'; queryName.to_sym
18
+
19
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'ServingRelationship',
20
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}Element*",
21
+ tClass: 'ApplicationService', tFqn: "#{state[:myAppName]}ArchiGendata*" }
22
+
23
+ dialectLookup(args, state, viewId, viewType)
24
+ dialectRepack(args, state, viewId, viewType, queryName)
25
+ end
26
+
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,29 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_data_Results2GenData(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_data_'; queryName.to_sym
18
+
19
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'RealizationRelationship',
20
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}Element*",
21
+ tClass: 'ApplicationService', tFqn: "#{state[:myAppName]}ArchiGendata*" }
22
+
23
+ dialectLookup(args, state, viewId, viewType)
24
+ dialectRepack(args, state, viewId, viewType, queryName)
25
+ end
26
+
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,36 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def dialog_folder_lookup(args, state)
17
+ folderDialog = sqlQuery(state, "select id from folders where name in ('#{state[:myAppName]}') and id in ('#{conFolder[0]}')")[0]
18
+ if folderDialog.is_a?(Array)
19
+ sqlQuery(state, "select view_id as view_id2, view_version, model_version from views_in_model where parent_folder_id in ('#{folderDialog[0]}') and model_version = (select max(model_version) from views_in_model where view_id in (view_id2))") do |row|
20
+ viewAtr = sqlQuery(state, "select name, version from views where id in ('#{row[0]}') and version = (select max(version) from views where id in ('#{row[0]}'))")
21
+ if row[1] == viewAtr[0][1]
22
+ id = row[0].tr("-", "_")
23
+
24
+ args[:views][id] ||= {}
25
+ args[:views][id][:version] = row[1]
26
+ args[:views][id][:name] = state[:dialectFolder]
27
+ ArchestryLookup.logger.info "ArchestryLookup functional view '#{viewAtr[0][0]}' (id #{id}, view ver.#{row[1]}, model ver.#{row[2]}) suits for me!"
28
+ # of interface '#{Dialog.config.naming.interface}' for bot '#{Dialog.config.naming.instance}'
29
+ end
30
+ end
31
+ end
32
+ end
33
+
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_Expect2Events(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'AggregationRelationship',
19
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}ArchiEventExpect",
20
+ tClass: 'ApplicationFunction', tFqn: "#{state[:myAppName]}Event*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_Events2AppEvent(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'FlowRelationship',
19
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}Event*",
20
+ tClass: 'ApplicationEvent', tFqn: "#{state[:myAppName]}ArchiAppevent*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_Events2ModReceive(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'AccessRelationship',
19
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}Event*",
20
+ tClass: 'DataObject', tFqn: "#{state[:myAppName]}ModReceiveData*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_ModReceive2AppEvent(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'AccessRelationship',
19
+ fClass: 'ApplicationEvent', fFqn: "#{state[:myAppName]}ArchiAppevent*",
20
+ tClass: 'DataObject', tFqn: "#{state[:myAppName]}ModReceiveData*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_Appevent2EventBus(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'ServingRelationship',
19
+ fClass: 'ApplicationService', fFqn: "#{state[:myAppName]}ArchiEventBus",
20
+ tClass: 'ApplicationEvent', tFqn: "#{state[:myAppName]}ArchiAppevent*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_AppEvent2Elements(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'TriggeringRelationship',
19
+ fClass: 'ApplicationEvent', fFqn: "#{state[:myAppName]}ArchiAppevent*",
20
+ tClass: 'ApplicationFunction', tFqn: "#{state[:myAppName]}Element*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_Elements2AppEvent(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'ServingRelationship',
19
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}Element*",
20
+ tClass: 'ApplicationEvent', tFqn: "#{state[:myAppName]}ArchiAppevent*"}
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_Element2ModElements(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'AccessRelationship',
19
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}Element*",
20
+ tClass: 'DataObject', tFqn: "#{state[:myAppName]}ModElement*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,27 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_Element2ModSend(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'AccessRelationship',
19
+ fClass: 'ApplicationFunction', fFqn: "#{state[:myAppName]}Element*",
20
+ tClass: 'DataObject', tFqn: "#{state[:myAppName]}ModSend*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ end
24
+
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,28 @@
1
+ ######## ####### ######## ####### ######## ########
2
+ ## / / / / License \ \ \ \
3
+ ## Copyleft culture, Copyright (C) is prohibited here
4
+ ## This work is licensed under a CC BY-SA 4.0
5
+ ## Creative Commons Attribution-ShareAlike 4.0 License
6
+ ## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
7
+ ######## ####### ######## ####### ######## ########
8
+ ## / / / / Code Climate \ \ \ \
9
+ ## Language = ruby
10
+ ## Indent = space; 4 chars;
11
+ ######## ####### ######## ####### ######## ########
12
+ module ArchestryLookup
13
+ module Lookup
14
+ class << self
15
+
16
+ def lookup_functional_ModElementsSpecs(args, state, viewId, viewType)
17
+ queryName = __method__.to_s; queryName.slice! 'lookup_functional_'; queryName.to_sym
18
+ args[:dialectLookupQuery] = {queryName: queryName, cClass: 'SpecializationRelationship',
19
+ fClass: 'DataObject', fFqn: "#{state[:myAppName]}ModSend*",
20
+ tClass: 'DataObject', tFqn: "#{state[:myAppName]}ModElement*" }
21
+
22
+ dialectLookup(args, state, viewId, viewType)
23
+ dialectRepack(args, state, viewId, viewType, queryName)
24
+ end
25
+
26
+ end
27
+ end
28
+ end