use of org.camunda.bpm.engine.impl.form.TaskFormDataImpl in project camunda-bpm-platform by camunda.
the class MyTaskFormHandler method createTaskForm.
public TaskFormData createTaskForm(TaskEntity task) {
ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
IdentityService identityService = processEngineConfiguration.getIdentityService();
RuntimeService runtimeService = processEngineConfiguration.getRuntimeService();
logAuthentication(identityService);
logInstancesCount(runtimeService);
TaskFormDataImpl result = new TaskFormDataImpl();
result.setTask(task);
return result;
}
use of org.camunda.bpm.engine.impl.form.TaskFormDataImpl in project camunda-bpm-platform by camunda.
the class DefaultTaskFormHandler method createTaskForm.
public TaskFormData createTaskForm(TaskEntity task) {
TaskFormDataImpl taskFormData = new TaskFormDataImpl();
Expression formKey = task.getTaskDefinition().getFormKey();
if (formKey != null) {
Object formValue = formKey.getValue(task);
if (formValue != null) {
taskFormData.setFormKey(formValue.toString());
}
}
taskFormData.setDeploymentId(deploymentId);
taskFormData.setTask(task);
initializeFormProperties(taskFormData, task.getExecution());
initializeFormFields(taskFormData, task.getExecution());
return taskFormData;
}
Aggregations