simple approach would be to rely on task name that is available without getting access to content data e.g. taskSummary.getName()
Thanks for reply , your answer is is correct but in my scenario it is little different ‘Review Human Task’, ‘Approve Human Task’ these are my task type not a task name
- 'Task 1' is of Review Human Task type.
- 'Task 2' is of Approve Human Task type.
- 'Task 1' and 'Task 2' are my task name.
- How to get task types of 'Task 1' and 'Task 2' which are specified above in points 1 and 2.
Have you found any solution for this?
I have similar requirement which is to add an indicator to the human task in order to define the task type.
The solution by Maciej there is to use a task input variable.
Have not tried it though... maybe you can use this approach too for your human task type?
what you mean by task type? Do you have different work item definitions for them?
Thanks Maciej Swiderski for reply,I have not created any work item for them I use " Human Task" work item.Even if I create them, task server gives TaskSummary which doesnot contain information about the human task and its work items.
it should give you work item id which could be used to look up the definition. However that's just an idea that could not be applicable for your scenario.
Any way, could you provide an example of process you use for this so we could take a closer look at it and maybe suggest some other approach.