当前位置: 首页>>代码示例>>Java>>正文


Java DelegationState.PENDING属性代码示例

本文整理汇总了Java中org.activiti.engine.task.DelegationState.PENDING属性的典型用法代码示例。如果您正苦于以下问题:Java DelegationState.PENDING属性的具体用法?Java DelegationState.PENDING怎么用?Java DelegationState.PENDING使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.activiti.engine.task.DelegationState的用法示例。


在下文中一共展示了DelegationState.PENDING属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Task

public Task(org.activiti.engine.task.Task taskInstance)
{
    this.id = taskInstance.getId();
    this.processId = taskInstance.getProcessInstanceId();
    this.processDefinitionId = taskInstance.getProcessDefinitionId();
    this.activityDefinitionId = taskInstance.getTaskDefinitionKey();
    this.name = taskInstance.getName();
    this.description = taskInstance.getDescription();
    this.dueAt = taskInstance.getDueDate();
    this.startedAt = taskInstance.getCreateTime();
    this.priority = taskInstance.getPriority();
    this.owner = taskInstance.getOwner();
    this.assignee = taskInstance.getAssignee();
    if (taskInstance.getDelegationState() == DelegationState.PENDING)
    {
        this.state = TaskStateTransition.DELEGATED.name().toLowerCase();
    }
    else if (taskInstance.getDelegationState() == DelegationState.RESOLVED)
    {
        this.state = TaskStateTransition.RESOLVED.name().toLowerCase();
    }
    else if (taskInstance.getAssignee() != null)
    {
    	this.state = TaskStateTransition.CLAIMED.name().toLowerCase();
    }
    else
    {
    	this.state = TaskStateTransition.UNCLAIMED.name().toLowerCase();
    }
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:30,代码来源:Task.java

示例2: getDelegationState

protected DelegationState getDelegationState(String delegationState) {
    if (delegationState != null) {
        if (DelegationState.RESOLVED.name().toLowerCase().equals(delegationState)) {
            return DelegationState.RESOLVED;
        } else if (DelegationState.PENDING.name().toLowerCase().equals(delegationState)) {
            return DelegationState.PENDING;
        } else {
            throw new ActivitiIllegalArgumentException("Illegal value for delegationState: " + delegationState);
        }
    }
    return null;
}
 
开发者ID:wso2,项目名称:carbon-business-process,代码行数:12,代码来源:BaseTaskService.java


注:本文中的org.activiti.engine.task.DelegationState.PENDING属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。