custom business logic with lists as values in the return map

I require my custom business logic to have lists as values in the return map

// sync calls, 4 of them, in handleEvent

  public Map handleEvent( RunnerContext context, Map eventArgs )
List<Map> tableACollection = Backendless.Data.of("TABLE-A").find(queryBuilder); // sync call for TABLE-A
List<Map> tableBCollection = Backendless.Data.of("TABLE-B").find(queryBuilder); // sync call for TABLE-B
List<Map> tableCCollection = Backendless.Data.of("TABLE-C").find(queryBuilder); // sync call for TABLE-C
List<Map> tableDCollection = Backendless.Data.of("TABLE-D").find(queryBuilder); // sync call for TABLE-D

Map<String, List<Map>> map = new HashMap<String, List<Map>>();
    map.put("tableACollectionKey", tableACollection);
    map.put("tableBCollectionKey", tableBCollection);
    map.put("tableCCollectionKey", tableCCollection);
    map.put("tableDCollectionKey", tableDCollection);

wrong 3rd arguement when i attempt modify the dispatch

Backendless.Events.dispatch("MyEvent", null, new AsyncCallback<Map<String, List<Map>>>() {
            public void handleResponse(Map<String, List<Map>> map) {

            public void handleFault(BackendlessFault fault) {


Please clarify what is your question.


I want the handleEvent method in custom event to return a single key, Multiple Values map and the handleResponse method in the dispatching call handle response to be able to recieve it

Currently the dispatch method accepts only an object as the response map value

HashMap args = new HashMap();
args.put( "weather", "sunny" );
Backendless.Events.dispatch( "foo", args, new AsyncCallback <Map>()
  public void handleResponse( Map result )

can args be null?

Yes, args can be null