AnsweredAssumed Answered

candidateGroups does not work for process

Question asked by abelli on Sep 11, 2018

I am extending activiti-examples with my business process. when the user task's candidateGroups are filled but candidateUsers not, the user can't get the task after process instance started. So filling candidateUsers for the task, the tasks can be queried then. what's the issue? thanks.

 

appendix:

In DemoApplicationConfiguration class, more users are registered:

, arrayOf("abel", "abel", "ROLE_ACTIVITI_USER", "deptLeader", "FirmLeader", "leader")
, arrayOf("jack", "jack", "ROLE_ACTIVITI_USER", "finder")
, arrayOf("mike", "mike", "ROLE_ACTIVITI_USER", "finder")
, arrayOf("joe", "joe", "ROLE_ACTIVITI_USER", "fixer")
, arrayOf("scott", "scott", "ROLE_ACTIVITI_USER", "fixer")

and snippets in one bpmn file:

<userTask id="usertaskAssign" name="任务分配" activiti:candidateUsers="abel,scott" activiti:candidateGroups="deptLeader,Firmleader">
    <extensionElements>
        <activiti:formProperty id="dmaId" name="DMA标识" type="string"></activiti:formProperty>
        <activiti:formProperty id="dmaName" name="DMA名称" type="string"></activiti:formProperty>
        <activiti:formProperty id="startLossDate" name="起始日期" type="date"></activiti:formProperty>
        <activiti:formProperty id="startLoss" name="起始漏损" type="float"></activiti:formProperty>
        <activiti:formProperty id="maxLossDate" name="最大漏损日期" type="date"></activiti:formProperty>
        <activiti:formProperty id="maxLoss" name="最大漏损" type="float"></activiti:formProperty>
    </extensionElements>
</userTask>
<sequenceFlow id="flow3" sourceRef="startevent1" targetRef="usertaskAssign"></sequenceFlow>

Outcomes