activity7: No enum constant org.activiti.engine.task.DelegationState

在使用activity7工作流查询任务的时候报错,但是我换个用户却又不报错

下面这个是报错信息

### The error may exist in org/activiti/db/mapping/entity/Task.xml
### The error may involve org.activiti.engine.impl.persistence.entity.TaskEntityImpl.selectTaskByQueryCriteria
### The error occurred while handling results
### SQL: select distinct RES.*              from ACT_RU_TASK RES                    left        join ACT_RU_IDENTITYLINK I on I.TASK_ID_ = RES.ID_                                    inner join ACT_RE_PROCDEF D on RES.PROC_DEF_ID_ = D.ID_                        WHERE  D.KEY_ = ?                                                                                                                                                                                                                                                                       and (RES.ASSIGNEE_ = ?             or (RES.ASSIGNEE_ is null             and I.TYPE_ = 'candidate' and (I.USER_ID_ = ?                          )))               order by RES.CREATE_TIME_ desc     LIMIT ? OFFSET ?
### Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'delegationStateString' of 'class org.activiti.engine.impl.persistence.entity.TaskEntityImpl' with value '' Cause: java.lang.IllegalArgumentException: No enum constant org.activiti.engine.task.DelegationState.
毫无头绪,求码神帮忙

检查一下ACT_RU_TASK的数据,DELEGATION_ 字段,他的值应该是null/PENDING/RESOLVED
如果是其它的值,就会出现你的报错了。

枚举类源码如下:

/* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.flowable.task.api;

/**
 * Defines the different states of delegation that a task can be in.
 * 
 * @author Tom Baeyens
 */
public enum DelegationState {

    /**
     * The owner delegated the task and wants to review the result after the assignee has resolved the task. When the assignee completes the task, the task is marked as {@link #RESOLVED} and sent back
     * to the owner. When that happens, the owner is set as the assignee so that the owner gets this task back in the ToDo.
     */
    PENDING,

    /**
     * The assignee has resolved the task, the assignee was set to the owner again and the owner now finds this task back in the ToDo list for review. The owner now is able to complete the task.
     */
    RESOLVED
}