1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
package org.kuali.rice.kew.engine; |
18 |
|
|
19 |
|
import org.kuali.rice.core.api.reflect.ObjectDefinition; |
20 |
|
import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader; |
21 |
|
import org.kuali.rice.core.api.reflect.ObjectDefinition; |
22 |
|
import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader; |
23 |
|
import org.kuali.rice.core.util.ClassLoaderUtils; |
24 |
|
import org.kuali.rice.kew.engine.node.BasicJoinEngine; |
25 |
|
import org.kuali.rice.kew.engine.node.DynamicNode; |
26 |
|
import org.kuali.rice.kew.engine.node.JoinEngine; |
27 |
|
import org.kuali.rice.kew.engine.node.JoinNode; |
28 |
|
import org.kuali.rice.kew.engine.node.Node; |
29 |
|
import org.kuali.rice.kew.engine.node.RequestActivationNode; |
30 |
|
import org.kuali.rice.kew.engine.node.RequestsNode; |
31 |
|
import org.kuali.rice.kew.engine.node.RouteNode; |
32 |
|
import org.kuali.rice.kew.engine.node.SimpleNode; |
33 |
|
import org.kuali.rice.kew.engine.node.SplitNode; |
34 |
|
import org.kuali.rice.kew.engine.node.SubProcessNode; |
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
@link@link |
40 |
|
|
41 |
|
@author |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 20 (20) |
Complexity: 10 |
Complexity Density: 1 |
|
43 |
|
public class RouteHelper { |
44 |
|
|
45 |
|
private JoinEngine joinEngine = new BasicJoinEngine(); |
46 |
|
private RoutingNodeFactory nodeFactory = new RoutingNodeFactory(); |
47 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
0
|
public JoinEngine getJoinEngine() {... |
49 |
0
|
return joinEngine; |
50 |
|
} |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
52 |
0
|
public RoutingNodeFactory getNodeFactory() {... |
53 |
0
|
return nodeFactory; |
54 |
|
} |
55 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
0
|
public boolean isSimpleNode(RouteNode routeNode) {... |
57 |
0
|
return ClassLoaderUtils.isInstanceOf(getNode(routeNode), SimpleNode.class); |
58 |
|
} |
59 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
60 |
0
|
public boolean isJoinNode(RouteNode routeNode) {... |
61 |
0
|
return ClassLoaderUtils.isInstanceOf(getNode(routeNode), JoinNode.class); |
62 |
|
} |
63 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
0
|
public boolean isSplitNode(RouteNode routeNode) {... |
65 |
0
|
return ClassLoaderUtils.isInstanceOf(getNode(routeNode), SplitNode.class); |
66 |
|
} |
67 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0
|
public boolean isDynamicNode(RouteNode routeNode) {... |
69 |
0
|
return ClassLoaderUtils.isInstanceOf(getNode(routeNode), DynamicNode.class); |
70 |
|
} |
71 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
0
|
public boolean isSubProcessNode(RouteNode routeNode) {... |
73 |
0
|
return ClassLoaderUtils.isInstanceOf(getNode(routeNode), SubProcessNode.class); |
74 |
|
} |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0
|
public boolean isRequestActivationNode(RouteNode routeNode) {... |
77 |
0
|
return ClassLoaderUtils.isInstanceOf(getNode(routeNode), RequestActivationNode.class); |
78 |
|
} |
79 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
0
|
public boolean isRequestsNode(RouteNode routeNode) {... |
81 |
0
|
return getNode(routeNode) instanceof RequestsNode; |
82 |
|
} |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
0
|
public Node getNode(RouteNode routeNode) {... |
85 |
0
|
return (Node) GlobalResourceLoader.getObject(new ObjectDefinition(routeNode.getNodeType(), routeNode.getDocumentType().getServiceNamespace())); |
86 |
|
} |
87 |
|
} |