|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FilterAttribute
This interface represent an expression in a Filter.
You could find three variables in this class,
Ex.
VarDefinition variable = VarDefinition.getDefaultVarDefinition(VarDefinition.RECEIVE_ID); Filter filter = ProcessService.createFilter(); filter.addAttribute(variable, Comparison.BEFORE, Time.now()); InstanceInfo[] instances = session.getInstancesByFilter(new String[] { "/MyProcessId" }, filter);
VarDefinition variable = session.getVar("MyVariable"); Filter filter = ProcessService.createFilter(); filter.addAttribute(variable, Comparison.IS, new Integer(123)); InstanceInfo[] instances = session.getInstancesByFilter(new String[] { "/MyProcessId" }, filter);
Field Summary | |
---|---|
static String |
CURRENT_USER
Special participant value, this value represent the participant witch execute the filter. |
static long |
serialCheck
|
static long |
serialVersionUID
|
Method Summary | |
---|---|
Comparison |
getComparison()
Return the comparion of the expresion |
int |
getKind()
Return the kind of the VarDefinition to compare |
String |
getSQLExpression(boolean caseSensitive)
Return a String with the SQL Expression generated by the FilterAttribute. |
Object |
getValue()
Return the value to use in the expresion to compare with the instance attribute value. |
VarDefinition |
getVariable()
Return the VarDefinition to compare. |
String |
getVariableId()
Return the id of the VarDefinition to compare |
boolean |
isParametric()
Return if is parametric or not. |
void |
setComparison(Comparison comparison)
Change the comparison of the expression. |
void |
setParametric(boolean parametric)
Set if this FilterAttribute is parametric or not. |
void |
setValue(Object value)
Set the value to use in the expression. |
Field Detail |
---|
@NonNls static final String CURRENT_USER
static final long serialCheck
static final long serialVersionUID
Method Detail |
---|
void setComparison(Comparison comparison)
comparison
- New Comparison to set.Comparison
Comparison getComparison()
Comparison
int getKind()
Kind
void setParametric(boolean parametric)
parametric
- True if this FilterAttribute is parametric, False if not.boolean isParametric()
String getSQLExpression(boolean caseSensitive)
caseSensitive
- True if you use case sensitive strings.
void setValue(Object value)
value
- Object to compare with the instance attribute value.Object getValue()
VarDefinition getVariable()
ProcessServiceSession.variableGet(String)
.
Ex. VarDefinition variable = processServiceSession.variableGet(filterAttribute.getVariableId());
VarDefinition
String getVariableId()
|
ALBPM Process API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |