Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

JWT Tutorial TechnicalData

This page shows how to add packages and technical data to the process. In this example case we use technical information related the the requirements of the AgilPro simulator. Dependent on your target environment, the details that have to be inserted into the representation of the technical data will probably differ.

Adding packages and roles

First, we will create some packages to order our roles, etc. for the future diagrams. Go to the overview page and select “Add” in the Roles section.

Hint You only need to create the package “Roles”, if you didn’t activate the button for automatically generating the packages, otherwise you can leave that step behind since a default package for roles has already been created.

The default packages

By clicking with the right mouse button on “Model: Simple Process” you can select “New package” and enter the name of the package (or just use the “New Package” button):

Creating a new package

Enter the name “Roles”, and click on “OK”. Now we want to create a new role called “Testrole” in the roles package. Therefore we enter its name in the wizard.

Creating a new role

Now your overview page should look similar to the following:

Overview page with new role

Adding applications and data

Similar to the previous step we will add two packages for applications and data and insert our first application. In the new package “Applications” we will create an application called “Internet Browser”.

Creating a new application

In the next window you can specify the JAR-archive of the program, the Java class, the method and also WebService specific information. At least you have to specify the Java class. In this example we use an implementation contained in the AgilPro Simulator. There are several predefined Java classes that the AgilPro Simulator can recognize. One is “eu.emundo.agilpro.fw.fe.intf.BrowserUi” for an internet browser.

Specifying details for the new application

Now you should have one role and one application.

Hint For the application to show up, the view must be set to “Technical” in the toolbar.

Overview page with role and application

What we need is now the URL that the browser should open when executing it.

Therefore, we create a new package “Data” (if not already done by the auto-creation button in the new model wizard) and a new data item “Browser data”:

Creating a new data

In order for the AgilPro Simulator to recognize what kind of data item this is, we need to specify the data type of the data item. There are several predefined data items that can be used with the AgilPro Simulator and Integration framework. For more information see section 12. Right now, we want to define a URL for our internet browser. Therefore, we create a new data type in the data package with the name “URL”. This can be achieved with the “Create datatype” button in the wizard for creating a new data.

Specifying details for the new data

We select this new data type and give it a value: the URL that we want to open. In our case e.g. http://www.yahoo.com.

Specifying more details for the new data

Now we got one role, one application and one data with a specified data type and our overview page should look like the following. Be aware that the delete buttons are only enabled if the role, application or data is not used in a process model anymore, otherwise the buttons are disabled.

Overview page with roles, applications and data

See also

Copyright © Eclipse Foundation, Inc. All Rights Reserved.