Aras Innovator Platform

Replication Filter Method

Here is a sample of VB server method code to determine if a file should be replicated. Based on the ID of the file, other properties and relationships can be determined and used to make the decision.

' FileId refers to the file to be replicated

Dim FileId As String = Me.getID()

Dim FileSize as Integer = Me.getProperty("file_size")

Dim inn As Innovator = Me.getInnovator()

Dim innresult As Item

' put your code here to determine if the file should be replicated or if 

' replication transaction should be discarded

If (FileSize > 1000) Then ' put your test condition here

' return a 1 if the file should be replicated

    innresult = inn.newResult("1")

Else

' return an error message for the log if file should not be replicated

    innresult = inn.newResult("Error Message for Replication Log")

End If

Return innresult