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: Query for al all tasks in the update properties
Topic Summary: How can I query for al list of all tasks in the update(reconfigure) properties of a project or project grouping ?
Created On: 20-Feb-2008 14:53
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.
 20-Feb-2008 14:53
User is offline View Users Profile Print this message


Robin Rijkers

Posts: 2
Joined: 7-Sep-2007

What is the syntax for a query that does this, i found the quiery functions for doing this for a baseline, but not for a project/project grouping.
Report this to a Moderator Report this to a Moderator
 9-Jun-2008 12:32
User is offline View Users Profile Print this message


David Honey

Posts: 20
Joined: 26-Sep-2002

Hi Robin,

If you're using the CLI, probably the easiest way is to use:

ccm project_grouping -show all_tasks project_grouping_spec


It is possible to do this via a query expression. For that, you need to know two things:

1) How to query for objects that are related to some object with a specified relation name. Use the is_relation_name_of('source_object') query function to find objects with the relation _relation_name from the specified source_object (as a 4-part objectname). Use the has_relation_name('destination_object') query function to find objects that have the specified relation to the destination_object (specified as a 4-part objectname). These query functions are documented in the CLI help.

2) The names of relationships used. Many of these are documented in the CLI help. For example, a saved task in a project grouping uses a relation named "saved_task_in_pg". An added task in a project grouping uses a relation named "added_task_in_pg".

However, please be aware that such queries are then dependent on the base model data representation. If this representation changes in a future release of Synergy, then any scripts written that depend on the older representation will need to be updated. So from a scripting point of view, it is better to use the built-in ccm pg -show all_tasks command since that provides an abstraction of the underlying representation and will work even if the data representation changes.

Hope this helps,
Kind regards,
David.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 0 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 0 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.