11-13-2012 06:27 AM
11-13-2012 11:08 AM
public class ProcessDefinitionsResource extends SecuredResource {
Map<String, QueryProperty> properties = new HashMap<String, QueryProperty>();
public ProcessDefinitionsResource() {
properties.put("id", ProcessDefinitionQueryProperty.PROCESS_DEFINITION_ID);
properties.put("key", ProcessDefinitionQueryProperty.PROCESS_DEFINITION_KEY);
properties.put("version", ProcessDefinitionQueryProperty.PROCESS_DEFINITION_VERSION);
properties.put("deploymentId", ProcessDefinitionQueryProperty.DEPLOYMENT_ID);
properties.put("name", ProcessDefinitionQueryProperty.PROCESS_DEFINITION_NAME);
properties.put("category", ProcessDefinitionQueryProperty.PROCESS_DEFINITION_CATEGORY);
}
@Get
public DataResponse getProcessDefinitions() {
if(authenticate() == false) return null;
ProcessDefinitionQuery processDefinitionQuery =
ActivitiUtil.getRepositoryService().createProcessDefinitionQuery();
String startableByUser = getQuery().getValues("startableByUser");
if (startableByUser != null) {
processDefinitionQuery.startableByUser(startableByUser);
}
DataResponse response =
new ProcessDefinitionsPaginateList().paginateList(getQuery(),
processDefinitionQuery,
"id",
properties);
return response;
}
}
11-13-2012 11:48 AM
11-14-2012 05:38 AM
11-14-2012 03:07 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.