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 >> Newbie ? can I do this with an agent
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1227642761

Message started by Roger C. Eddy on Nov 25th, 2008, 2:52pm

Title: Newbie ? can I do this with an agent
Post by Roger C. Eddy on Nov 25th, 2008, 2:52pm

I have created a Map View "Critical Incident Structure" subtitled "Reflective Thinking in Complex Contexts", this in turn is part of a larger Tbx project on Human Error, particularly in Health Care.

The Notes in this Map View illustrate components of "Stories", "Narrative Reports" and "Complex Context Critical Incident Reports". Within these notes are explanatory text, for example a note "A Personal Data Base" describes in the text portion of the note how a Critical Incident Report can be used in an unresponsive organization. In that text I have selected a phrase "organizational resistance" and I have colored it "magenta" using the toolbar menu.

I would like to create an agent that collects all notes that have a phrase where color = magenta. This would collect notes for a Glossary of terms. Links of these terms to "incidents", "references" or essays would be created at a later date.

Can an agent do this?
Should I be thinking links instead?
If so can one Glossary term have multiple links?

Any and all suggestions are welcome. I am 74 and by the time I understand this program it will be my personal cure for Alzheimer's.

Thanks in advance

Title: Re: Newbie ? can I do this with an agent
Post by Mark Bernstein on Nov 25th, 2008, 4:24pm

You can't currently use agents to search for passages of colored text.  You can search for patterns in the text, or for values of attributes.

One approach might be to have OrganizationalResistance be a boolean attribute; simply check it whenever you see signs of Organizational Resistance.

Title: Re: Newbie ? can I do this with an agent
Post by Petra Weinakht on Nov 26th, 2008, 8:41am

Perhaps an attribute named "keyWords" of type "set" could be created and added to the prototype(s) for your notes.  Then, put the glossary terms that apply to a note into the keyWords attribute for that note.  For example, notes about human error could have "Human Error" in the set of keyWords.  If you have a container named "Glossary" you could put a series of agents into that container, each of which has a query for a particular glossary term.  For example, to find notes about Human Error use this query in an agent:

keyWords(Human Error)

The Glossary container could then, on export, list a term (i.e., the name of an agent) and the names of notes keyworded to that term.

Title: Re: Newbie ? can I do this with an agent
Post by Mark Anderson on Nov 26th, 2008, 10:07am

To avoid hard to spot errors in your code, I advise tat one uses a consistent style for attribute names. The convention is to use capitalised words or camel-case words. Thus Keywords or KeyWords but not keyWords or keywords. The 'keyWords' style is problematic as it apes the convention for action/export codes and if you don't know all the command codes of by and you might later mistake an attribute name for a command code in some later revision.

I stress these are naming conventions - not rules - but they are suggested to help the user employ consistency in what they do code to avoid hassles in actual use.

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.