getprocessesforuser.js revision 413464e9b804685d96704f90a688c93b193c7c6d
var users = {};
if (!user) {
var params = {
"_queryId": "for-userName",
"uid": userId
};
}
if (!user) {
}
if(!user) {
throw "Bad userId";
}
}
}
}
return true;
}
}
return false;
}
return false;
}
}
}
return true;
}
var processesAvalibleToUser = [];
var processDefinition = processDefinitions[i];
}
}
return processesAvalibleToUser;
}
throw "Required params: userId or userName";
} else {
} else {
}
}
//code:
var processDefinitions = {};
var users = {};
var processesForUser = [];
var processDefinitionsQueryParams = {
"_queryId": "query-all-ids",
};
processDefinitions = openidm.query("workflow/processdefinition", processDefinitionsQueryParams).result;
//return value