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:
ITransitProperty transitProp = (ITransitProperty) usecase.getModelPropertyByName(IModel.PROP_TRANSIT_TO);
Step 2: Add the BPMN task to ITransitProperty.
Now the transitor relationship is being established.
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.
Download sample plugin
You can click this link to download the sample plugin.