2022.2

Table Of Contents
4. OntheFilemenu,clickSend EmailorSend Test Email.Inthedialogthatappears,checkthe
optiontoattachtheWebcontexttotheemail.See"Send(Test)Email"onpage935foradescrip-
tionofalloptions.
Note: Whenyousendatestemail,theEmailToScriptwillnotbeused;instead,theemail
willbesenttotheaddressthatyouspecifyintheSendTestEmaildialog.
5. Fillinthedialogandsendtheemails.
Generating Web output from Workflow
GeneratingWeboutputfromWorkflowrequiresyoutosendatemplatewithaWebcontexttoWorkflow;
see"SendingfilestoWorkflow"onpage418.
Next,youwillhavetocreateaprocessinWorkflowthatservesoneormorewebpages;see"Webpro-
cesseswithOLConnecttasks"onpage174.
Note: AthoughWorkflowcanservebothstaticanddynamicresourcestoawebbrowser,itisnot
meanttobeusedasafullyfeaturedwebserverasitisnotbuiltforresponsivenessnorguar-
anteeduptime.Itisrecommendedtouseacommonwebserver(forexample,IISorApache)to
serveyourcontentsandtoletWorkflowprocessthingsonlyitcando.
FormoreinformationonhowtoserveHTMLandPDFgeneratedbyConnectthroughIIS,watch
theConnectwithEvie-IISseries.
Note: Withatrialorresellerlicense,ConnectWeboutputislimitedtothelocalhost.Thismeans
thattheConnectServerandWorkflowmustbeonthesameworkstationinordertocreateWeb
output.
Aborting content creation
Youmaywantthecontentcreationprocesstobeabortedincertainsituations;forexample,whenatem-
platescriptfailstoloadremotecontent.Toabortthecontentcreationprocess,youmayraiseafatal
errorfromwithinascriptinthetemplate;see"fatalError(message)"onpage1173.
WhenascriptcallsthisfunctioninPreviewmode,thescriptthattriggersitismarkedwithanerroricon
intheScriptspane,andthegivenmessageisdisplayedinahint.
WhengeneratingoutputfromtheDesigner,theDesignerwilllogtheerroranddisplayanerrordialog
withthegivenmessage.Contentcreationisaborted.
WhengeneratingoutputfromWorkflow,theentirejobfails.Workflowwilllogtheerrorandexecuteany
follow-upactionsthataredefinedintheOnErrortaboftherespectiveOLConnectContentCreation
task(AllinOne,CreateEmailContent,CreatePrintContent,CreatePreviewPDF,CreateWebCon-
tentandRenderEmailContent).Formoreinformationabouthowtosetupfollow-upactions,seeUsing
theOnErrortabintheWorkflowHelp.
Page 1350