cancel
Showing results for 
Search instead for 
Did you mean: 

ExceptionActiviti: unknown property used in expresion

cherry0103
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Does your task-model have a property named bpm:groupAssignee defined? Is it filled in (group is selected) when submit is pressed?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.