本文整理了Java中org.activiti.engine.task.Task.getDescription()
方法的一些代码示例,展示了Task.getDescription()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.getDescription()
方法的具体详情如下:
包路径:org.activiti.engine.task.Task
类名称:Task
方法名:getDescription
[英]Free text description of the task.
[中]任务的自由文本描述。
代码示例来源:origin: Activiti/Activiti
private int updateDescription(UpdateTaskPayload updateTaskPayload,
org.activiti.engine.task.Task internalTask,
int updates) {
String newValue;
if ((newValue = updateTaskPayload.getDescription()) != null) {
String oldValue = internalTask.getDescription();
if (!Objects.equals(oldValue, newValue)) {
updates++;
internalTask.setDescription(newValue);
}
}
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 String getDescription() {
return activiti5Task.getDescription();
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void initDescriptionLabel() {
String descriptionText = null;
if (task.getDescription() != null && !"".equals(task.getDescription())) {
descriptionText = task.getDescription();
} else {
descriptionText = i18nManager.getMessage(Messages.TASK_NO_DESCRIPTION);
}
descriptionLabel = new Label(descriptionText);
descriptionLabel.addStyleName(ExplorerLayout.STYLE_CLICKABLE);
addComponent(descriptionLabel);
}
代码示例来源:origin: org.activiti/activiti-explorer
if (task.getDescription() != null && !"".equals(task.getDescription())) {
descriptionText = task.getDescription();
} else {
descriptionText = i18nManager.getMessage(Messages.TASK_NO_DESCRIPTION);
代码示例来源:origin: org.alfresco/alfresco-repository
properties.put(WorkflowModel.PROP_DESCRIPTION, task.getDescription());
代码示例来源:origin: Alfresco/alfresco-repository
properties.put(WorkflowModel.PROP_DESCRIPTION, task.getDescription());
代码示例来源:origin: org.alfresco/alfresco-repository
return (task.getDescription() != null && !task.getDescription().isEmpty()) ? task.getDescription() : getDescription();
代码示例来源:origin: Alfresco/alfresco-repository
return (task.getDescription() != null && !task.getDescription().isEmpty()) ? task.getDescription() : getDescription();
代码示例来源:origin: org.activiti/activiti-explorer
descriptionTextArea.setValue(task.getDescription());
editLayout.addComponent(descriptionTextArea);
代码示例来源:origin: org.alfresco/alfresco-repository
@SuppressWarnings("deprecation")
public LazyActivitiWorkflowTask(Task task, ActivitiTypeConverter typeConverter, TenantService tenantService, String workflowDefinitionName)
{
super(BPMEngineRegistry.createGlobalId(ActivitiConstants.ENGINE_ID, task.getId()), null, null, null, null, null, null, null);
this.task = task;
this.activitiTypeConverter = typeConverter;
this.lazyPropertiesMap = new LazyPropertiesMap();
// Fetch task-definition and a partially-initialized WorkflowTask (not including properties and path)
WorkflowTaskDefinition taskDefinition = activitiTypeConverter.getTaskDefinition(task);
WorkflowTask partiallyInitialized = typeConverter.getWorkflowObjectFactory().createTask(task.getId(), taskDefinition, taskDefinition.getId(), task.getName(),
task.getDescription(), WorkflowTaskState.IN_PROGRESS, null, workflowDefinitionName , lazyPropertiesMap);
this.definition = taskDefinition;
this.name = taskDefinition.getId();
this.title = partiallyInitialized.getTitle();
this.description = partiallyInitialized.getDescription();
this.state = partiallyInitialized.getState();
}
代码示例来源:origin: org.activiti/activiti-explorer
descriptionTextArea.setNullRepresentation("");
descriptionTextArea.setWidth(100, UNITS_PERCENTAGE);
descriptionTextArea.setValue(task.getDescription());
editLayout.addComponent(descriptionTextArea);
代码示例来源:origin: Alfresco/alfresco-repository
@SuppressWarnings("deprecation")
public LazyActivitiWorkflowTask(Task task, ActivitiTypeConverter typeConverter, TenantService tenantService, String workflowDefinitionName)
{
super(BPMEngineRegistry.createGlobalId(ActivitiConstants.ENGINE_ID, task.getId()), null, null, null, null, null, null, null);
this.task = task;
this.activitiTypeConverter = typeConverter;
this.lazyPropertiesMap = new LazyPropertiesMap();
// Fetch task-definition and a partially-initialized WorkflowTask (not including properties and path)
WorkflowTaskDefinition taskDefinition = activitiTypeConverter.getTaskDefinition(task);
WorkflowTask partiallyInitialized = typeConverter.getWorkflowObjectFactory().createTask(task.getId(), taskDefinition, taskDefinition.getId(), task.getName(),
task.getDescription(), WorkflowTaskState.IN_PROGRESS, null, workflowDefinitionName , lazyPropertiesMap);
this.definition = taskDefinition;
this.name = taskDefinition.getId();
this.title = partiallyInitialized.getTitle();
this.description = partiallyInitialized.getDescription();
this.state = partiallyInitialized.getState();
}
代码示例来源: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: Alfresco/alfresco-repository
assertEquals("description123", task.getDescription());
代码示例来源: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.alfresco/alfresco-repository
String id = task.getId();
String defaultTitle = task.getName();
String defaultDescription = task.getDescription();
代码示例来源:origin: Alfresco/alfresco-repository
String id = task.getId();
String defaultTitle = task.getName();
String defaultDescription = task.getDescription();
代码示例来源: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());
}
内容来源于网络,如有侵权,请联系作者删除!