Add Page Variable to State Machine
This page provides directions to add the
timecardSummaries
page variable
to the
Search Timecards
state machine.
- Right click on the transition out of
Populate Search Screen
and open
its specification.
- Find the panel called
Effect
select
Activity
as behavior type.
- Right click on the
Behavior Element
and open its specification.
- Click on the parameters tab.
- Leave the name field as blank - this is the only difference between modeling an
event (coming out of a view) and a page variable (entering in a view).
- Click
Add
to add parameter - this parameter will represent a page variable.
The Parameter Specification dialog comes up. Enter
timecardSummaries
as the name of the parameter and
TimecardSummaryVO
as its type. Set its Multiplicity to 0..* and Is Unique to false.
- Click on the Tagged Values tab and click on the tagged value named
andromda_presentation_view_table_columns.
This tagged value tells AndroMDA to render the page variable as a table. Click the
Add Value
button. Enter the following values in the right panel, by clicking on the
+
button:
-
id
-
submitterName
-
approverName
-
status
-
startDate
This tells AndroMDA to display 5 columns in the table corresponding to the 5 attributes
of TimecardSummaryVO. Click on
Close
to add this parameter and close the
dialog box. (Note that the TimeTracker prototype does not have an
Id
column in the results table. However, we add it here so that the
id
is available to each row.)
We have now added the
timecardSummaries
page variable to the
Search Timecards
state machine.
Please go back to the main tutorial page and continue from where you left off.