本文整理了Java中org.activiti.engine.task.Task.getDueDate()
方法的一些代码示例,展示了Task.getDueDate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.getDueDate()
方法的具体详情如下:
包路径:org.activiti.engine.task.Task
类名称:Task
方法名:getDueDate
[英]Due date of the task.
[中]任务的截止日期。
代码示例来源:origin: Activiti/Activiti
private int updateDueDate(UpdateTaskPayload updateTaskPayload,
org.activiti.engine.task.Task internalTask,
int updates) {
if (updateTaskPayload.getDueDate() != null && !Objects.equals(internalTask.getDueDate(),
updateTaskPayload.getDueDate())) {
updates++;
internalTask.setDueDate(updateTaskPayload.getDueDate());
}
return updates;
}
代码示例来源:origin: Activiti/Activiti
public Task from(org.activiti.engine.task.Task internalTask,
Task.TaskStatus status) {
TaskImpl task = new TaskImpl(internalTask.getId(),
internalTask.getName(),
status);
task.setProcessDefinitionId(internalTask.getProcessDefinitionId());
task.setProcessInstanceId(internalTask.getProcessInstanceId());
task.setAssignee(internalTask.getAssignee());
task.setClaimedDate(internalTask.getClaimTime());
task.setCreatedDate(internalTask.getCreateTime());
task.setDueDate(internalTask.getDueDate());
task.setDescription(internalTask.getDescription());
task.setOwner(internalTask.getOwner());
task.setParentTaskId(internalTask.getParentTaskId());
task.setPriority(internalTask.getPriority());
task.setFormKey(internalTask.getFormKey());
return task;
}
代码示例来源:origin: org.flowable/flowable5-compatibility
@Override
public Date getDueDate() {
return activiti5Task.getDueDate();
}
代码示例来源:origin: stackoverflow.com
public List<Task> getTaskDue(){
List<Task> temp = new ArrayList<Task>();
for(int u = 0; u < unitCollection.size(); u++){
Unit unit = unitCollection.get(u);
for (int a = 0; a < unit.getAssessmentCollection().size(); a++){
AssessmentItem assessment = unit.getAssessmentCollection().get(a);
for (int t = 0; t < assessment.getTasks().size(); t++){
Task task = assessment.getTasks().get(t);
if (task.getDueDate().compareTo(assessment.getDueDate()) <= 0){
temp.add(task);
}
}
}
}
return temp;
}
代码示例来源:origin: Alfresco/alfresco-repository
private Date getDueDate()
{
if(task != null)
{
return task.getDueDate();
}
else
{
return historicTask.getDueDate();
}
}
代码示例来源:origin: org.alfresco/alfresco-repository
private Date getDueDate()
{
if(task != null)
{
return task.getDueDate();
}
else
{
return historicTask.getDueDate();
}
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void initDueDateField() {
dueDateField = new DateField();
if (task.getDueDate() != null) {
dueDateField.setValue(task.getDueDate());
} else {
dueDateField.setValue(new Date());
}
dueDateField.setWidth(125, UNITS_PIXELS);
dueDateField.setResolution(DateField.RESOLUTION_DAY);
dueDateField.setImmediate(true);
}
代码示例来源:origin: org.activiti/activiti-explorer
public void valueChange(ValueChangeEvent event) {
if (dueDateField.getValue() != null) {
// save new duedate
task.setDueDate((Date) dueDateField.getValue());
taskService.saveTask(task);
// replace with new label
dueDateLabel.setValue(task.getDueDate());
replaceComponent(dueDateField, dueDateLabel);
}
}
});
代码示例来源:origin: org.alfresco/alfresco-repository
properties.put(WorkflowModel.PROP_DUE_DATE, task.getDueDate());
代码示例来源:origin: Evolveum/midpoint
TaskExtract(Task task, Map<String, Object> processVariables, List<IdentityLink> taskIdentityLinks) {
id = task.getId();
assignee = task.getAssignee();
name = task.getName();
processInstanceId = task.getProcessInstanceId();
createTime = task.getCreateTime();
dueDate = task.getDueDate();
owner = task.getOwner();
executionId = task.getExecutionId();
variables = new HashMap<>();
if (task.getProcessVariables() != null) {
variables.putAll(task.getProcessVariables());
}
if (task.getTaskLocalVariables() != null) {
variables.putAll(task.getTaskLocalVariables());
}
candidateUsers = new ArrayList<>();
candidateGroups = new ArrayList<>();
for (IdentityLink link : taskIdentityLinks) {
if (IdentityLinkType.CANDIDATE.equals(link.getType())) {
if (link.getUserId() != null) {
candidateUsers.add(link.getUserId());
} else if (link.getGroupId() != null) {
candidateGroups.add(link.getGroupId());
}
}
}
addProcessVariables(processVariables);
this.taskIdentityLinks = taskIdentityLinks;
}
代码示例来源:origin: Alfresco/alfresco-repository
properties.put(WorkflowModel.PROP_DUE_DATE, task.getDueDate());
代码示例来源:origin: org.activiti/activiti-explorer
protected void initDueDateLabel() {
dueDateLabel = new PrettyTimeLabel(i18nManager.getMessage(Messages.TASK_DUEDATE_SHORT),
task.getDueDate(), i18nManager.getMessage(Messages.TASK_DUEDATE_UNKNOWN), false);
dueDateLabel.addStyleName(ExplorerLayout.STYLE_TASK_HEADER_DUEDATE);
dueDateLabel.setSizeUndefined();
dueDateLabel.addStyleName(ExplorerLayout.STYLE_CLICKABLE);
addComponent(dueDateLabel);
}
代码示例来源:origin: org.activiti.cloud/activiti-cloud-services-core-model
@Override
public org.activiti.cloud.services.core.model.Task from(Task source) {
org.activiti.cloud.services.core.model.Task task = null;
if (source != null) {
task = new org.activiti.cloud.services.core.model.Task(source.getId(),
source.getOwner(),
source.getAssignee(),
source.getName(),
source.getDescription(),
source.getCreateTime(),
source.getClaimTime(),
source.getDueDate(),
source.getPriority(),
source.getProcessDefinitionId(),
source.getProcessInstanceId(),
source.getParentTaskId(),
calculateStatus(source));
}
return task;
}
代码示例来源:origin: org.activiti/activiti-services-core-model
@Override
public org.activiti.services.core.model.Task from(Task source) {
org.activiti.services.core.model.Task task = null;
if (source != null) {
task = new org.activiti.services.core.model.Task(source.getId(),
source.getOwner(),
source.getAssignee(),
source.getName(),
source.getDescription(),
source.getCreateTime(),
source.getClaimTime(),
source.getDueDate(),
source.getPriority(),
source.getProcessDefinitionId(),
source.getProcessInstanceId(),
source.getParentTaskId(),
calculateStatus(source));
}
return task;
}
代码示例来源:origin: org.activiti/activiti-rest
public TaskResponse(Task task) {
setId(task.getId());
setOwner(task.getOwner());
setAssignee(task.getAssignee());
setDelegationState(getDelegationStateString(task.getDelegationState()));
setName(task.getName());
setDescription(task.getDescription());
setCreateTime(task.getCreateTime());
setDueDate(task.getDueDate());
setPriority(task.getPriority());
setSuspended(task.isSuspended());
setTaskDefinitionKey(task.getTaskDefinitionKey());
setParentTaskId(task.getParentTaskId());
setExecutionId(task.getExecutionId());
setCategory(task.getCategory());
setProcessInstanceId(task.getProcessInstanceId());
setProcessDefinitionId(task.getProcessDefinitionId());
setTenantId(task.getTenantId());
setFormKey(task.getFormKey());
}
代码示例来源:origin: Evolveum/midpoint
Task task = taskService.createTaskQuery().taskId(workItemId).singleResult();
setNewAssignees(task, newAssignees, taskService);
Date deadline = task.getDueDate();
if (newDuration != null) {
deadline = setNewDuration(task.getId(), newDuration, taskService);
内容来源于网络,如有侵权,请联系作者删除!