data to workspace function

implemented the callback for “data2workspace”.