Search in sources :

Example 1 with ActionHandler

use of com.axelor.meta.ActionHandler in project axelor-open-suite by axelor.

the class ActionServiceImpl method apply.

@SuppressWarnings("unchecked")
protected void apply(String actions) {
    ActionHandler handler = createHandler(actions);
    Object value = handler.execute();
    ActionResponse response = (ActionResponse) value;
    List<Map<String, Object>> dataList = (List<Map<String, Object>>) response.getData();
    for (Map<String, Object> map : dataList) {
        updateContext(map);
    }
}
Also used : List(java.util.List) ActionHandler(com.axelor.meta.ActionHandler) HashMap(java.util.HashMap) Map(java.util.Map) ActionResponse(com.axelor.rpc.ActionResponse)

Aggregations

ActionHandler (com.axelor.meta.ActionHandler)1 ActionResponse (com.axelor.rpc.ActionResponse)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1