07-06-2012 06:16 AM
07-13-2012 03:44 AM
07-13-2012 04:22 AM
07-16-2012 03:07 AM
08-08-2012 03:58 AM
/* Get the usertasks */
UserTaskActivityBehavior utab = null;
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionKey("process1").latestVersion().singleResult();
ReadOnlyProcessDefinition procDef = ((RepositoryServiceImpl) repositoryService).getDeployedProcessDefinition(processDefinition.getId());
for(PvmActivity activity : procDef.getActivities()) {
if(((ActivityImpl)activity).getActivityBehavior() instanceof UserTaskActivityBehavior) {
utab = (UserTaskActivityBehavior) ((ActivityImpl)activity).getActivityBehavior();
utab.getTaskDefinition().getNameExpression().getExpressionText(); //name
utab.getTaskDefinition().getKey(); //id
}
}
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.