public static Object methodName(matrix.db.Context context,
String[] args)
throws Exception
{
}
The input arguments are:
- Context--passed in always.
- String[] args--will have one element of type HashMap.
The input argument "arg" is a HashMap, which contains the details of the
object to be processed. The data structure of this input parameter (HashMap)
is defined below:
The JPO method can extract the information from the input argument
for processing the data.
public static Object methodName(matrix.db.Context context,
String[] args) throws Exception
{
HashMap programMap = (HashMap) JPO.unpackArgs(args);
HashMap requestMap = (HashMap) programMap.get("requestMap");
HashMap paramMap = (HashMap) programMap.get("paramMap");
String objectId = (String) requestMap.get("objectId");
String relId = (String) paramMap.get("relId");
String languageStr = (String) requestMap.get("languageStr");
?
return object
}
The method returns an object of appropriate type depending
on the where it is used. The details of return types are explained in
the following sections.