Hi,I have been searching the forum, and have found some answers, but i still can't resolve my problem.The issue is next: i have to complete a task and submit its form data, and then, at some point, to get display that data as history. I am not using Activiti Explorer, i have just incorporated whole framework in my project, and i'm using its services. When i complete a task, all of its data is saved in ACT_HI_VARINST table, but in the column that should hold task id, i have nothing. I am completing a task with:
…
@Resource(name = "taskService")
private TaskService taskService;
…
public void complete(String taskId, Map<String, Object> variables){
taskService.complete(taskId, variables);
}
I have found the temporary solution though, with:
…
@Resource(name = "taskService")
private TaskService taskService;
…
public void complete(String taskId, Map<String, Object> variables){
taskService.setVariablesLocal(taskId, variables);
taskService.complete(taskId, variables);
}
but, this way i only get doubled rows in a database table, where one set of rows have the task id, and the other set of rows does not have a task id.In my activiti.xml file, history is set to "full" as following:
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
…
<property name="history" value="full" />
…
</bean>
I have also tried with:
…
@Resource(name = "formService")
private FormService formService;
…
public void complete(String taskId, Map<String, String> variables){
formService.submitTaskFormData(taskId, variables);
}
but, with this, i also get saved data but without task id saved in a database table.I am in need of help, and i'm gratefull of it.Thank you,