Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Agent, Actions, Rules & Automation >> Collect $Names of parents of agent's children
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1417431780

Message started by manuelkuhs on Dec 1st, 2014, 6:03am

Title: Collect $Names of parents of agent's children
Post by manuelkuhs on Dec 1st, 2014, 6:03am

I have an agent that collects notes. I want to collect the names of the (original) parents of the agent's results.

Currently I have this Rule on my agent: $parent_names=collect(children,$Name(orignal(parent)))

But it doesn't work.

I know i can do it by creating a variable $parent_name for each child node and then collecting that, but I'd like to do it in one step if possible, for simplicity.

I'm sure any Tbx pro will see I'm a complete noob ;)

Title: Re: Collect $Names of parents of agent's children
Post by Mark Anderson on Dec 1st, 2014, 11:30am

If the code is copied from your agent, you've a typo in 'orignal'.

Title: Re: Collect $Names of parents of agent's children
Post by manuelkuhs on Dec 2nd, 2014, 10:21am

ehm, yes... cough cough

I've spent several hours in Tbx since posting this request and solved it another way...

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.