AnsweredAssumed Answered

ExceptionActiviti: unknown property used in expresion

Question asked by cherry0103 on Dec 10, 2013
Latest reply on Dec 11, 2013 by frederikheremans1
Hello everyone!
I use activiti for my workflow on alfresco 4.2.c. I want to assign to a group from my form selection. But when I press submit task the exception throw: org.activiti.engine.ActivitiException: Unknown property used in expression My activiti is:
<userTask id="kiemtranoidungthethuc" name="Kiểm tra nội dung, thể thức VB- Chuyển cho phòng TCHC" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="wfdi:kiemtranoidungthethucTask_tc">
    <extensionElements>
         <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
              <activiti:field name="script">
                <activiti:string>
                            if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
                          if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;

                </activiti:string>
              </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
              <activiti:field name="script">
                 <activiti:string>     
                        execution.setVariable('wfdi_userVanthu', person);                       
                        execution.setVariable('wfdi_chapthuan_tc', task.getVariable('wfdi_chapthuan_tc'));     
                        <!– execution.setVariable('bpm_assignee', person);–>
                        execution.setVariable('bpm_dueDate', task.getVariable('dueDate'));
                        execution.setVariable('bpm_priority', task.priority);  
                        execution.setVariable('bpm_groupAssignee',task.bpm_groupAssignee);

                 </activiti:string>
              </activiti:field>
          </activiti:taskListener>         
    </extensionElements>
</userTask>
<userTask id="kiemtrathethucchuky" name="Phòng TCHC - Kiểm tra thể thức, chữ ký - Chuyển cho BGH"
activiti:candidateGroups="${bpm_groupAssignee.properties.authorityName}" activiti:formKey="wfdi:kiemtrathethucchukyTask_tc">
    <extensionElements>
    <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
      <activiti:field name="script">           
            <activiti:string>
                        if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
                        if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_priority;
            </activiti:string>
      </activiti:field>
    </activiti:taskListener>
    <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
      <activiti:field name="script">
        <activiti:string>      
                        execution.setVariable('wfdi_kiemtra_tc', task.getVariable('wfdi_kiemtra_tc'));     
                        execution.setVariable('bpm_dueDate', task.getVariable('dueDate'));
                        execution.setVariable('bpm_priority', task.priority);
        </activiti:string>
      </activiti:field>
    </activiti:taskListener>
  </extensionElements>
   </userTask>
I know the problem is: activiti:candidateGroups="${bpm_groupAssignee.properties.authorityName}" but I don't know how to fix. Can everybody help me? Thank in advance.

Outcomes