コード例 #1
0
        protected internal virtual void initializeTaskDefinitionCandidateUsers(CmmnElement element, TaskDefinition taskDefinition, CmmnHandlerContext context)
        {
            HumanTask         definition        = getDefinition(element);
            ExpressionManager expressionManager = context.ExpressionManager;

            IList <string> candidateUsers = definition.CamundaCandidateUsersList;

            foreach (string candidateUser in candidateUsers)
            {
                Expression candidateUserExpression = expressionManager.createExpression(candidateUser);
                taskDefinition.addCandidateUserIdExpression(candidateUserExpression);
            }
        }