AnsweredAssumed Answered

TaskListener FormProperties

Question asked by ovonel on Feb 17, 2012
Latest reply on Feb 29, 2012 by sherlockq

how can I get access to form properties (TaskFormData) in the TaskListener.
I set the event to "create" and tried to load the data from the FormService.

Here you can see my code snippet:

public void notify(DelegateTask delegateTask) {

  TaskEntity task =(TaskEntity)delegateTask;

  FormService formService = processEngine.getFormService();
  List<FormProperty> formProperties = formService.getTaskFormData( task.getId() ).getFormProperties();

I get the following exception:

Caused by: org.activiti.engine.ActivitiException: No task found for taskId '4741'

I am open for suggestions?

Thank you in advance.