cancel
Showing results for 
Search instead for 
Did you mean: 

task_id saving as null.

vamsinipun
Star Contributor
Star Contributor

Hi,

I am using activiti in my spring web application. In act_hi_varinst table task_id_ saving as null. So, when i retrieve the data by task id it gives empty. why task_id saving as null in act_hi_varinst?

Please help me out this issue.

Thanks

2 REPLIES 2

vamsinipun
Star Contributor
Star Contributor

Please anyone reply on this.

daisuke-yoshimo
Star Collaborator
Star Collaborator

Because you set variable in global scope.

Variables have scope. Global, execution, task.

If you want to store variable in task local scope, you should specify task local scope.

Activiti User Guide 

Specifically, please use the following API.

TaskService (Activiti - Engine 6.0.0 API) 

TaskService (Activiti - Engine 6.0.0 API) 

TaskService (Activiti - Engine 6.0.0 API)