Triggering Expressions in Batch Mode

The batch mode execution of Expressions provide a facility to evaluate Expressions for all the records in a class. You can write an independent XDAPI program which calls the method evaluateExpression of XDConnection with the Expression Name as argument.

Sample Program

public class ExpBatch {
private XDConnection connection;
public ExpBatch() {
//create XDConnection
}
public void evaluateExpression(String expressionName) {
try{
connection.evaluateExpression(expressionName);
}
catch(XDException e){
e.printStackTrace();
}
}
public static void main(String arg[]){
String expressionName = "Expression Name"; //Put the
Expression Name here
ExpBatch exp = new ExpBatch();
exp.evaluateExpression(expressionName);
}
}