Create Model Transitor using Open API

Model Transitor is a feature that allows to create ‘transit’ relationships within your Visual Paradigm models, which can be a useful reference in identifying the cause of design changes in the future. The Model Transitor can be generated programmatically using Open API. In this article we will teach you how to create Model Transitor using Open API.

Assume we have a use case and a BPMN task in the project and would like to establish a transitor relationship from use case to task:

Step 1: Retrieve ITransitProperty from use case model. Since we would like to have use case transit to task, therefore we should retrieve the IModel.PROP_TRANSIT_TO from use case.

ITransitProperty transitProp = (ITransitProperty) usecase.getModelPropertyByName(IModel.PROP_TRANSIT_TO);

Step 2: Add the BPMN task to ITransitProperty.


Now the transitor relationship is being established.

Sample plugin

This sample plugin will create a use case model and BPMN task model in project, and automatically establish the transitor relationship from use case to task. After deploy the plugin into Visual Paradigm you can press the plugin button to create the model elements and transitor relationship.

Trigger sample plugin

Download sample plugin

You can click this link to download the sample plugin.

Related Know-how

Related Link

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply