Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Newbie: Trying to pass information up hierarchy (Read 2890 times)
Stephen Bellhouse
Full Member
*
Offline



Posts: 1
Dublin, Ireland
Newbie: Trying to pass information up hierarchy
Feb 26th, 2009, 5:59pm
 
Hi, I have been working through the TB notes: A Task Assistant.
I have been trying out the code:
Rule: Urgent = any(child,$Urgent);

This is from the very last section:
Sometimes, we may want information to travel in the opposite direction. If we have a boolean attribute Urgent that flags top-priority tasks, we might want our assistant to propagate that information upward:
If a project has an urgent task, then that project is urgent
The new rule for Projects becomes
Rule: Urgent = any(child,$Urgent);

The code does not work for me ... is there a syntax error ?
What I started to play around with was rule code:
if(any(child,$Urgent))
  {Urgent=true;Color="bright red";}
else
  {Urgent=false;Color=blue;};
... but this does't work either.

Any help would be appreciated. I am evaluating TB for use with
analyzing requirements to build IT system designs.  

Back to top
 
 
  IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Newbie: Trying to pass information up hierarchy
Reply #1 - Feb 26th, 2009, 6:11pm
 
I just tried the rule, and it seems to work as I expected.

If you're keeping a text window or explorer window open for the parent, and Urgent is a key attribute, you might not see the checkbox change: Tinderbox thinks you might be editing the value!

ftp.eastgate.com/tinderbox/Urgent.tbx

Back to top
 
 
WWW   IP Logged
Pages: 1
Send Topic Print