getprocessesforuser.js revision 3f0d3e7b5c53efd100d8e66f8d8357eb57258100
var users = {};
if (!user) {
var params = {
"_query-id": "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 = {
"_query-id": "query-all-ids",
};
processDefinitions = openidm.query("workflow/processdefinition", processDefinitionsQueryParams).result;
//return value