Launch phase II of the publishing process
When all files are exported to the file system the publish process is launched.
The publish process is a second background task which is configured in the background task configuration. Out-of-the-box, the publish process is PUBLISHINGSERVICEPROCESS
<handler eventType="EXPORTFORPUBLICATION">
<scheduler executeSynchronously="false" />
<authorization type="authenticationContext" />
<execution timeout="1.00:00:00" recoveryGracePeriod="00:30:00" isolationLevel="Process" useSingleThreadApartment="true" />
<activator>
<comIEventHandler projectName="PublishServiceIso" className="CExport4Pub">
<configuration>
<parameters>
<parameter name="raiseevent" type="value">PUBLISHINGSERVICEPROCESS</parameter>
</parameters>
<checkhyperlinks>
...
</checkhyperlinks>
</configuration>
</comIEventHandler>
</activator>
<errorHandler maximumRetries="10">
<actions>
<add errorNumber="-1" action="Retry" delay="00:01:00" />
</actions>
</errorHandler>
</handler>
Event data XML is passed as a parameter to the command. By default, publishing through DITA-OT is configured.
Example:
<handler eventType="PUBLISHINGSERVICEPROCESS">
<scheduler executeSynchronously="true" />
<authorization type="authenticationContext" />
<execution timeout="1.00:00:00" recoveryGracePeriod="00:30:00" isolationLevel="None" useSingleThreadApartment="true" />
<activator>
<comIEventHandler projectName="IshPluginsIso" className="cIshShell">
<configuration>
<parameters>
<parameter name="location" type="value">%ISHPROJECTDATAPATH%\PublishingService\Data\WatchFolder</parameter>
<parameter name="command" type="value">cscript.exe //job:PublishByEvent "%ISHPROJECTDATAPATH%\PublishingService\Tools\Publish.wsf"</parameter>
<parameter name="passauthenticationcontext" type="value">yes</parameter>
</parameters>
</configuration>
</comIEventHandler>
</activator>
<errorHandler maximumRetries="0" />
</handler>