jruby_activiti 2.0.4 → 2.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16a01a2dfbb63006de51207eaeb13fe85ad73aa0
4
- data.tar.gz: be24efd64217f5600017e2cd194bedfe5c12f745
3
+ metadata.gz: 77ae93f09ebec96b36d3b41aa527bf7fde796f8f
4
+ data.tar.gz: 4c849c50040643bce36a6b478a420943be26c338
5
5
  SHA512:
6
- metadata.gz: a9e495b98d909b2b3a7ff061b60e2eca8a7a2e6a2e5f8ea2035cf1b1a932c44835339050f4f43b1c8bc17390fd77787a6155e744c0d34c7db1bbf0b306baf595
7
- data.tar.gz: d6fcffcfa98cbc83e1bb016c25b0cad47ab7b84ee5becc8b68a0614e884da45e5a7b78ec5cd98eb3b8379bd9f34b3386df99ed1d4c4b92dad837ffd1b27d02a7
6
+ metadata.gz: d4480d030e5b446048f490fd4989ce3b50a887285f5be95972468684329d12529531de6c042b302bf9138392b86f3671e36841e0ae77be88abefb94ce87ca995
7
+ data.tar.gz: 320c9c77273e24ae402c7e9b72a83aeca49e1036d36a9688e22cc2f8fe98c2ded0a1fb3a8ccab4ef6bbe93104b7daa49a33f9306d93f328f974f033098dfaa99
data/Jarfile.lock CHANGED
@@ -1,26 +1,25 @@
1
1
  ---
2
2
  :runtime:
3
- - org.activiti:activiti-bpmn-converter:jar:5.19.0
4
3
  - log4j:log4j:jar:1.2.17
5
- - org.yaml:snakeyaml:jar:1.14
6
4
  - aopalliance:aopalliance:jar:1.0
7
5
  - org.apache.xmlgraphics:batik-svggen:jar:1.7
8
6
  - org.springframework.security:spring-security-core:jar:3.2.3.RELEASE
9
7
  - org.apache.xmlgraphics:xmlgraphics-commons:jar:1.2
10
8
  - org.apache.xmlgraphics:batik-util:jar:1.7
11
9
  - org.apache.xmlgraphics:batik-gvt:jar:1.7
10
+ - org.activiti:activiti-process-validation:jar:5.19.0.1
11
+ - org.activiti:activiti-common-rest:jar:5.19.0.1
12
12
  - org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1
13
- - org.activiti:activiti-modeler:jar:5.19.0
14
13
  - org.slf4j:slf4j-log4j12:jar:1.7.13
15
14
  - org.apache.xmlgraphics:batik-parser:jar:1.7
16
15
  - xml-apis:xml-apis-ext:jar:1.3.04
17
16
  - org.apache.xmlgraphics:batik-script:jar:1.7
18
17
  - org.springframework:spring-beans:jar:4.1.5.RELEASE
18
+ - org.activiti:activiti-json-converter:jar:5.19.0.1
19
19
  - org.apache.xmlgraphics:batik-bridge:jar:1.7
20
20
  - org.apache.avalon.framework:avalon-framework-api:jar:4.3.1
21
21
  - org.apache.xmlgraphics:batik-svg-dom:jar:1.7
22
- - org.activiti:activiti-bpmn-model:jar:5.19.0
23
- - org.activiti:activiti-engine:jar:5.19.0
22
+ - org.activiti:activiti-bpmn-model:jar:5.19.0.1
24
23
  - org.springframework:spring-aop:jar:4.1.5.RELEASE
25
24
  - org.apache.xmlgraphics:batik-js:jar:1.7
26
25
  - org.springframework:spring-expression:jar:4.1.5.RELEASE
@@ -29,10 +28,10 @@
29
28
  - math.geom2d:javaGeom:jar:0.11.1
30
29
  - org.apache.xmlgraphics:fop:jar:0.94
31
30
  - org.apache.xmlgraphics:batik-dom:jar:1.7
