CallbackScript
Properties
beforeMoveFile()
beforeMoveFile: (
importFile,sourceFile,targetFile,rule) =>false
Parameters
importFile
sourceFile
string
targetFile
string
rule
Returns
false
onFileMoved()
onFileMoved: (
targetFilePath) =>void
Parameters
targetFilePath
string
Returns
void
startTransformFile()
startTransformFile: (
importFile,rule) =>boolean
Parameters
importFile
rule
Returns
boolean
generateDocKeySid3()
generateDocKeySid3: (
targetFileType,fieldMapping) =>string
Parameters
targetFileType
string
fieldMapping
Returns
string
beforeDuplicateCheck()
beforeDuplicateCheck: (
importFile) =>boolean
Parameters
importFile
Returns
boolean
onDuplicateChecked()
onDuplicateChecked: (
importFile,duplicateFileIds?) =>boolean
Parameters
importFile
duplicateFileIds?
string[]
Returns
boolean
beforeFileCreate()
beforeFileCreate: (
importFile,targetFileType) =>any
Parameters
importFile
targetFileType
string
Returns
any
onFileCreated()
onFileCreated: (
newFile) =>void
Parameters
newFile
DocFile
Returns
void
mapping()
mapping: (
options) =>FieldMapping[]
Parameters
options
Returns
mappingArchiveImport()
mappingArchiveImport: (
options) =>FieldMapping[]
Parameters
options
MappingCallbackOptionsArchiveImport
Returns
mappingSid3()
mappingSid3: (
options) =>object
Parameters
options
Returns
object
fileType
fileType:
string
fieldMapping
fieldMapping:
FieldMapping[]
beforeMapping()
beforeMapping: (
newFile,fieldMappings) =>boolean
Parameters
newFile
DocFile
fieldMappings
Returns
boolean
onFieldsMapped()
onFieldsMapped: (
newFile) =>void
Parameters
newFile
DocFile
Returns
void
overwriteAttachmentsPathSid3()
overwriteAttachmentsPathSid3: (
attachments) =>object[]
Parameters
attachments
object[]
Returns
object[]
beforeAttachDocument()
beforeAttachDocument: (
newFile,importFile,rule) =>boolean
Parameters
newFile
DocFile
importFile
rule
Returns
boolean
mappingTargetRegisterArchiveImport()
mappingTargetRegisterArchiveImport: (
documentFiles) =>TargetRegisterMapping[]
Parameters
documentFiles
string[]
Returns
mappingTargetRegisterSid3()
mappingTargetRegisterSid3: (
documentFiles,newFile) =>TargetRegisterMapping[]
Parameters
documentFiles
string[]
newFile
DocFile
Returns
onDocumentAttached()
onDocumentAttached: (
newFile) =>void
Parameters
newFile
DocFile
Returns
void
determineWorkflowNameSid3()
determineWorkflowNameSid3: (
fileType) =>string
Parameters
fileType
string
Returns
string
beforeStartWorkflow()
beforeStartWorkflow: (
newFile,workflowName) =>boolean
Parameters
newFile
DocFile
workflowName
string
Returns
boolean
onWorkflowStarted()
onWorkflowStarted: (
newFile) =>void
Parameters
newFile
DocFile
Returns
void
beforeDeleteImportFile()
beforeDeleteImportFile: (
importFile) =>boolean
Parameters
importFile
Returns
boolean
onImportFileDeleted()
onImportFileDeleted: () =>
void
Returns
void
determineAttachmentsDestinationSubDirectorySid3()
determineAttachmentsDestinationSubDirectorySid3: (
attachments) =>object[]
Parameters
attachments
object[]
Returns
object[]
onTransformFileFinished()
onTransformFileFinished: () =>
void
Returns
void