hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Any way to force exit code for a chain.

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Task Sequences, Chains and Scripts
View previous topic :: View next topic  
Author Message
jeffroloff



Joined: 21 Dec 2006
Posts: 1

PostPosted: Thu Dec 21, 2006 12:10 pm    Post subject: Any way to force exit code for a chain. Reply with quote

I have nested chains (one main chain calls a number of other chains in sequence). If there is any failure in any chain, I need the entire process to stop.

I don't know how to signal back to my main chain that one of the chains that it calls has failed. Failure is indicated by a bad exit code from one of the tasks in the called chain or the existence of the word "fatal" in a text search task that runs at the end of each called chain.

Right now, if a called chain fails, the failure does not seem to be returned to the main chain, so it continues on with the entire sequence of sub-chains.
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Thu Dec 21, 2006 12:57 pm    Post subject: Reply with quote

After each sub chain step you can add a variable monitor task. this should monitor the value of the Text search task exit code
$%text_search_task_title::ExitCode%$

if exit code = -100 then the text is found.. and you can go to step 100 ..i..e exit the main chain
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Task Sequences, Chains and Scripts All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group