<%

' -----------------------------------------------------------------------------
'
'	This is the hook function being called before a certain workflow opertaion
'	is about to be performed on some Posting. 
'
'	@pPosting [in] - the Posting object that is about to be put through the
'					workflow operation.
'
'	@strAction [in] - indicates the type of workflow operation about to be
'					performed. Its possible values are: 
'				{ IDS_ACTION_SUBMIT, IDS_ACTION_APPROVE, IDS_ACTION_DECLINE }
'
'	@return - A boolean value to indicate whether the workflow operation should
'				be performed. A False value will result in the operation being
'				cancelled.
'
' -----------------------------------------------------------------------------
Function OnInternalBeforeWorkflowOp( pPosting, strAction )
	If strAction = IDS_ACTION_SUBMIT Then
		' TODO: Custom Script
		
	ElseIf strAction = IDS_ACTION_APPROVE Then
		' TODO: Custom Script
	
	ElseIf strAction = IDS_ACTION_DECLINE Then
		' TODO: Custom Script
		
	End If
	
	' Return value determines whether operation should be canceled:
	'	TRUE: go ahead with the operation
	'	FALSE: cancel the operation
	OnInternalBeforeWorkflowOp = True
End Function

' -----------------------------------------------------------------------------
'
'	This is the hook function being called after a certain workflow opertaion
'	has just been performed on some Posting. 
'
'	@pPosting [in] - the Posting object that has just been put through the
'					workflow operation.
'
'	@strAction [in] - indicates the type of workflow operation that has just 
'					been performed. Its possible values are: 
'				{ IDS_ACTION_SUBMIT, IDS_ACTION_APPROVE, IDS_ACTION_DECLINE }
'
' -----------------------------------------------------------------------------
Sub OnInternalAfterWorkflowOp( pPosting, strAction )
	' This function is called after a workflow operation is performed on
	' the passed in Posting. The implementation of this Sub is totally
	' up to the site designer. The following is just a suggested implementation
	' to start with.

	If strAction = IDS_ACTION_SUBMIT Then
		' TODO: Custom Script
		
	ElseIf strAction = IDS_ACTION_APPROVE Then
		' TODO: Custom Script

	ElseIf strAction = IDS_ACTION_DECLINE Then
		' TODO: Custom Script
		
	End If
End Sub

%>