Hello
I have a problem calling calling D2CoreMethod via DFC from a Module i created. The DFC code i supplied at the bottom of this question
I am using D2 v 4.1
The case is that i Supply this argument:
"-dql_filter select r_object_id from slimsag_document where case_ready_for_distr_int=true "
But I get this errormessage in the log:
08:54:06,368 ERROR [http-0.0.0.0-9080-1] com.documentum.mthdservlet.DoMethod - Exception invoking com.emc.d2.api.methods.D2Method.
DfException:: THREAD: http-0.0.0.0-9080-1; MSG: [DM_QUERY_E_SYNTAX]error: "A Parser Error (syntax error) has occurred in the vicinity of: select"; ERRORCODE: 100; NEXT: null
I have allso tried to use the query as:
from slimsag_document where case_ready_for_distr_int=true
and
slimsag_document where case_ready_for_distr_int=true "
Anyone has a clue about where i´m going wrong?
Thank you
/Anders
-----------Here is my DFC call to run the method
private void runD2CoreJob() throws DfException {
IDfList argsList = new DfList();
argsList.insertString(0, "METHOD");
argsList.insertString(1, "SAVE_RESULTS");
argsList.insertString(2, "ARGUMENTS");
argsList.insertString(3, "LAUNCH_ASYNC");
argsList.insertString(4, "RUN_AS_SERVER");
IDfList argsTypes = new DfList();
argsTypes.insertString(0, "S");
argsTypes.insertString(1, "B");
argsTypes.insertString(2, "S");
argsTypes.insertString(3, "B");
argsTypes.insertString(4, "B");
IDfList argsValues = new DfList();
argsValues.insertString(0, "D2CoreMethod");
argsValues.insertString(1, "T");
argsValues.insertString(2, "'" +
"-docbase_name D2_Sagsdemo " +
"-user_name dmadmin " +
"-dql_filter select r_object_id from slimsag_document where case_ready_for_distr_int=true " +
"-create false " +
"-naming true " +
"-autolink true " +
"-security true " +
"-apply_for_vd false'" +
"");
argsValues.insertString(3, "T");
argsValues.insertString(4, "T");
System.out.println("executeMethod...");
getSession().apply(null, "DO_METHOD", argsList, argsTypes, argsValues);
System.out.println("finished!");
}