dbTalk Databases Forums  

PrecedenceBasis Property

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


Discuss PrecedenceBasis Property in the microsoft.public.sqlserver.dts forum.



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

Default PrecedenceBasis Property - 12-17-2003 , 09:16 PM






Can anyone explain what PrecedenceBasis Property is? and please, explain it like I'm 4 yrs old. Thanks.

Cheers,

GMG

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: PrecedenceBasis Property - 12-18-2003 , 07:13 AM






A workflow constraint is basically a test, and when true the constraint is
followed.

So an On Success workflow constraint is testing for the step execution
result (ExecutionResult property) to equal the success value
(DTSStepExecResult_Success constant). Conversely when using an On Failure
constraint the execution result needs to equal failure
(DTSStepExecResult_Failure constant). So on the constraint we store the
execpcted value for testing, the Value property.

Since the ExecutionResult property only has two possible values, how do you
do a On Completion? The way it is done is by no longer testing the result,
instead you test the status (ExecutionStatus Property). So an On Failure is
a test of the execution status where it needs to equal completed
(DTSStepExecStat_Completed Constant).

As described above you now need two pieces of information for your test,
first you need to know which property you are testing, and secondly what is
the value to test for. The precedence basis tells us which property to test,
either the execution status or result, and the Value described above is the
test.

Make sense now?

Incidentally, out of the box you get three workflow constraints, but in
theory there are 6. There are the two possible values for the execution
result (See DTSStepExecResult), and the four possible values for the
execution status (See DTSStepExecStatus).


--
Darren Green
http://www.sqldts.com


"Casualinfoguy" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Can anyone explain what PrecedenceBasis Property is? and please, explain
it like I'm 4 yrs old. Thanks.

Cheers,

GMG



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.