Pending tasks FAQ
System assigned records (ie, website leads) are saved as 0 in stateownerid column in pending task table and if user who saves the record, pending task is created on his name.
Later using stateownerlist we can select user to whom pending task will transfer