It is currently Wed Feb 08, 2012 11:45 pm



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Automate Gateway Export
PostPosted: Fri Mar 12, 2010 2:40 pm 

Joined: Mon Dec 08, 2008 12:52 pm
Posts: 17
Hello all,

we have a large model in use. In this model we have to update the requirements to the model regularly. Because of the size the time to do this is very long. So we would like to do this job automatically during the night.
Therefore i have the following questions: Has someone experiences with automating the Gateway export? And do you use a batch process or the Java API?

Thanks for your help
Regards
Jan


Offline
 Profile  
 
 Post subject: Re: Automate Gateway Export
PostPosted: Tue Jun 01, 2010 2:52 pm 

Joined: Mon Mar 03, 2008 3:12 pm
Posts: 23
Location: UK
Although there is a published API for Gateway - it doesn't expose all of the functions that it's capable of - so it's easier to use Gateway's own scripting language.
For example create a (text) file with a .br extension (doesn't matter what you call it) in the Gateway\config\otscript directory:

(Example files are also attached:
Attachment:
File comment: example files for invoking a batch Rhapsody-Doors sync
CustomSyncDoorsRhapsody.zip [653 Bytes]
Downloaded 36 times
)

METHOD Application.customRhpDoorsSync() : {
basicOpenFromRhapsody(TRUE); activate; menuRhapsodyDoorsSync; kernel.quit;
};

This defines a new function that you can call from your script.
The function basically does 3 things:
1. Opens gateway (it assumes Rhapsody is already running) and automatically answers Yes to the 'do you want to reload' question.
2. Activates the same function that would have been activated had you as a user right-clicked in Rhapsody and selected Sync with DOORS - and do not show the synchronize dialog if it has already been configured
3. Quits

You can then invoke the function in your script by calling:
<RhpDir>\Gateway\bin.w32\rg.exe" -exec customRhpDoorsSync

Note that this still invokes the Gateway User Interface - in 7.52 there will be a batch mode whereby you can invoke these functions without invoking the UI

Cheers
Andy



_________________
Get Rhapsody Tips, Tricks, Tutorials, Wizards and Sample Models here:

http://merlinscave.info/Merlins_Cave/Welcome.html
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

cron

suspicion-preferred