use of org.camunda.bpm.model.cmmn.instance.HumanTask in project camunda-bpm-platform by camunda.
the class HumanTaskItemHandler method initializeTaskDefinitionCandidateUsers.
protected void initializeTaskDefinitionCandidateUsers(CmmnElement element, TaskDefinition taskDefinition, CmmnHandlerContext context) {
HumanTask definition = getDefinition(element);
ExpressionManager expressionManager = context.getExpressionManager();
List<String> candidateUsers = definition.getCamundaCandidateUsersList();
for (String candidateUser : candidateUsers) {
Expression candidateUserExpression = expressionManager.createExpression(candidateUser);
taskDefinition.addCandidateUserIdExpression(candidateUserExpression);
}
}
use of org.camunda.bpm.model.cmmn.instance.HumanTask in project camunda-bpm-platform by camunda.
the class HumanTaskItemHandler method initializeTaskDefinitionCandidateGroups.
protected void initializeTaskDefinitionCandidateGroups(CmmnElement element, TaskDefinition taskDefinition, CmmnHandlerContext context) {
HumanTask definition = getDefinition(element);
ExpressionManager expressionManager = context.getExpressionManager();
List<String> candidateGroups = definition.getCamundaCandidateGroupsList();
for (String candidateGroup : candidateGroups) {
Expression candidateGroupExpression = expressionManager.createExpression(candidateGroup);
taskDefinition.addCandidateGroupIdExpression(candidateGroupExpression);
}
}
use of org.camunda.bpm.model.cmmn.instance.HumanTask in project camunda-bpm-platform by camunda.
the class HumanTaskItemHandler method initializeTaskDefinitionDueDate.
protected void initializeTaskDefinitionDueDate(CmmnElement element, TaskDefinition taskDefinition, CmmnHandlerContext context) {
HumanTask definition = getDefinition(element);
String dueDate = definition.getCamundaDueDate();
if (dueDate != null) {
ExpressionManager expressionManager = context.getExpressionManager();
Expression dueDateExpression = expressionManager.createExpression(dueDate);
taskDefinition.setDueDateExpression(dueDateExpression);
}
}
use of org.camunda.bpm.model.cmmn.instance.HumanTask in project camunda-bpm-platform by camunda.
the class HumanTaskItemHandler method initializeTaskDefinitionFormKey.
protected void initializeTaskDefinitionFormKey(CmmnElement element, TaskDefinition taskDefinition, CmmnHandlerContext context) {
HumanTask definition = getDefinition(element);
String formKey = definition.getCamundaFormKey();
if (formKey != null) {
ExpressionManager expressionManager = context.getExpressionManager();
Expression formKeyExpression = expressionManager.createExpression(formKey);
taskDefinition.setFormKey(formKeyExpression);
}
}
use of org.camunda.bpm.model.cmmn.instance.HumanTask in project camunda-bpm-platform by camunda.
the class HumanTaskItemHandler method initializeTaskDefinitionPriority.
protected void initializeTaskDefinitionPriority(CmmnElement element, TaskDefinition taskDefinition, CmmnHandlerContext context) {
HumanTask definition = getDefinition(element);
String priority = definition.getCamundaPriority();
if (priority != null) {
ExpressionManager expressionManager = context.getExpressionManager();
Expression priorityExpression = expressionManager.createExpression(priority);
taskDefinition.setPriorityExpression(priorityExpression);
}
}
Aggregations