You need to be able to call tools within your application. This is done by adding action descriptors. The issue tracking system
requires five actions in total:
- An action to return the children at the application level - entries All Issues and Issues by Priority.
- An action to return the children of the entry All Issues or Issues by Priority.
- An action to return a list of issues filtered by the priority.
- An action to display a list of issues filtered by the priority in the
Table Results view.
- An action to display the raiser of an issue.
To specify the action to generate the first level in the
Application Explorer view:
- Right-click
Action Descriptors category folder, and then click
.
This opens the
Enter Object ID dialog box.
- In the
New ID field, next to the Action Descriptor field, type
TUTORIAL_ACT_CreateIssueFilterLevel.
- Click
OK.
- Right-click
TUTORIAL_ACT_CreateIssueFilterLevel, and then click
Edit.
This opens the
Edit Properties dialog box.
- Double-click the
Label value cell, and type
Get Issue Filters.
- Click
OK.
- Drag and drop the
TUTORIAL_TOOL_AWM_CreateIssueFilterLevel tool onto the
TUTORIAL_ACT_CreateIssueFilterLevel action descriptor.
This opens the
Create Relationships dialog box.
- Click
OK.
To specify the action to produce the children of the first tree view level in the
Application Explorer view:
- Right-click
Action Descriptors category folder, and then click
.
This opens the
Enter Object ID dialog box.
- In the
New ID field, next to the Action Descriptor field, type
TUTORIAL_ACT_CreateStaticPriorityLevel.
- Click
OK.
- As we have two different tools to generate the children of a first level tree entry depending on whether it is the All Issues
or the Issues by Priority entry, you need to associate two tools and specify respective enabling conditions.
Drag and drop the
TUTORIAL_TOOL_CMD_ListIssues, and
TUTORIAL_TOOL_AWM_CreateStaticPriorityLevel tools onto the
TUTORIAL_ACT_CreateStaticPriorityLevel action descriptor.
This opens the
Create Relationships dialog box.
- Click
OK.
The
TUTORIAL_TOOL_CMD_ListIssues tool must only be enabled when the property
TUTORIAL_PROP_STATIC_IssueFilter contains the value All Issues. This can be achieved by specifying an enabling condition on the action for tool relationship.
To do this:
- In the
Action Descriptors category folder, expand the action
TUTORIAL_ACT_CreateStaticPriorityLevel.
- Right-click
TUTORIAL_TOOL_CMD_ListIssues, and then click
.
- Right-click
Enabled Condition, and then click
.
- Right-click
Condition, and then click
Edit.
This opens the
Edit Properties dialog box.
- Double-click the
Target ID value cell, and then click
TUTORIAL_PROP_STATIC_IssueFilter.
- Double-click the
Value value cell, and type
All Issues.
- Click
OK.
If the action
TUTORIAL_ACT_CreateStaticPriorityLevel is called for the All Issues entry in the tree view, the tool
TUTORIAL_TOOL_CMD_ListIssues is called with the input value *. You can achieve this by specifying a parameter override:
- In the
Action Descriptors category folder, expand the action
TUTORIAL_ACT_CreateStaticPriorityLevel.
- Right-click
TUTORIAL_TOOL_CMD_ListIssues, and then click
.
- Right-click
Parameter Override, and then click
Edit.
This opens the
Edit Properties dialog box.
- Double-click the
New Static Value value cell, and type
*.
- Double-click the
Parm To Override value cell, and click
TUTORIAL_PROP_ELE_Priority.
- Click
OK.
Create an enabling condition for the
TUTORIAL_TOOL_AWM_CreateStaticPriorityLevel tool belonging to the
TUTORIAL_ACT_CreateStaticPriorityLevel action descriptor in the same way. This time set the attribute operator of the simple condition to equals not:
- In the
Action Descriptors category folder, expand the action
TUTORIAL_ACT_CreateStaticPriorityLevel.
- Right-click
TUTORIAL_TOOL_AWM_CreateStaticPriorityLevel, and then click
.
- Right-click
Enabled Condition, and then click
.
- Right-click
Condition, and then click
Edit.
This opens the
Edit Properties dialog box.
- Double-click the
Operator value cell, and click
Equals not.
- Double-click the
Target ID value cell, and then click
TUTORIAL_PROP_STATIC_IssueFilter.
- Double-click the
Value value cell, and type
All Issues.
- Click
OK.
Your action descriptor
TUTORIAL_ACT_CreateStaticPriorityLevel should look like:
Create another action and name it
TUTORIAL_ACT_ListFilteredIssues:
- Right-click
Action Descriptors category folder, and then click
.
This opens the
Enter Object ID dialog box.
- In the
New ID field, next to the Action Descriptor field, type
TUTORIAL_ACT_ListFilteredIssues.
- Click
OK.
- Drag and drop the
TUTORIAL_TOOL_CMD_ListIssues tool onto the
TUTORIAL_ACT_ListFilteredIssues action descriptor.
This opens the
Create Relationships dialog box.
- Click
OK.
Create another action and name it
TUTORIAL_ACT_ShowIssues. This is the action that displays a list of issues filtered by the priority in the
Table Results view:
- Right-click
Action Descriptors category folder, and then click
.
This opens the
Enter Object ID dialog box.
- In the
New ID field, next to the Action Descriptor field, type
TUTORIAL_ACT_ShowIssues.
- Click
OK.
- Drag and drop the
TUTORIAL_TOOL_CMD_ListIssues tool onto the
TUTORIAL_ACT_ShowIssues action descriptor.
This opens the
Create Relationships dialog box.
- Click
OK.
- Right-click
TUTORIAL_ACT_ShowIssues, and then click
Edit.
This opens the
Edit Properties dialog box.
- Double-click the
Label value cell, and type
Show Issues in Table.
- Click
OK.
Create the final action and name it
TUTORIAL_ACT_ShowRaiser:
- Right-click
Action Descriptors category folder, and then click
.
This opens the
Enter Object ID dialog box.
- In the
New ID field, next to the Action Descriptor field, type
TUTORIAL_ACT_ShowRaiser.
- Click
OK.
- Drag and drop the
TUTORIAL_TOOL_CMD_GetRaiser, and
TUTORIAL_TOOL_AWM_DIA_ShowRaiser tools onto the
TUTORIAL_ACT_ShowRaiser action descriptor.
This opens the
Create Relationships dialog box.
- Click
OK.
- Right-click
TUTORIAL_ACT_ShowRaiser, and then click
Edit.
This opens the
Edit Properties dialog box.
- Double-click the
Label value cell, and type
Show Raiser.
- Click
OK.
Your action descriptors should look like:
- Click
.