Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: TRELATIONS in ptcli.cfg
Topic Summary: setting up pre/postconditions in ptcli.cfg
Created On: 3-Mar-2006 12:07
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 3-Mar-2006 12:07
User is offline View Users Profile Print this message


Andrea Schreiter

Posts: 2
Joined: 30-Aug-2005

Hi all,

is there anybody ou there who has expiriences in modifying the ptcli.cfg and can help me a bit further?

I don't know if the syntax is correctly and didn't find any documentation that is describing some special cases.

I want to write a precondition for a transition in Change Synergy with a content similar to this:
  • -set an attribute to value '123' if the attribute that is already the value '789'
The example should overwrite only the default value 'dummy', but it is also overwring other values than 'dummy'.
 
[TRELATION][NAME]set family attribute[/NAME][ACTION]set[/ACTION][REL_TYPE]self[/REL_TYPE][REL_Query]family_id='dummy'[/REL_QUERY] [ATTR_NAME]family_id[/ATTR_NAME][ATTR_VALUE]%instance#%problem_number[/ATTR_VALUE][/TRELATION]
  • -execute a transiton if the value of attribute 'ABC' is not '456'
[TRELATION][NAME]check if problem is deferred[/NAME][ACTION]verify[/ACTION][REL_NAME]self[/REL_NAME][ATTR_NAME]is_deferred[/ATTR_NAME][ATTR_VALUE]!true[/ATTR_VALUE][/TRELATION]
  • -execute the transition, if for the current problem the attribute 'xyz' is existing, the attribute is a toggle box and if it never has been set it does not exist.
[TRELATION][NAME]check if problem is deferred[/NAME][ACTION]verify[/ACTION][REL_NAME]self[/REL_NAME][ATTR_NAME]is_deferred[/ATTR_NAME][ATTR_VALUE]*[/ATTR_VALUE][/TRELATION]

Thanks a lot for your help in advance.

Best Regards,
Andrea
Report this to a Moderator Report this to a Moderator
 18-Jul-2006 16:58
User is offline View Users Profile Print this message


Mark Meredith

Posts: 7
Joined: 23-Mar-2004

The only way I have been able to modify information is to use a post condition trigger on an attribute it self, then use a perl script to modify information.

So your toggle box could trigger the perl script to run and then modify any attribute you wanted within the CR.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.