dbTalk Databases Forums  

ActiveX WorkFlow Problem

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss ActiveX WorkFlow Problem in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
M Dodsworth
 
Posts: n/a

Default ActiveX WorkFlow Problem - 10-13-2005 , 08:47 AM






I have and ActiveX Script Task that transferes a file over FTP.

I then have an ActiveX WorkFlow script that checks to see whether the file
has been downloaded.

If so I pass DTSStepScriptResult_ExecuteTask or
DTSStepScriptResult_DontExecuteTask if there's no file.

The problem seems to be that the workflow script is executing before the FTP
has completed and therefore always results in a don't execute (t least that
waht i think!)

Any ideas ?

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: ActiveX WorkFlow Problem - 10-13-2005 , 02:06 PM






Yep the workflow script of the task executes before the task itself.
After you have tried to download the file then I would use workflow in
the main script to decide whether to go any further. A good reason for
this is that it is more visible than the Workflow Script. You can see
examples of having conditional execution in the workflow here

Multiple Paths in Workflow
(http://www.sqldts.com/default.aspx?218)


Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)


Allan


"M Dodsworth" <MDodsworth (AT) discussions (DOT) microsoft.com> wrote


Quote:
I have and ActiveX Script Task that transferes a file over FTP.

I then have an ActiveX WorkFlow script that checks to see whether the
file
has been downloaded.

If so I pass DTSStepScriptResult_ExecuteTask or
DTSStepScriptResult_DontExecuteTask if there's no file.

The problem seems to be that the workflow script is executing before the
FTP
has completed and therefore always results in a don't execute (t least
that
waht i think!)

Any ideas ?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.