1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.engine.node;
17
18 import org.kuali.rice.kew.engine.RouteContext;
19 import org.kuali.rice.kew.engine.RouteHelper;
20
21
22
23
24
25
26
27 public class SimpleJoinNode implements JoinNode {
28
29 protected final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(getClass());
30
31 public JoinResult process(RouteContext context, RouteHelper helper) throws Exception {
32 RouteNodeInstance nodeInstance = context.getNodeInstance();
33 LOG.debug("Processing join node " + nodeInstance.getRouteNodeInstanceId());
34 if (helper.getJoinEngine().isJoined(nodeInstance)) {
35 LOG.debug("Join node is completely joined "+nodeInstance.getRouteNodeInstanceId());
36 return new JoinResult(true);
37 }
38 return new JoinResult(false);
39 }
40
41
42
43 }