2022.2

Table Of Contents
Tip: AneasywaytostartanOLConnectwebprojectincludingthewebprocessandthefilesthat
itneeds,istouseaSample Project.TherearetwoSampleProjectsthatgenerateasampleweb
project.See"SampleProjects"onpage918.
Note: Withatrialorresellerlicense,ConnectWeboutputislimitedtothelocalhost.Thismeans
thattheConnectServerandWorkflowmustbeonthesameworkstationinordertocreateWeb
output.
Thestructureofawebprocess
Inawebprocesstwopluginsareessential:
l
AnInputtask.
l
TheCreate Web Contentplugin.
IftheInputtaskisaServerInputtask,thattaskwillreturntheoutputoftheprocess-thewebpage-to
thecaller.
TheHTTP ActionoftheServerInputtaskdetermineshowtheprocessistriggered.If,forexample,the
HTTPActionis/hello,theprocesswillbeinvokedwhentheWorkflowserverreceivesarequestfora
resourcecalledhello.(Youcould,forexample,triggertheprocessbytypingthefollowingURLinthe
addressbarofyourbrowser:http://localhost:9090/hello,ifthebrowserrunsonthesamemachineas
theWorkflowserverandtheInputtaskisaNodeJSServerInputtask.TheprotocolcouldbeHTTPS,
dependingonthesettingsoftheInputtask.)
TotriggertheprocessfromaWebForm,settheActionoftheFormtotheHTTP ActionoftheInput
task.(See"Forms"onpage640.)
TheCreate Web ContenttaskcreatesanHTMLoutputfilefromtheWebcontextinatemplate.
SelecttheWebtemplateinthetask'sproperties.
IftheWebtemplatedoesn'tneedanydata,youcansettheDataSourceofthistasktoJSONandenter
anemptyJSONstring:{},orsetittoRecordIDandenter0(zero).
However,ifthetemplateshouldbemergedwithdata,thetaskneedseitheravalidRecordIDora
JSONobject.Inthatcase,oneormorestepsmustbeaddedtotheprocesstoprovidetherequired
data.Forexample:
l
AnExecute Data Mappingtaskthatretrievesdatafromthejobfile(suchastherequestXML).
ThistaskoutputsoneormorerecordstotheMetadata.Bydefault,theCreateWebContenttask
usesthefirstRecordIDfromtheMetadata.
l
ARetrieve ItemstaskthatretrievesanexistingrecordfromtheOLConnectdatabaseandout-
putsitintheMetadataorasJSONobject.
Whichtaskortasksfitbest,dependsonwherethedatamustcomefrom.
Page 175