31
+ - org.activiti:activiti-engine:jar:5.19.0.1
32
+ - org.activiti:activiti-modeler:jar:5.19.0.1
32
33
  - org.apache.commons:commons-lang3:jar:3.3.2
33
- - org.activiti:activiti-common-rest:jar:5.19.0
34
34
  - com.fasterxml.jackson.core:jackson-core:jar:2.2.3
35
- - org.activiti:activiti-json-converter:jar:5.19.0
36
35
  - org.apache.xmlgraphics:batik-codec:jar:1.7
37
36
  - org.slf4j:slf4j-api:jar:1.7.6
38
37
  - org.springframework:spring-webmvc:jar:4.1.5.RELEASE
@@ -48,14 +47,14 @@
48
47
  - com.h2database:h2:jar:1.4.190
49
48
  - org.springframework:spring-web:jar:4.1.5.RELEASE
50
49
  - org.springframework.security:spring-security-crypto:jar:3.2.3.RELEASE
51
- - org.activiti:activiti-image-generator:jar:5.19.0
52
50
  - javax.activation:activation:jar:1.1.1
51
+ - org.activiti:activiti-bpmn-converter:jar:5.19.0.1
53
52
  - org.apache.commons:commons-email:jar:1.4
54
53
  - com.sun.mail:javax.mail:jar:1.5.2
55
54
  - org.springframework:spring-tx:jar:4.1.5.RELEASE
56
55
  - com.fasterxml.jackson.core:jackson-databind:jar:2.2.3
57
- - org.activiti:activiti-process-validation:jar:5.19.0
58
56
  - org.apache.xmlgraphics:batik-transcoder:jar:1.7
57
+ - org.activiti:activiti-image-generator:jar:5.19.0.1
59
58
  - joda-time:joda-time:jar:2.6
60
59
  - com.fasterxml.jackson.core:jackson-annotations:jar:2.2.3
61
60
  - commons-io:commons-io:jar:1.1
@@ -1,3 +1,3 @@
1
1
  module JrubyActiviti
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
@@ -99,7 +99,7 @@ module JrubyActiviti
99
99
  init_json = '{"id":"canvas","resourceId":"canvas","stencilset":{"namespace":"http://b3mn.org/stencilset/bpmn2.0#"}}'
100
100
  Activiti::RepositoryService.addModelEditorSource(model.getId(), init_json.bytes)
101
101
 
102
- redirect uri('/models')
102
+ redirect uri("/modeler.html?modelId=#{model.getId()}")
103
103
  end
104
104
 
105
105
  get "/models/:model_id/deploy" do
@@ -116,6 +116,11 @@ module JrubyActiviti
116
116
  erb 'process_definitions/index'.to_sym
117
117
  end
118
118
 
119
+ get "/process_definitions/:id" do
120
+ @process_definition = Activiti::RepositoryService.createProcessDefinitionQuery().processDefinitionId(params[:id]).singleResult()
121
+ erb 'process_definitions/show'.to_sym
122
+ end
123
+
119
124
  get "/process_instances" do
120
125
  erb 'process_instances/index'.to_sym
121
126
  end
@@ -1,19 +1,15 @@
1
- <!-- getKey() unique name for all versions this process definitions -->
2
-
3
1
  <table class="table">
4
2
  <tr>
5
- <th>getId()</th>
6
- <th>getDeploymentId()</th>
7
- <th>getCategory()</th>
8
- <th>getDescription()</th>
9
- <th>getDiagramResourceName()</th>
10
- <th>getKey()</th>
11
- <th>getResourceName()</th>
12
- <th>getTenantId()</th>
13
- <th>getVersion()</th>
14
- <th>hasGraphicalNotation()</th>
15
- <th>hasStartFormKey()</th>
16
- <th>isSuspended()</th>
3
+ <th>Id</th>
4
+ <th>DeploymentId</th>
5
+ <th>Category</th>
6
+ <th>Description</th>
7
+ <th>Key</th>
8
+ <th>Version</th>
9
+ <th>hasStartFormKey</th>
10
+ <th>isSuspended</th>
11
+ <th></th>
12
+ <th></th>
17
13
  </tr>
