Retrieving messages from the system engine

To retrieve messages from the system engine, Java code can invoke the CloverleafLink.doRequest() method().

public ArrayList<String[]> doRequest(String[] request)
  • Parameter request is five items in a string array.
  • An ArrayList of messages is returned contained in a String[].

This code fragment shows how to invoke the method:

ArrayList<String[]> callAry = new String[DrCon.RQ_PARA_LEN];
callAry[DrCon.RQ_KEY] = keyS;
callAry[DrCon.RQ_JAVA_OP] = operationS;
callAry[DrCon.RQ_SUB_KEY] = (subKeyS.length() == 0) ? null: subKeyS;
callAry[DrCon.RQ_INDEX] = (indexS.length() == 0) ? null: indexS;
callAry[DrCon.RQ_NAME] = (nameS.length() == 0) ? null: nameS;
retAl = cl.doRequest(callAry);