Page 1 of 1

Trigger to invoke a project

Posted: Tue Dec 09, 2014 11:50 am
by Barb_Texas
Hi,
I'm very new to GoAnywhere. To practice, I've created a dummy file and placed it in my personal directory in GoAnywhereServices. My trigger is to recognize the existence of the file and call a project which will simply email me and rename the file. The project can be excuted manually and will perform the functions but I can not get the trigger to call the project. I've uploaded the file when the trigger is active, taken a file and renamed it to meet the condition when the trigger is active, and deactivated and reactivated when the file already exists in the directory (also defined in the Condition). The trigger doesn't seem to notice.
Any suggestions?
Thank you very much,
Barb

Re: Trigger to invoke a project

Posted: Tue Dec 09, 2014 12:02 pm
by Support_Rick
Barb,

Welcome to the world of GoAnywhere!

Your issue here is that Triggers within GoAnywhere Services are based on Events that happen while a Web User is signed onto your system.

In this instance, Defining the Trigger to recognize the Successful Upload of a file is the first step. The action to be taken on the Successful Upload should be to Call a Project. After defining the GADirector Resource, you should be able to invoke your Project from the activation of the Trigger upon successful uploading of a file.

Things to check:

1. Make sure your Resource is defined and communicates to the GADirector
2. Make sure your Trigger is defined and recognizes the file as being Successfully Uploaded
3. Using the Web Client (or another protocol) upload a file to your system.
4. Verify that the trigger is activated (Trigger Log)
5. Verify that the Project was activated by the Trigger (Completed Job logs)

If these things do not work, please let us know and we'll be glad to do a GTM and see what's going on. Remember, the key to Triggers working is that the pre-defined event must happen. Just activating a trigger on a file after the file has been placed will not invoke the trigger.

Re: Trigger to invoke a project

Posted: Tue Dec 09, 2014 12:04 pm
by Barb_Texas
Thank you! I will try uploading rather than what I've been doing thus far.
Barb

Re: Trigger to invoke a project

Posted: Tue Dec 09, 2014 1:03 pm
by Barb_Texas
Hi,
Ok, I deleted the file in the directory defined in the trigger and uploaded it. Trigger asleep, no response. Attached is my set up. I don't think I need a userid and password to call a project on Director, do I?
Thanks,
Barb

Re: Trigger to invoke a project

Posted: Tue Dec 09, 2014 1:07 pm
by Barb_Texas
I've reread your response. The trigger only works when a web user uploads a document? If we receive an inbound FTP into a directory, the trigger will handle that too, correct?
B

Re: Trigger to invoke a project

Posted: Tue Dec 09, 2014 2:47 pm
by Barb_Texas
Rick,
As you suggested, I did not use the File Manager to Upload my file to GoAnywhere in order to fire my trigger.

Using an external FTP (still having issues with the web access to GA) I did transfer the file to the root directory of GA. The trigger then fired which called my Project.

I also got rid of the directory as a condition-- still wondering how the Project knows where to find the file without sending the directory path, but it is quite possible that GA just knows that.

Had error in project so don't know outcome until I clear that up.

Thank you so much Rick; you'll help is very much appreciated.
Barb