01: /*
02: * Created on Jul 14, 2003
03: *
04: * To change the template for this generated file go to
05: * Window>Preferences>Java>Code Generation>Code and Comments
06: */
07: package org.xdev.base.xssl.bpm.condition;
08:
09: import java.util.ArrayList;
10: import java.util.HashMap;
11:
12: import org.xdev.base.xssl.XSSLAction;
13: import org.xdev.base.xssl.XSSLActionIterator;
14: import org.xdev.base.xssl.XSSLComponent;
15:
16: /**
17: * @author AYegorov
18: *
19: * To change the template for this generated type comment go to
20: * Window>Preferences>Java>Code Generation>Code and Comments
21: */
22: public abstract class AbstractConditionGroup extends XSSLActionIterator {
23:
24: /**
25: * @param id
26: */
27: public AbstractConditionGroup(String id) {
28: super (id);
29: // TODO Auto-generated constructor stub
30: }
31:
32: /**
33: * @param id
34: * @param properties
35: */
36: public AbstractConditionGroup(String id, HashMap properties) {
37: super (id, properties);
38: // TODO Auto-generated constructor stub
39: }
40:
41: /* (non-Javadoc)
42: * @see org.xdev.base.transaction.TemplateElementIterator#invoke(org.xdev.base.transaction.TemplateComponent)
43: */
44: protected void invoke(XSSLAction action) throws Exception {
45: if (!this .evaluate(action)) {
46: //throw new ConditionFailedException(action, this);
47: this .setExecutionStatus(false);
48: }
49: }
50:
51: abstract protected boolean evaluate(XSSLAction action)
52: throws Exception;
53:
54: protected void set() throws Exception {
55: }
56: }
|