What I often do for tasks is I have a custom recor...
# suitescript
j
What I often do for tasks is I have a custom record with fields for each data parameter of the task. A user event on afterSubmit : create starts the task and passes the id of the custom record as a script parameter to the task. The task can read the data from the record to do its work and then write data back to the record to describe what it did (e.g. how many records it created / edited, what errors happened)