Java Code Examples for org.activiti.engine.task.DelegationState#PENDING
The following examples show how to use
org.activiti.engine.task.DelegationState#PENDING .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TaskBaseResource.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
protected DelegationState getDelegationState(String delegationState) { DelegationState state = null; 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 state; }
Example 2
Source File: Task.java From alfresco-remote-api with GNU Lesser General Public License v3.0 | 5 votes |
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(); } }