We faced situations that needed us to delete multiple files that were pre-existing and those that are created during DriveWorks generation process to meet the process flow needs. To delete multiple files at once, we developed a custom Add-In (DriveWorks Specification Task).
DriveWorks’ inbuilt functionalities do not have any task that allows the user to delete two or more files from a folder location without having to use the pre-existing ‘Delete File’ task multiple times or using it in a loop. We have created “Delete Files” Specification Task that allows the users to pass in the list of files that needs to be deleted from the folder location with ease.
The “Delete Files” task allows you to delete multiple files (any extension) from specified folder location. During deletion process, all the success and failures of files whether it was deleted successfully, files were missing i.e., either incorrect file name or file location was provided in the list, are all recoded in the reports.
This task can be used as per user needs. The user may want to delete files which already exists or may want to perform this task after certain files are generated by DriveWorks and no longer required at a certain state in DriveWorks flow. For the later, the user can use DriveWorks Triggered actions functionality to allow the tool to watch the document to be generated and then perform the tasks.
DriveWorks Pro 2017 help file Stage 4: Output Rules->Documents->Documents-Data
One can create a Trigger action which allows a specification to transition to a state once one or more than one number of file has been created. In this instance the file list which needs to be deleted as Triggered actions can only be processed by DriveWorks Autopilot. This in turn keeps a watch on the location of files mentioned in the Trigger Action document. Once all the files listed in the Trigger action which also happens to be the few from list of files to be deleted is generated, DriveWorks now allows the Specification Task (Delete Files) to occur during the transition.
The image alongside represents the use of the Delete Files Specification Task.
File List: This input field accepts list of file names which are separated by a pipe bar “|”.
Our team of experts can help speed up your product configuration, increase sales & productivity.