Custom Task Guide

Custom Task Guide

Step 6. Test the Copy Task

Step 6. Test the Copy Task

Perform the following steps to test the Copy task.
  1. Create a new project.
  2. Navigate to the Add Task screen.
  3. Expand the Custom Tasks folder and click on the Copy task we just installed.
  4. Configure the task by specifying source file and destination directory and then click on the Execute Project button.
  5. Note that the task also has other attributes such as Label, Log Level, On Error, etc. These are inherited from the super class.
  6. Select verbose for the log level.
  7. Save and Compile the project.
  8. Run the project.
    The final step is to add the new task to a project and test it out in Managed File Transfer. 
    The project should complete successfully and copy the file you have selected. The execution produces the following job log:
    6/23/15 7:41:02 AM            INFO      Start Date and Time: 6/23/15 7:41:02 AM 6/23/15 7:41:02 AM            INFO      Job Number: 1326461398353 6/23/15 7:41:02 AM            INFO      Project Name: /Example Copy Test 6/23/15 7:41:02 AM            INFO      Submitted By: root 6/23/15 7:41:02 AM            INFO      Informatica MFT 5.0.0 running on Windows 7 (amd64) 6/23/15 7:41:02 AM            INFO      Executing project 'Example Copy Test' 6/23/15 7:41:02 AM            INFO      Project location: C:\informaticamft\userdata\projects\Example Copy Test.xml 6/23/15 7:41:02 AM            INFO      Executing module 'Main' 6/23/15 7:41:02 AM            INFO      Copy Task started 6/23/15 7:41:02 AM            INFO      Copying file C:\temp\persons 6.txt to directory C:\Users\temp2 6/23/15 7:41:02 AM            INFO      1060 byte(s) copied 6/23/15 7:41:02 AM            INFO      Copy Task finished 6/23/15 7:41:02 AM            INFO      Finished module 'Main' 6/23/15 7:41:02 AM            INFO      Finished project 'Example Copy Test' 6/23/15 7:41:02 AM            INFO      End Date and Time: 6/23/15 7:41:02 AM

0 COMMENTS

We’d like to hear from you!