Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 21.2a

Image Removed

When you decide to create

When creating class operations to your own data model in the

Designer

Implementation folder, you can

choose between two

select from three different types of implementation

for your class operations

:

  • Action Script:The usage of action script is explained on this page.
  • Mapping Diagram:

Go
  • Refer to

page detailed information.

Adding Action Script

  • more information about mapping diagrams.

  • Activity Diagram: You can implement class operations by a UML activity diagram.

The xUML Action Language is a script like language that you can use in class operations to implement atomic actions like manipulating strings, arrays, and so forth. Such class operations are called action script.

Tip

Refer to xUML Action Language for a comprehensive documentation of all elements of the xUML Action Language.

Creating an Operation Containing Action Script

Via a Quick Action

The fastest way to create an action script operation is via the quick actions of the related class.

Image Added

Hover over the class you want to add the operation to, and click the Add Action Script Operation quick action (Image Added).

Image Added

Image Removed

If you want to add action script, right click on the operation you want to create an implementation for and choose menu item Create Implementation.

Image Removed

In the pop-up window, select option Action Script and confirm with

Assign a name to your new action script and click

Save.

The Action Script Editor opens in a new tab.The operation icon in the service panel is extended by a blue pointImage Removed, indicating that implementation has been added to the operation. 

Anchor
action_script
action_script

You can now add action script in the editor.

Do not forget to save after you have finished your input.

You have direct access to this chapter via the help button in the editor. The

This documentation contains helpful basic information such as

Tip
titleExpert Advice

We recommend the chapter Click the help icon (Image Added) to jump to the documentation of the xUML Action Language in the xUML Services Reference Guide for detailed information about the usage of action script.

Div
Stylefloat:left; padding-right: 10px; padding-top: 1.1em; padding-bottom: 1.1em;

Image Removed

Div
Stylepadding-top:1.1em;

The script you have entered is saved and validated in the background.

Via the Context Menu

Alternatively, you can add a class operation via the context menu of a class, and create an implementation afterwards.

Image Added

Right-click the class you want to add an operation to and select Add Operation from the context menu.

Image Added

In the pop-up, enter the name of the operation and click Save.

Image Added

The new operation is displayed below the class. Icon Image Added indicates that this operation has no implementation, yet.

Image Added


Select Create Implementation from the context menu of the newly created operation.

Image Added

In the pop-up window, select option Action Script and confirm with Save.

Image Added

The Action Script Editor opens in a new tab, and you can start entering action script (see further above).