Chapter 2 Getting Started with the Business Process Model


Previewing the code of a BPM

You can preview the code of a model or package in order to see the generated code, by clicking the Preview tab in their respective property sheet. The displayed code changes according to the process language you have selected in your model.

For example, if you have selected a Service Orchestration family language, the Preview page displays the Schema file that corresponds to the XML file to be generated.

You can use the following tools and keyboard shortcuts from the Preview toolbar:

Tool Description Keyboard shortcut

Editor Menu Shift + F11

Refresh F5

Show Generation Options ctrl + W

Select Generation Targets ctrl + F6

Showing generation options

If you click the Show Generation Options tool, the Generation Options dialog box appears. You can change generation options from this dialog box.

Select Generation Targets

When available, this tool displays the list of target extended model definitions selected for generation. If you add a generation target, the corresponding tab is added to the Preview page. If you deselect a generation target, the corresponding tab disappears from the Preview page. This tool is disabled if no target extended model definition is attached to the model.

For more information about the generation targets, see section Defining generation targets (XEM), in chapter Generating for a language.

Script bookmarks

In the Preview page, you can add and remove bookmarks at specific points in the code and then navigate forwards or backwards from bookmark to bookmark:

Keyboard shortcut Description
ctrl + F2 Adds a new bookmark. A blue bookmark box appears. If you repeat this action from the same position, the bookmark is deleted and the blue marker disappears
F2 Jumps to bookmark
shift + F2 Jumps to previous bookmark

Note that bookmarks are not printable and are lost if you use the Refresh, or Show Generation Options tools.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.