org.activiti.bpmn.model.Process.getCandidateStarterUsers()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中org.activiti.bpmn.model.Process.getCandidateStarterUsers()方法的一些代码示例,展示了Process.getCandidateStarterUsers()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Process.getCandidateStarterUsers()方法的具体详情如下:
包路径:org.activiti.bpmn.model.Process
类名称:Process
方法名:getCandidateStarterUsers

Process.getCandidateStarterUsers介绍

暂无

代码示例

代码示例来源:origin: Activiti/Activiti

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();

代码示例来源:origin: Activiti/Activiti

if (!process.getCandidateStarterUsers().isEmpty()) {
 xtw.writeAttribute(ACTIVITI_EXTENSIONS_PREFIX, ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_USERS, BpmnXMLUtil.convertToDelimitedString(process.getCandidateStarterUsers()));

代码示例来源:origin: Activiti/Activiti

/**
 * @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);
}

代码示例来源:origin: org.activiti/activiti-bpmn-converter

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();

代码示例来源:origin: com.bbossgroups.activiti/activiti-bpmn-converter

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();

代码示例来源:origin: com.bbossgroups.activiti/activiti-bpmn-converter

if (process.getCandidateStarterUsers().size() > 0) {
 xtw.writeAttribute(ACTIVITI_EXTENSIONS_PREFIX, ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_USERS, 
   BpmnXMLUtil.convertToDelimitedString(process.getCandidateStarterUsers()));

代码示例来源:origin: org.activiti/activiti-engine

/**
 * @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);
}

代码示例来源:origin: org.activiti/activiti-bpmn-converter

if (!process.getCandidateStarterUsers().isEmpty()) {
 xtw.writeAttribute(ACTIVITI_EXTENSIONS_PREFIX, ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_USERS, BpmnXMLUtil.convertToDelimitedString(process.getCandidateStarterUsers()));

代码示例来源:origin: com.bbossgroups.activiti/activiti-engine

for (String candidateUser : process.getCandidateStarterUsers()) {
 currentProcessDefinition.addCandidateStarterUserIdExpression(expressionManager.createExpression(candidateUser));

相关文章