You are here: Appendix I: VBScript reference > About the event procedures > About the destination events > PublisherDestinationEvent_AfterPublish event

PublisherDestinationEvent_AfterPublish event

Occurs in the destination vault after publishing has ended.

Syntax

PublisherDestinationEvent_AfterPublish (sourceType, sourceAddress, _
    sourceDocId, publishOptions)
Parameters
Parameter Description

sourceType

The name of the source system link, for example, BC Meridian or Windows file system.

sourceAddress

The address of the source system, for example, DataStoreName@MachineName for the  BlueCielo Meridian Enterprise link.

sourceDocId

The ID of document in the source system.

publishOptions

The publishing options that were applied to the job. If the options were specified in the source system client application, they are passed in this parameter. For information about the publishing options supported by a specific system link, see the system link description in About the publishing modules.

If rendering fails with any rendering module and the Use the next rendering profile if rendering fails option is enabled as described in Configuring rendering options, this parameter contains the text _RETRYRENDER_<ModuleName>_ . Your implementation of this event can then perform other actions in response to the failure, such as notify a system administrator, set a property value for easy document location, and so on.

Example

Public Sub PublisherDestinationEvent_AfterPublish(sourceType, sourceAddress, _
    sourceDocId, publishOptions)
    Document.Log _
	"Published: " & _ 
	"From " & sourceType & " '" & sourceAddress & "'" & _ 
	" document with ID '" & sourceDocId & "'" & _
	" with options '" & publishOptions & "'"
End Sub

Related concepts

VBScript reference

About the source events

About the destination events

Related information

PublisherSourceEvent_BeforePublish event

PublisherSourceEvent_AfterPublish event


www.bluecieloecm.com