OnWorkflowEnd event

Build 1501 on 14/Nov/2017  This topic last edited on: 25/Aug/2014, at 12:56

When an interactive (asynchronous) WindowsWorkflow launched from scripting is correctly terminated an "OnWorkflowEnd" event is fired. For example, to refresh the page after crop, use this code:

Public Overridable Sub OnWorkflowEnd(WFName As String, Result As GNClient.WFResult) Implements IEditorialEvent.OnWorkflowEnd

  If WFName="Crop"

    Fred.ImgRefresh(True)

    Page.ViewRedraw()

  End If

End Sub

The workflow result is also provided.