dbTalk Databases Forums  

Multiple Workflow execution of Tasks

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


Discuss Multiple Workflow execution of Tasks in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tturner6@hotmail.com
 
Posts: n/a

Default Multiple Workflow execution of Tasks - 12-20-2006 , 10:40 AM






I have written many DTS packages to move data, I've never had to branch
in my workflow of tasks.

I'm creating a package which has a log table. It runs four times a
day. It will check the log table, if the package has already run,
stop. If it hasn't run, go on with further processing.

I've create three SQL Tasks

Task 1 - check table. Initialize parameter.

Task 2a - If Task 1 has not run, continue with process and query
additional table.

Task 2b - If Task 1 has run, Update batch control table and stop.

Is this a task that needs ActiveX Scripting or is there a way using
the SQL Statements to determine which task to go to next after Tasks 1?

Thanks!

Tony


Reply With Quote
  #2  
Old   
sonny@nellhead.pointyhats.com
 
Posts: n/a

Default Re: Multiple Workflow execution of Tasks - 12-20-2006 , 12:30 PM






Tony, when I need to branch in a situation like this, I always use an
ActiveX task. It looks at the value of whatever global parm you have
set in the preceding task, and based on that value, disables the
workflow in the path you do NOT want to take, leaving the workflow of
the path you DO want to take, enabled.

Of course it requires that you initially design the package with two
enabled workflows (tasks) leading away from the ActiveX task.

So in your task 1, set a global parm to a value indicating the
situation with the log table. Then have an ActiveX task next that
checks that value. The ActiveX task will have two workflows to two
tasks, only one of which will be executed.

sonny


tturner6 (AT) hotmail (DOT) com wrote:
Quote:
I have written many DTS packages to move data, I've never had to branch
in my workflow of tasks.

I'm creating a package which has a log table. It runs four times a
day. It will check the log table, if the package has already run,
stop. If it hasn't run, go on with further processing.

I've create three SQL Tasks

Task 1 - check table. Initialize parameter.

Task 2a - If Task 1 has not run, continue with process and query
additional table.

Task 2b - If Task 1 has run, Update batch control table and stop.

Is this a task that needs ActiveX Scripting or is there a way using
the SQL Statements to determine which task to go to next after Tasks 1?

Thanks!

Tony


Reply With Quote
  #3  
Old   
tturner6@hotmail.com
 
Posts: n/a

Default Re: Multiple Workflow execution of Tasks - 12-20-2006 , 12:49 PM



Russel,

I am trying to figure out how to branch in my workflow. Task 1 is to
see if a process has run. I can also set a parameter value if needed.
I was trying to branch from Task 1 without having to use ActiveX
scripting.

I check to see if a process has run (Task 1). If that process has run,
then stop. If that task has not run, then go to next step.

Tony


RLoski wrote:
Quote:
"If Task 1 has not run" is confusing. What is "Task 1"? Is it "check table.
Initialize parameter" or something else?

--
Russel Loski, MCSD.Net


"tturner6 (AT) hotmail (DOT) com" wrote:

I have written many DTS packages to move data, I've never had to branch
in my workflow of tasks.

I'm creating a package which has a log table. It runs four times a
day. It will check the log table, if the package has already run,
stop. If it hasn't run, go on with further processing.

I've create three SQL Tasks

Task 1 - check table. Initialize parameter.

Task 2a - If Task 1 has not run, continue with process and query
additional table.

Task 2b - If Task 1 has run, Update batch control table and stop.

Is this a task that needs ActiveX Scripting or is there a way using
the SQL Statements to determine which task to go to next after Tasks 1?

Thanks!

Tony




Reply With Quote
  #4  
Old   
tturner6@hotmail.com
 
Posts: n/a

Default Re: Multiple Workflow execution of Tasks - 12-20-2006 , 12:51 PM



Sonny,

Thanks, I was trying to accomplish this without ActiveX scripting. It
may be that is how branching is supposed to be done.

Thanks,

Tony


sonny (AT) nellhead (DOT) pointyhats.com wrote:
Quote:
Tony, when I need to branch in a situation like this, I always use an
ActiveX task. It looks at the value of whatever global parm you have
set in the preceding task, and based on that value, disables the
workflow in the path you do NOT want to take, leaving the workflow of
the path you DO want to take, enabled.

Of course it requires that you initially design the package with two
enabled workflows (tasks) leading away from the ActiveX task.

So in your task 1, set a global parm to a value indicating the
situation with the log table. Then have an ActiveX task next that
checks that value. The ActiveX task will have two workflows to two
tasks, only one of which will be executed.

sonny


tturner6 (AT) hotmail (DOT) com wrote:
I have written many DTS packages to move data, I've never had to branch
in my workflow of tasks.

I'm creating a package which has a log table. It runs four times a
day. It will check the log table, if the package has already run,
stop. If it hasn't run, go on with further processing.

I've create three SQL Tasks

Task 1 - check table. Initialize parameter.

Task 2a - If Task 1 has not run, continue with process and query
additional table.

Task 2b - If Task 1 has run, Update batch control table and stop.

Is this a task that needs ActiveX Scripting or is there a way using
the SQL Statements to determine which task to go to next after Tasks 1?

Thanks!

Tony


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.