Persist The Whole Request Collection

Hi there

Was just wondering if there was any way of persisting the whole
request collection using setNextEvent, rather than persisting
individual variables..

Eg, my task form is submitted to my task.save event, after this, I
would like to pass the whole request collection to another event...

The task.save event

  void function save(event) output=false{
    var rc = event.getCollection();

    rc.task= pageService.getTask(event.getValue("iTaskId",""));
    populateModel(rc.task);
    taskService.save(rc.task;

    setNextEvent(event='myHandler.myEvent',persist='Pass The Whole RC');

  }

Wonderin how to achieve this, thanks

Hi,

Its easy like this
setNextEvent(event='myHandler.myEvent',persist=StructKeyList(rc));

Thanks

Brilliant! Simple!
Thanks a lot