add patchtask method + refactor task mapping
add patchtask method + refactor task mapping
refactor + extract task validation
fix update + patch task
iterator.Next return key