01-06-2011 11:10 AM
TaskQuery taskQuery = taskService.createTaskQuery();
taskQuery.taskDefinitionKey("userTask");
taskQuery.taskName("Allow order");
List<Task> taskList = taskQuery.list();
for (Task task : taskList) {
Map<String, Object> variables = taskService.getVariables(task.getId());
final String taskDepartment = (String)variables.get("department");
if (taskDepartment.matches("dep1")) {
System.out.println("Hit!");
}
}
ProcessInstanceQuery query = runtimeService.createProcessInstanceQuery();
query.variableValueEquals("department", "dep1");
rc = query.list();
01-07-2011 05:26 AM
I started evaluating Activiti and I am quite impressed. It was very easy to write an example workflow and use the API, straight foward, very nice, thanks for the execellent work.
01-07-2011 09:25 AM
I've filed a feature request for it: http://jira.codehaus.org/browse/ACT-501
However, this will not be implemented in the near future due to more important feature requests at this moment.
Alternatively, we can off a 'backport' to run custom SQL queries, see http://jira.codehaus.org/browse/ACT-502
This can be implemented very quickly. Are you capable/willing of building from trunk and trying this fox for us?
02-07-2011 03:02 AM
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.