...
To send an event after the completion of the file transfer the rule that is associated with the transfer must have the PUBLISHEVENT task in the list of Post-Tasks. It is enough to have only this task.
Image Removed
Note |
---|
|
The configuration for Pre-Task, Post-Task, and Error-Task is now under the Rule tabĀ |
Image Added
Expand |
---|
title | Example of rule post-tasks configuration |
---|
|
Code Block |
---|
language | js |
---|
title | Post-Tasks |
---|
| [
{
"type": "PUBLISHEVENT",
"args": {
"path": "/data/rules.ini",
"rule": "#RULE#",
"date": "#DATE#",
"hour": "#HOUR#",
"filename": "#ORIGINALFILENAME#",
"filesize": "#FILESIZE#",
"fullPath": "#ORIGINALFULLPATH#",
"localHost": "#LOCALHOST#",
"remoteHost": "#REMOTEHOST#",
"requestedHost": "#REQUESTEDHOST#",
"requesterHost": "#REQUESTERHOST#",
"size": "#FILESIZE#",
"transferID": "#TRANSFERID#",
"trueFilename": "#TRUEFILENAME#",
"trueFullPath": "#TRUEFULLPATH#",
"errorCode": "#ERRORCODE#",
"errorMsg": "#ERRORMSG#"
}
}
] |
|
...
To send an event after an error occurred during a the file transfer, the rule that is associated with the transfer must have the PUBLISHEVENT task in the list of Error Tasks. It is enough to have only this task.
...
configuration for Pre-Task, Post-Task, and Error-Task is now under the Rule tabĀ |
Image Added
Expand |
---|
title | Example of rule error tasks configuration |
---|
|
Code Block |
---|
language | js |
---|
title | Error Tasks |
---|
| [
{
"type": "PUBLISHEVENT",
"args": {
"path": "/data/rules.ini",
"rule": "#RULE#",
"date": "#DATE#",
"hour": "#HOUR#",
"filename": "#ORIGINALFILENAME#",
"filesize": "#FILESIZE#",
"fullPath": "#ORIGINALFULLPATH#",
"localHost": "#LOCALHOST#",
"remoteHost": "#REMOTEHOST#",
"requestedHost": "#REQUESTEDHOST#",
"requesterHost": "#REQUESTERHOST#",
"size": "#FILESIZE#",
"transferID": "#TRANSFERID#",
"trueFilename": "#TRUEFILENAME#",
"trueFullPath": "#TRUEFULLPATH#"
}
}
] |
|
...