Together User Guide:
 
Chapter 
6
Together Scripts

CHAPTER CONTENTS 
 

About Scripts

Together offers means to access modeling information, prepare design and software documentation in the user-specified formats, export to various file formats, and develop patterns and wizards.
 
Together supports scripts in the 3 scripting languages: Java itself, TCL, and Python.

Java scripts in Together are simply Java classes. The scripts access model information using open Script API  that provides extensive customizations to support the individual needs of a wide variety of system modelers and developers. The script is as flexible as Java itself. A script in Java is a class implementing the oisoft.togetherx.scriptapi.Script interface.

You can create, edit, and run scripts within Together using intensively the model information from an open project. Scripts may generate documents and software presentations based on the project.

TCL and Python scripts are running by the corresponding subsystems of Together. Since these are interpreting scripts, no compilation is required.
For the information on TCL scripts and language refer to http://www.scriptics.com
For the information on Python scripts and language refer to http://www.python.org

Scripts feature availability

The extent to which you can work with scripts depends upon your license. Access has 3 levels: (1) no access to scripts, (2) access to run ready-made scripts, and (3) access to custom scripts development.

You can edit a Java script in the Together editor even if your product version does not have round-trip engineering for Java. You can run scripts when any project is open, or, if your script is not dependent on model information, when no project is open.

Note: Java scripts in source are DISABLED by default. To enable Java scripts in source, locate the following line in the ./lib/config.properties:

;script.loader.usescriptinsource = true
and uncomment this line by deleting the leading semi-colon (;) character. Reload properties if Together is already running.
 

Script API

Together (starting from version 2) offers the open API to allow the advanced user to develop scripts in Java accessing the Model information. Refer to Script API reference documentation located in the  ./doc/scriptapi directory.
 

Directory structure of Script processing system

Working with compiled Java scripts

Developing own Java scripts

Working with TCL scripts

Working with Python scripts


Chapter contents



This page is hosted by the Chair for Applied Software Engineering of the Technische Universität München.
Imprint (Impressum)