this.userId=userId;
}
public List<Map<String, Object>> execute(CommandContext commandContext) {
List<Map<String, Object>> returnListMaps=new ArrayList<Map<String,Object>>();
List<Map<String, Object>> listmMaps=commandContext.getTaskManager().findAgentToUsers(userId);
UserDefinition userDefinition=commandContext.getProcessEngineConfigurationImpl().getUserDefinition();
for (Map<String, Object> map : listmMaps) {
String userIdDataString=StringUtil.getString(map.get("EID"));
if(userIdDataString!=null&&!userIdDataString.equals("")){
UserTo userTo=userDefinition.findUserByUserId(userIdDataString);
if(userTo !=null){
Map<String, Object> mapDataMap=new HashMap<String, Object>();
mapDataMap.put("userid", userTo.getUserId());
mapDataMap.put("username", userTo.getUserName());
mapDataMap.put("count", 0);