18
14
  <% for process_definition in @process_definitions %>
19
15
  <tr>
@@ -21,14 +17,12 @@
21
17
  <td><%= process_definition.getDeploymentId() %></td>
22
18
  <td><%= process_definition.getCategory() %></td>
23
19
  <td><%= process_definition.getDescription() %></td>
24
- <td><%= process_definition.getDiagramResourceName() %></td>
25
20
  <td><%= process_definition.getKey() %></td>
26
- <td><%= process_definition.getResourceName() %></td>
27
- <td><%= process_definition.getTenantId() %></td>
28
21
  <td><%= process_definition.getVersion() %></td>
29
- <td><%= process_definition.hasGraphicalNotation() %></td>
30
22
  <td><%= process_definition.hasStartFormKey() %></td>
31
23
  <td><%= process_definition.isSuspended() %></td>
24
+ <td><a href="<%= uri("/process_definitions/#{process_definition.getId()}") %>" class="btn">Show</a></td>
25
+ <td><a href="<%= uri("/diagram-viewer/index.html?processDefinitionId=#{process_definition.getId()}") %>" class="btn">Show in Diagram Viewer</a></td>
32
26
  </tr>
33
27
  <% end %>
34
- </table>
28
+ </table>
@@ -0,0 +1,52 @@
1
+ <h3>ProcessDefinition#show</h3>
2
+
3
+ <table class="table">
4
+ <tr>
5
+ <td>getId()</td>
6
+ <td><%= @process_definition.getId() %></td>
7
+ </tr>
8
+ <tr>
9
+ <td>getDeploymentId()</td>
10
+ <td><%= @process_definition.getDeploymentId() %></td>
11
+ </tr>
12
+ <tr>
13
+ <td>getCategory()</td>
14
+ <td><%= @process_definition.getCategory() %></td>
15
+ </tr>
16
+ <tr>
17
+ <td>getDescription()</td>
18
+ <td><%= @process_definition.getDescription() %></td>
19
+ </tr>
20
+ <tr>
21
+ <td>getDiagramResourceName()</td>
22
+ <td><%= @process_definition.getDiagramResourceName() %></td>
23
+ </tr>
24
+ <tr>
25
+ <td>getKey() unique name for all versions this process definitions</td>
26
+ <td><%= @process_definition.getKey() %></td>
27
+ </tr>
28
+ <tr>
29
+ <td>getResourceName()</td>
30
+ <td><%= @process_definition.getResourceName() %></td>
31
+ </tr>
32
+ <tr>
33
+ <td>getTenantId()</td>
34
+ <td><%= @process_definition.getTenantId() %></td>
35
+ </tr>
36
+ <tr>
37
+ <td>getVersion()</td>
38
+ <td><%= @process_definition.getVersion() %></td>
39
+ </tr>
40
+ <tr>
41
+ <td>hasGraphicalNotation()</td>
42
+ <td><%= @process_definition.hasGraphicalNotation() %></td>
43
+ </tr>
44
+ <tr>
45
+ <td>hasStartFormKey()</td>
46
+ <td><%= @process_definition.hasStartFormKey() %></td>
47
+ </tr>
48
+ <tr>
49
+ <td>isSuspended()</td>
50
+ <td><%= @process_definition.isSuspended() %></td>
51
+ </tr>
52
+ </table>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby_activiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - richfisher
@@ -393,6 +393,7 @@ files:
393
393
  - web/views/models/index.erb
394
394
  - web/views/models/new.erb
395
395
  - web/views/process_definitions/index.erb
396
+ - web/views/process_definitions/show.erb
396
397
  - web/views/process_instances/index.erb
397
398
  homepage: https://github.com/richfisher/jruby_activiti
398
399
  licenses: