At line 1 changed one line |
This plugin allows you to post process files using a powerful set of tasks. You can move files, rename them, copy them, execute external programs, write text files, use date variables, multithread operations, copy to FTP/FTPS/SFTP servers, etc. |
__IMPORTANT: due to the security updates since CrushFTP version 10.5.2+ any JDBC driver jar file needs to be placed into the CrushFTP10/plugins/lib/ directory, or it won't load.__ |
\\ |
\\ |
This plugin allows you to post-process files using a powerful set of tasks. You can move files, rename them, copy them, execute external programs, write text files, use date variables, multithread operations, copy to FTP/FTPS/SFTP servers, etc. |
At line 16 changed one line |
[Example Task Flow -- Looping though files and delete copied files.|CrushTaskExample12]\\ |
[Example Task Flow -- Looping through files and delete copied files.|CrushTaskExample12]\\ |
At line 19 changed 6 lines |
|
|
The source filter is on every task. It will filter out items that don't match the source from being included in the current task item. So you may want to apply certain actions to specific file types on a per task basis. |
|
MultiThreaded allows for tasks to run in parallel. Be sure to add a Wait task to have things stop and wait for all the separate threads that a re running before allowing the entire job to complete. This is useful to transfer a file to multiple external locations at the same time instead of sequentially. |
|
[Example Task Flow -- Find and Copy items older than and newer than X days|CrushTaskExample15]\\ |
[Example Task Flow -- One-click upload and notify a contact about it|CrushTaskExample16]\\ |
[Example Task Flow -- Setting up a Controller job for multiple Data Centers and redundancy|CrushTaskExample17]\\ |
[Example Task Flow -- Renew Azure SAS token via Azure User impersonation| CrushTaskExample18]\\ |
[Example Task Flow -- Managing SharePoint Site Access for Applications Using Sites.Selected Permissions| CrushTaskExample19]\\ |
\\ |
The source filter is on every task. It will filter out items that don't match the source from being included in the current task item. So you may want to apply certain actions to specific file types on a per-task basis.\\ |
\\ |
MultiThreaded allows for tasks to run in parallel. Be sure to add a Wait task to have things stop and wait for all the separate threads that a re running before allowing the entire job to complete. This is useful to transfer a file to multiple external locations at the same time instead of sequentially.\\ |
\\ |
At line 29 changed one line |
The find task will scan a particular folder, or remote FTP, or SFTP server getting directory listings recursively up to the depth allowed. These found items can then be used by future task items. This task is often the starting item in a list of tasks. |
The find task will scan a particular folder or remote FTP, or SFTP server getting directory listings recursively up to the depth allowed. These found items can then be used by future task items. This task is often the starting item in a list of tasks. |
At line 38 added 2 lines |
You can use Regular Expressions in the Find Filter. Regular expressions need to be prefixed with "REGEX:" literal. Also, keep in mind we do a match against the full source URL. Finally, we only support Java-style regular expressions. |
|
At line 37 changed one line |
If the FindCache option is used, the items found will further be filters out so prior known items aren't found again. |
If the FindCache option is used, the items found will further be filtered out so prior known items aren't found again. |
At line 55 changed one line |
The wait amount is how long to wait to verify the file is no longer being written to by some outside process. The modified date, and file size are both compared. It will wait put o the max amount of time before giving up and aborting the job. |
The wait amount is how long to wait to verify the file is no longer being written to by some outside process. The modified date and file size are both compared. It will wait the maximum amount of time before giving up and aborting the job. |
At line 57 changed one line |
If you want to work with the copied files, you can have them added intuit he list of files that are being processed for future tasks. Be careful with this because if you do this, and then do a delete, both the original and copy would then be deleted. |
If you want to work with the copied files, you can have them added to the list of files that are being processed for future tasks. Be careful with this because if you do this, and then do a delete, both the original and copy would then be deleted. |
At line 101 changed one line |
the task will feed it's output to the next task item, if any, can be referenced by the {execute_log} server variable. Alternatively you can always reference {last_execute_log} which is the last one for that entire job, not specific to one particular one. This is useful when just calling execute and not passing in a list of items to that task. |
the task will feed it's output to the next task item, if any, can be referenced by the {execute_log} server variable. Alternatively, you can always reference {last_execute_log} which is the last one for that entire job, not specific to one particular one. This is useful when just calling execute and not passing in a list of items to that task. |
At line 114 changed one line |
This task will instantly pass in any found files to the [preview] worker inside of CrushFTP requesting for the files to have their thumbnails generates. This is only useful if you are showing previews of image type files on the [WebInterface]. |
This task will instantly pass in any found files to the [preview] worker inside of CrushFTP requesting for the files to have their thumbnails generates. This is only useful if you are showing previews of image-type files on the [WebInterface]. |
At line 130 changed one line |
This allows you to make a variable that you will then reference in other future steps. So you might make a "archive" variable, and then reference it in other steps as {archive} so that fi that changed, you would only need to change it in one location. |
This allows you to make a variable that you will then reference in other future steps. So you might make a "archive" variable and then reference it in other steps as {archive} so that if that changed, you would only need to change it in one location. |
At line 135 changed one line |
This will unzip a file that is in the list. Its suggested you filter down on *.zip to only get valid items in case of a mixed list of items. The external unzip method will call the OS's unzip utility to unzip. This will only work on OS X, or Linux / Unix based systems. Otherwise the internal method will work too. |
This will unzip a file that is in the list. It's suggested you filter down on *.zip to only get valid items in case of a mixed list of items. The external unzip method will call the OS's unzip utility to unzip. This will only work on OS X, or Linux / Unix-based systems. Otherwise, the internal method will work too. |
At line 140 changed one line |
This will take all items in the list and zip them into a single file. Its suggested to then do an Exclude task to them remove all items, and then go Find the single zip you just made if you want to do further processing. |
This will take all items in the list and zip them into a single file. It's suggested to then do an Exclude task to them remove all items, and then go Find the single zip you just made if you want to do further processing. |
At line 162 changed one line |
The HTTP task lets you post events to another HTTP server with information about files that were transferred. You can control various aspects about how the connection is made and put in your variables for the data you want posted. |
The HTTP task lets you post events to another HTTP server with information about files that were transferred. You can control various aspects about how the connection is made and put in your variables for the data you want to be posted. You have some additional variables like these to reference: {http_response_code}, {http_response_message}, {http_response_log}. |
At line 174 changed one line |
}}} |
}}}\\ |
\\ |
__PBE (Password-based encryption)__\\ |
\\ |
Set the key location to "password:".\\ |
Provide the password in the "Key password(if any)" input field.\\ |
At line 177 changed one line |
This task allows you to scan a mail server finding matching emails based on subjects or senders, and pull out attachments from them. You can optionally delete the messages after your done too. These attachments can then be processed with CrushTask in additional methods. This task type is only allowed for Enterprise licenses. |
This task allows you to scan a mail server finding matching emails based on subjects or senders, and pull out attachments from them. You can optionally delete the messages after your done too. These attachments can then be processed with CrushTask in additional methods. This task type is only allowed for Enterprise licenses.\\ |
\\ |
[attachments|popimap_task.png]\\ |
\\ |
Here is a list of other possible variables:\\ |
{{{ |
subject, body, from, mail_index, mail_type, url, the_file_name, the_file_path, modified, from_prefix |
}}}\\ |
\\ |
__More options__:\\ |
\\ |
__1.__ Configure Microsoft IMAP: [ Microsoft IMAP Link|https://www.crushftp.com/crush11wiki/Wiki.jsp?page=SMTP%20Microsoft%20Graph%20XOAUTH%202%20Integration#section-SMTP+Microsoft+Graph+XOAUTH+2+Integration-3.PopImapTask]\\ |
At line 179 changed 5 lines |
[attachments|popimap_task.png] |
|
Here is a list of other possible variables: |
subject, body, from, mail_index, mail_type, url, the_file_name, the_file_path, modified, from_prefix. |
|
__2.__ Microsoft Graph REST API: Instead of using the IMAP protocol, you can retrieve mail messages through the __Microsoft Graph REST API__. See the [Microsoft Mails Task|MicrosoftMails] for more details.\\ |
__3.__ Configure Google IMAP: [ Google IMAP Link|https://www.crushftp.com/crush11wiki/Wiki.jsp?page=SMTP%20Google%20Mail%20Integration#section-SMTP+Google+Mail+Integration-3.PopImapTask]\\ |