task_id saving as null.

cancel
Showing results for 
Search instead for 
Did you mean: 
vamsinipun
Established Member

task_id saving as null.

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
vamsinipun
Established Member

Re: task_id saving as null.

Please anyone reply on this.

daisuke-yoshimo
Senior Member

Re: task_id saving as null.

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)