Your Development & Design Resource
SSJS Integration of Zephyr to support Mail events in XPage apps
12/15/2010 10:25 AM by Chris Toohey
So simple it hurts, this SSJS block will create a new JobDocument in Zephyr containing all of the NotesItems of thisdoc for processing.
var zdb = session.getDatabase(session.getCurrentDatabase().getServer(), "zephyr.nsf");
var zdoc = zdb.createDocument();
I find myself using this again and again where I want to support the traditional LotusScript-based workflow and notification email events in a NotesDatabase that I'm creating an XPages-based UI/UX for... while giving the project champion the ability to modify those same emails via configuration of Zephyr as easily as they would Lotus Notes Stationary.
One of those simple things that can be a huge win!
I just have to get around to creating an XPages-based version of Zephyr... then we'll be all set!