cpee-worklist 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/AUTHORS +3 -0
- data/LICENSE +165 -0
- data/README.md +21 -0
- data/Rakefile +21 -0
- data/cpee-worklist.gemspec +27 -0
- data/lib/cpee-worklist/activities.rb +36 -0
- data/lib/cpee-worklist/controller.rb +160 -0
- data/lib/cpee-worklist/implementation.rb +432 -0
- data/lib/cpee-worklist/implementation.xml +35 -0
- data/lib/cpee-worklist/organisation.rng +82 -0
- data/lib/cpee-worklist/routing/end.rb +59 -0
- data/lib/cpee-worklist/routing/forward-events.rb +78 -0
- data/lib/cpee-worklist/routing/forward-votes.rb +125 -0
- data/lib/cpee-worklist/routing/persist.rb +75 -0
- data/lib/cpee-worklist/topics.xml +32 -0
- data/lib/cpee-worklist/user.rb +61 -0
- data/lib/cpee-worklist/utils.rb +52 -0
- data/lib/cpee-worklist/wlengine.xml +176 -0
- data/server/worklist +37 -0
- data/server/worklist.conf +2 -0
- data/tools/cpee-worklist +49 -0
- metadata +135 -0
data/tools/cpee-worklist
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
curpath = __dir__
|
3
|
+
require 'rubygems'
|
4
|
+
require 'optparse'
|
5
|
+
require 'fileutils'
|
6
|
+
require 'xml/smart'
|
7
|
+
|
8
|
+
def wrap(s, width=78, indent=18)
|
9
|
+
lines = []
|
10
|
+
line, s = s[0..indent-2], s[indent..-1]
|
11
|
+
s.split(/\n/).each do |ss|
|
12
|
+
ss.split(/[ \t]+/).each do |word|
|
13
|
+
if line.size + word.size >= width
|
14
|
+
lines << line
|
15
|
+
line = (" " * (indent)) + word
|
16
|
+
else
|
17
|
+
line << " " << word
|
18
|
+
end
|
19
|
+
end
|
20
|
+
lines << line if line
|
21
|
+
line = (" " * (indent-1))
|
22
|
+
end
|
23
|
+
return lines.join "\n"
|
24
|
+
end
|
25
|
+
|
26
|
+
ARGV.options { |opt|
|
27
|
+
opt.summary_indent = ' ' * 2
|
28
|
+
opt.summary_width = 15
|
29
|
+
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [DIR]\n"
|
30
|
+
opt.on("Options:")
|
31
|
+
opt.on("--help", "-h", "This text") { puts opt; exit }
|
32
|
+
opt.on("")
|
33
|
+
opt.on(wrap("[DIR] scaffolds a sample instantiation service. Post a testset to a model to keep going in one operation."))
|
34
|
+
opt.parse!
|
35
|
+
}
|
36
|
+
if (ARGV.length != 1)
|
37
|
+
puts ARGV.options
|
38
|
+
exit
|
39
|
+
else
|
40
|
+
p1 = ARGV[0]
|
41
|
+
end
|
42
|
+
|
43
|
+
insta = "#{curpath}/../server/"
|
44
|
+
if !File.exist?(p1)
|
45
|
+
FileUtils.cp_r(insta,p1)
|
46
|
+
else
|
47
|
+
FileUtils.cp_r(Dir.glob(File.join(insta,'*')).delete_if{|e| e =~ /\.conf/ },p1,remove_destination: true)
|
48
|
+
puts 'Directory already exists, updating ...'
|
49
|
+
end
|
metadata
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cpee-worklist
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Juergen eTM Mangler
|
8
|
+
- Florian Stertz
|
9
|
+
- Patrik Koenig
|
10
|
+
autorequire:
|
11
|
+
bindir: tools
|
12
|
+
cert_chain: []
|
13
|
+
date: 2024-06-11 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: riddl
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '1.0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: json
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '2.1'
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '2.1'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: cpee
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '2.1'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.1.56
|
53
|
+
type: :runtime
|
54
|
+
prerelease: false
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '2.1'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.1.56
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: chronic_duration
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.10'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.10.6
|
73
|
+
type: :runtime
|
74
|
+
prerelease: false
|
75
|
+
version_requirements: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0.10'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.10.6
|
83
|
+
description: see http://cpee.org
|
84
|
+
email: juergen.mangler@gmail.com
|
85
|
+
executables:
|
86
|
+
- cpee-worklist
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files:
|
89
|
+
- README.md
|
90
|
+
files:
|
91
|
+
- AUTHORS
|
92
|
+
- LICENSE
|
93
|
+
- README.md
|
94
|
+
- Rakefile
|
95
|
+
- cpee-worklist.gemspec
|
96
|
+
- lib/cpee-worklist/activities.rb
|
97
|
+
- lib/cpee-worklist/controller.rb
|
98
|
+
- lib/cpee-worklist/implementation.rb
|
99
|
+
- lib/cpee-worklist/implementation.xml
|
100
|
+
- lib/cpee-worklist/organisation.rng
|
101
|
+
- lib/cpee-worklist/routing/end.rb
|
102
|
+
- lib/cpee-worklist/routing/forward-events.rb
|
103
|
+
- lib/cpee-worklist/routing/forward-votes.rb
|
104
|
+
- lib/cpee-worklist/routing/persist.rb
|
105
|
+
- lib/cpee-worklist/topics.xml
|
106
|
+
- lib/cpee-worklist/user.rb
|
107
|
+
- lib/cpee-worklist/utils.rb
|
108
|
+
- lib/cpee-worklist/wlengine.xml
|
109
|
+
- server/worklist
|
110
|
+
- server/worklist.conf
|
111
|
+
- tools/cpee-worklist
|
112
|
+
homepage: http://cpee.org/
|
113
|
+
licenses:
|
114
|
+
- LGPL-3.0-or-later
|
115
|
+
metadata: {}
|
116
|
+
post_install_message:
|
117
|
+
rdoc_options: []
|
118
|
+
require_paths:
|
119
|
+
- lib
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.4.0
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
requirements: []
|
131
|
+
rubygems_version: 3.5.9
|
132
|
+
signing_key:
|
133
|
+
specification_version: 4
|
134
|
+
summary: Worklist for the cloud process execution engine (cpee.org)
|
135
|
+
test_files: []
|