if (assignmentValue.startsWith(userPrefix)) { assignmentValue = assignmentValue.substring(userPrefix.length(), assignmentValue.length() - 1).trim(); activeProcess.getCandidateStarterUsers().add(assignmentValue); } else if (assignmentValue.startsWith(groupPrefix)) { assignmentValue = assignmentValue.substring(groupPrefix.length(), assignmentValue.length() - 1).trim();
/** * @param processDefinition */ public void addAuthorizationsForNewProcessDefinition(Process process, ProcessDefinitionEntity processDefinition) { CommandContext commandContext = Context.getCommandContext(); addAuthorizationsFromIterator(commandContext, process.getCandidateStarterUsers(), processDefinition, ExpressionType.USER); addAuthorizationsFromIterator(commandContext, process.getCandidateStarterGroups(), processDefinition, ExpressionType.GROUP); }
if (!process.getCandidateStarterUsers().isEmpty()) { xtw.writeAttribute(FLOWABLE_EXTENSIONS_PREFIX, FLOWABLE_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_USERS, BpmnXMLUtil.convertToDelimitedString(process.getCandidateStarterUsers()));
if (otherElement.getCandidateStarterUsers() != null && !otherElement.getCandidateStarterUsers().isEmpty()) { candidateStarterUsers.addAll(otherElement.getCandidateStarterUsers());
if (otherElement.getCandidateStarterUsers() != null && !otherElement.getCandidateStarterUsers().isEmpty()) { candidateStarterUsers.addAll(otherElement.getCandidateStarterUsers());
propertiesNode.put(PROPERTY_PROCESS_POTENTIALSTARTERGROUP, StringUtils.join(mainProcess.getCandidateStarterGroups(), ",")); if (CollectionUtils.isNotEmpty(mainProcess.getCandidateStarterUsers())) { propertiesNode.put(PROPERTY_PROCESS_POTENTIALSTARTERUSER, StringUtils.join(mainProcess.getCandidateStarterUsers(), ","));
for (String candidateUser : process.getCandidateStarterUsers()) { currentProcessDefinition.addCandidateStarterUserIdExpression(expressionManager.createExpression(candidateUser));