BMC Remedy Action Request System 7.6.04 - Workflow Objects Guide
BMC Remedy Action Request System 7.6.04 - Workflow Objects Guide
04
January 2011
www.bmc.com
Telephone
Fax
Fax
If you have comments or suggestions about this documentation, contact Information Design and Development by email at
[email protected].
IBM, DB2, and Informix are registered trademarks of International Business Machines Corporation.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
respective owners.
UNIX is a registered trademark of The Open Group.
BMC Software considers information included in this documentation to be proprietary and confidential. Your use of this information is
subject to the terms and conditions of the applicable End User License Agreement for the product and the proprietary and restricted
rights notices included in this documentation.
Customer Support
You can obtain technical support by using the Support page on the BMC Software website or by contacting Customer
Support by telephone or email. To expedite your inquiry, please see Before Contacting BMC Software.
Support website
You can obtain technical support from BMC Software 24 hours a day, 7 days a week at
http://www.bmc.com/support. From this website, you can:
Read overviews about support services and programs that BMC Software offers.
Find the most current information about BMC Software products.
Search a database for problems similar to yours and possible solutions.
Order or download product documentation.
Report a problem or ask a question.
Subscribe to receive email notices when new product versions are released.
Find worldwide BMC Software support center locations and contact information, including email addresses, fax
numbers, and telephone numbers.
Product information
Product name
Product version (release number)
License number and password (trial or permanent)
Machine type
Operating system type, version, and service pack
System hardware configuration
Serial numbers
Related software (database, application, and communication) including type, version, and service pack or
maintenance level
Messages received (and the time and date that you received them)
Product error messages
Messages from the operating system, such as file system full
Messages from related software
In the United States and Canada, call 800 537 1813. Outside the United States and Canada, contact your local support
center for assistance.
Contents
Preface
11
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
AR System documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Terminology note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Chapter 1
Introducing workflow
15
Workflow basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Workflow objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About active links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About escalations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Workflow comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General procedures for workflow objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using menu options in BMC Remedy Developer Studio . . . . . . . . . . . . . . . . . . . .
Using the workflow editor in BMC Remedy Developer Studio. . . . . . . . . . . . . . .
Graphical representation of workflow events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About the Event Navigator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Launching the Event Navigator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About the Workflow Execution Viewer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Launching the Workflow Execution Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Shared workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sample uses of shared workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16
16
17
17
17
18
19
19
20
23
23
25
26
32
32
34
Chapter 2
35
36
36
37
37
43
45
47
48
Chapter 3
49
63
117
119
119
119
122
123
124
125
125
125
126
126
126
127
129
129
130
136
136
Chapter 5
137
138
140
145
146
147
148
149
151
154
158
160
Chapter 6
165
Understanding how buttons and menu items work with active links . . . . . . . . . . .
Creating and modifying menus and toolbar items . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Creating accelerator keys for your menu items . . . . . . . . . . . . . . . . . . . . . . . . . . .
Creating toolbar buttons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Associating active links with buttons and menu items . . . . . . . . . . . . . . . . . . . . . . . .
Deleting buttons and menu items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Modifier keywords for use in workflows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the modifier keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
166
167
169
169
170
171
172
172
Chapter 7
175
Workflow processing
176
177
178
178
7
193
215
Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Operator types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Operator precedence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Wildcards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Validating wildcard pattern matching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
NULL values, relational algebra, and AR System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
About the NULL value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Relational algebra and qualifications involving NULL . . . . . . . . . . . . . . . . . . . . . 241
NULL values and AR System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Appendix B
243
257
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
When to use a Run Process action or a Set Fields action with $PROCESS$ . . . . 258
Types of process commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Process command syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Server syntax for Application commands in an active link . . . . . . . . . . . . . . . . . . 259
Case sensitivity and using quotation marks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Syntax exceptionApplication commands with qualifications . . . . . . . . . . . . . . 260
Process commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Ability to change the form mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
Ability to modify data on display forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Ability to modify toolbar option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Ability to highlight required fields through workflow . . . . . . . . . . . . . . . . . . . . . 286
Sending events to the Data Visualization definitions . . . . . . . . . . . . . . . . . . . . . . . . . . 287
8
Appendix D
Workflow extras
289
290
291
292
293
294
295
296
297
300
301
302
303
303
Index
305
Contents
10
Preface
IMPORTANT
The compatibility information listed in the product documentation is subject to
change. See the compatibility matrix at http://www.bmc.com/support for the
latest, most complete information about what is officially supported.
Carefully read the system requirements for your particular operating system and
database, especially the necessary patch requirements.
Audience
This manual contains reference information and procedures for creating,
modifying, and maintaining AR System workflow objects, including active links,
filters, and escalations. It is written for developers and administrators who create,
customize, and maintain applications based on BMC Remedy Action Request
System (AR System).
To follow the procedures in this guide, you will need to be able to log in to
AR System with BMC Remedy Developer Studio as an administrator or
subadministrator, and you must also be able to use BMC Remedy User or the web
client. You should be familiar with BMC Remedy Developer Studio basics before
you begin. For an introduction to BMC Remedy Developer Studio, see the
Introduction to Application Development with BMC Remedy Developer Studio
guide.
AR System documents
The following table lists documentation available for AR System 7.6.04.
Unless otherwise noted, online documentation in Adobe Acrobat (PDF) format is
available on AR System product installation DVDs, on the Customer Support
website (http://www.bmc.com/support), or both.
Preface
11
You can access product help through each products Help menu or by clicking
Help links.
NOTE
The AR System product help has not been updated for version 7.6.04. The help
topics still apply to version 7.6.03. For the most recent content, refer to the PDF
documentation.
Title
Description
Concepts
Guide1
Audience
Installation Guide
Administrators
Introduction to Application
Development with BMC
Remedy Developer Studio
Developers2
Developers
Configuration Guide
Administrators
Administrators
Integration Guide
Optimizing and
Troubleshooting Guide
Database Reference
Administrators/
Developers/
Programmers
Administrators
C API Reference
Programmers
Programmers
12
AR System documents
Title
Description
Audience
Java API
Programmers
Information about Oracle Java classes, methods, and
variables that integrate with AR System. For the location of
the JAR file containing this online documentation, see the
information about the Java API in the Integration Guide.
Administrators/
Developers/
Programmers
Master Index
Everyone
Administrators
Release Notes
Everyone
Everyone
Developers
Administrators
Everyone
Administrators
Everyone
Administrators /
Developers
Administrators /
Developers
The full title of each guide includes BMC Remedy Action Request System 7.6.04
(for example, BMC Remedy Action Request System 7.6.04 Concepts Guide), except
Preface
13
the BMC Remedy Migrator Guide and BMC Remedy Encryption Security Guide.
Application developers who use BMC Remedy Developer Studio.
3 C and Java programmers who write plug-ins and clients for AR System.
2
Terminology note
In this guide, the term button refers to a button that you place in a form to execute
an active link; the term toolbar button refers to a button in a toolbar, which, in the
case of active links, is the toolbar in BMC Remedy User. A menu bar item refers to
the items displayed from a top-level menu in BMC Remedy User. Do not confuse
it with a menu attached to a field.
14
Chapter
Introducing workflow
This section introduces the three AR System workflow objects: active links, filters,
and escalations. By using workflow, you can define a set of processes to enforce
business rules such as approval and service level requirements, tracking defects or
assets, and so on.
For background information about workflow, see the Concepts Guide, Workflow,
page 37.
The following topics are provided:
15
Workflow basics
AR System workflow consists of active links, filters, and escalations that carry out
business processes. For information about what these three main types of
workflow, see Workflow objects on page 16.
All workflow objects include the following elements:
Workflow actions determine what an active link, filter, or escalation does when
it runs. See Specifying workflow actions on page 63.
You can use active link guides and filter guides to control the order of workflow
actions and organize a related set of workflow objects. See Defining guides and
guide actions on page 137.
Active links allow you to create workflow designed for user interaction. You can
use buttons and field menus with active links to assist the user. See Using buttons
and menu bar items to execute active links on page 165.
For information about how AR System processes active links, filters, and
escalations, see Workflow processing on page 175.
Workflow objects
Workflow objects automate your organizations business processes. You can create
active links, filters, and escalations to perform actions on one form or several
forms. When workflow is attached to multiple forms, it is considered shared
workflow. See Shared workflow on page 32 for more information.
Active links, filters, and escalations share many similarities, but also have several
differences that are described in this section.
16
Workflow objects
NOTE
Active links cannot be triggered through the use of an API program.
About filters
Filters implement and enforce your organizations business rules. A filter tests
every request transaction to see if certain conditions are met, and then responds to
the conditions by taking specific actions. For example, a filter can notify support
staff members when they are assigned responsibility for a new request.
Filters can act on virtually any condition that arises in a request. For example,
filters can restrict how users create or modify a request. As another example, a
filter can check for conditions in requests that are submitted by a network
management system for a device that the system is monitoring. Then, the filter can
automatically call a program to control that device.
Filters execute on the AR System server and run with administrator permissions.
This means that filters can access any field in the AR System database, even if the
field is not available to the user (no view or change access).
Filters can be grouped into filter guides to control the order of processing. For
more information, see Chapter 5, Defining guides and guide actions.
About escalations
An escalation causes a condition to be checked on a regular basis and, depending
on whether and how the condition is met, performs one or more actions. For
example, an escalation can set the priority of a request to Urgent if the request is
not closed within 24 hours, or send a page to a support staff member if a critical
request has not been addressed in one hour.
17
Workflow comparison
Table 1-1 summarizes the functionality of active links, filters, and escalations.
Table 1-1: Workflow comparison
Active Links
Where performed Client, current form
window
18
Filters
Escalations
Server
Server
Executed by
Purpose
Implement and
Initiate and ensure
enforce business rules timely actions
What they do
Start a series of
actions that are
conditionally
interpreted
At a specified time or
time interval, check
whether conditions
are met for requests
existing in the form,
and if so, perform
actions on requests
that meet conditions
Run with
permissions of
User
Administrator
Administrator
Example
A specific time
See
Entering change history (a record of an objects owner, the user Introduction to Application Development
who last modified the object, and the date of modification)
with BMC Remedy Developer Studio,
Updating change history, page 53.
Creating and modifying help text for objects
Creating a log file for tracing object activity (You can create a
record of an objects operation, including what executed and
whether it was successful.)
Right-click the If Actions panel heading, and then select Add Action.
19
Click the down arrow next to the Add If Action icon in the menu bar.
Add If Action icon
with down arrow
The procedures in this document describe using the right-click menu whenever it
is available.
20
Escalation
You can open multiple editing panels to create or modify the active links, filters,
and escalations that you have permission to administer. In Figure 1-1, a new active
link, the filter Sample:Enroll, and the escalation Sample:SetToCompleted are also
open.
TIP
To maximize the editor, double-click the tab. You can also use the Editor
perspective in BMC Remedy Developer Studio to make the editor area larger. See
Introduction to Application Development with BMC Remedy Developer Studio,
Opening an object for editing, page 48.
The tab label for each workflow object displays the following information:
When you create a new object, the tab label indicates whether you are working
on an active link, filter, or escalation.
The tabs icon also indicates whether the open object is an active link, filter, or
escalation.
After you save the workflow object, the tab label displays the name of the object.
When you make changes to a workflow object, an asterisk indicates that the
changes have not been saved. When you save the object, the asterisk disappears.
When you save a new active link, filter, or escalation, the workflow object title
changes to include the name of the object and the server it is located on. If the object
is part of an application, the application name also appears in the object title.
21
Table 1-3 provides an overview of the settings located in each of the expanding
panels in a workflow object. For specific information about configuring these
settings, see the referenced sections of this guide.
Table 1-3: Workflow editor panels
Panel label
Active links
Associated forms
See Associating
workflow objects
with forms on
page 36.
Execution options
See Defining
workflow
execution options
on page 37.
Filters
Escalations
Select the form or forms associated with the active link, filter, or escalation.
Identify the primary form, if there is more than one associated form.
Define the Run If conditions that determine whether the active link, filter, or escalation
will run.
Run If
See Chapter 3,
Building
qualifications and
expressions.
Error handler
See Error
handling filters
on page 187.
Not applicable
If Actions
See Chapter 4,
Specifying
workflow
actions.
Define the actions that execute when the Run If conditions are met.
Else Actions
See Chapter 4,
Specifying
workflow
actions.
Define the actions, if any, that execute when the Run If conditions are not met. The Else
action is optional.
22
Displays in a tree structure the form events and field events that have workflow
associated with them, thus outlining the events related to the form and its fields.
Synchronizes itself with the active Form editor when the Link with Form Editor
option is enabled.
The Event Navigator view can only be launched for one form at a time. See
Launching the Event Navigator.
23
The top-most parent node in the tree structure is the form node, which represents
the form whose event navigation is being viewed. Only those events that have
workflow associated with them are listed. When you open this view for the first
time or switch to a different forms view, all the nodes are collapsed. You must
expand each non-leaf node to view its details.
NOTE
The Event Navigator lists only those events that have workflow in the Enabled
state associated with them.
The first child node is Form Events, which lists the events and escalations
associated with the form. The time-based event nodes under Form Events might
vary based on the number and type of escalations.
The second child node is either Field Events or Fields, depending on whether the
View by Events or View by Fields option is set. Use the first two icons in the tab
group toolbar to specify your choice; they are mutually exclusive. For more
information, see Tab group toolbar buttons in the Event Navigator on page 25.
NOTE
When viewing by events, a field can appear under multiple event nodes
depending on the events on which the workflow is fired.
The Show Workflow context menu is enabled only for the leaf nodes, whether it is
a field or an event.
24
View by Events ( )Click to display the list of fields sorted by events. Expand
the individual event nodes to view the fields to which they belong.
View by Fields ( )Click to display the list of events sorted by fields. Expand
the individual field nodes to view the related events.
Link with Form Editor ( )The Link with Form Editor button on the tab
group toolbar works as follows:
When selected, it links the Event Navigator with the active Form editor. This
is useful when you want to watch the event navigation for a form being
edited. When you select a field or event node in the Event Navigator, the
appropriate field in the Form editor gets selected.
If you switch a different form in the Form editor, the Event Navigator
displays the events of the currently active form.
If you reload the Event Navigator for a different form by using the Show
Event Navigator menu in the Object List view, then the events for the new
form are displayed. However, because Link with Form Editor is selected,
switching to the previous form in the Form editor displays its events again.
When deselected, the automatic synchronization is switched off, and you need
to manually launch the Event Navigator from a form being edited. See
Launching the Workflow Execution Viewer.
If the Form editor view is not open, then the state of the Link with Form Editor
toggle button has no effect. The Event Navigator displays the events of the form
from which you trigger the command.
BMC Remedy Developer Studio, select Event Navigator, and click OK.
25
NOTE
The Show Event Navigator menu is only available in the Object List view for
forms. This menu is disabled if you select multiple forms in the Object List view.
26
Form events
A form event could be one of many events that occur in sequence, in which case
previous events may affect the current event. For example:
When a form is opened, depending on the mode, the On Window Loaded event
occurs, followed by On Display or On Window Opened.
When an Apply action is performed, depending on the mode, the active link
Modify or active link Submit, active link After Modify or active link After
Submit, and Filter On Submit events occur sequentially.
For more information about form operations, see Active link processing on
page 176.
Table 1-4 lists the form events (excluding those triggered by user actions) that can
be depicted in the Workflow Execution Viewer.
Table 1-4: Form operations depicted in the Workflow Execution Viewer
Super event
Component events
Save Modified
Description
AL-On Modify
Filter- On Modify
Filter-On Get Entry
AL-On After Modify
27
Component events
Save New
Search
Description
AL-On Submit
Filter-On Submit
Filter-On Get Entry
AL-On After Submit
AL-On Set Default
AL-On Search
AL-On Window Close
AL-On Window Open
Filter-On Get Entry
AL-On Display
Side-effect events
Actions in the workflow objects can trigger some other events, for example:
The Gain Focus event on a field can cause a Lose Focus event on some other
field, which is difficult to capture.
The Change Field action can trigger many events like Table Refresh, Gain Focus,
and so on, which might have further workflow associated with them.
The Push Fields action can trigger Modify, Submit, or Create events on the
server, which in turn may have many filters associated with them.
Some special Run Process commands in active links can trigger events.
display-only, vendor, or view) on the left and the form name on the right. It
represents a form object, and is included to show the source of an event. In most
cases, a form and its fields are the sources of events.
2 TransitionAppears as a simple, directed line. The arrow head in a transition
indicates the direction of flow of control between actions within a workflow object
or between workflow objects.
28
Some transitions have labels associated with them. A label could be an event name,
which indicates that the following workflow is triggered on that event. A label
could also indicate the condition on which the transition occurs. For example, a
transition from a Run-If qualification to the first action in the workflow can be
labeled Y, indicating that the transition occurs if the Run-If condition is satisfied.
If accompanied by a plus sign (+), it indicates that super events are associated with
the parent node. Click the plus sign to launch the super events.
3 Workflow object nodeAppears as a rectangle that contains the object type icon
(active link, filter, or escalation) on the left and the object name on the right. The
number on the node represents the execution order of that workflow object. If
accompanied by a plus sign (+), it indicates that the node can be expanded to views
its qualifications and actions.
4 Qualification nodeAppears as a rhombus that contains the qualification name.
Depending on the possible outcomes, one or more flows can originate from a
qualification node.
5 Action nodeAppears as a rounded rectangle that contains the action name. If
The action node has side-effect events associated with it; click the plus sign to
launch the side-effect events.
The action node indicates a Call Guide action; click the plus sign to expand the
details-the guide name and its associated actions are displayed.
indicating that the workflow actions have been completed and no further activity
will take place for this workflow.
29
Generally, after the execution of a workflow action is completed the flow proceeds
to the next action. However, in some cases, the flow might not proceed
sequentially. For example:
If the workflow being executed is contained in a guide, then actions such as Exit
Guide and Goto Label can cause the flow to proceed either to the end of the
guide execution or to some other node in the guide.
For a Push Fields or Set Fields action, if a side-effect event is defined for the
records that match the Run-If qualification, a plus sign appears next to the node.
You can click the plus sign to expand and view the side-effect event.
If a developer specifies the Display No Match Error option, then the workflow
diagram depicts that:
30
The flow associated with the failure of this qualification proceeds directly to
the end of the workflow node.
The flow associated with the success of this qualification proceeds to the next
action.
For a Message action, if the message type is Error, then the flow proceeds
directly to the end of the workflow node.
OpenRight-click a node and select Open from the context menu to open the
object in an editor. For example, an action node opens in the workflow editor.
DocumentSelect one or more nodes and choose Document from the context
menu. The Document Objects dialog appears with the selected nodes already
added to the Select Objects panel. You can then proceed to document the
selected objects by using the Documenter tool.
PrintSelect one or more nodes and click File > Print. On the Print dialog, select
an option from the Diagram Print Range. Alternatively, right-click an empty
region in the Workflow Execution Viewer and use the File > Print context menu.
ZoomUse the Zoom In or Zoom Out toolbar buttons to zoom in or zoom out
of the current diagram.
Show workflow detailsHover over an action node to see its workflow details
as a tool tip. The tooltip displays details similar to those seen in the active link,
filter, and escalation editors when their actions are in the collapsed state.
MarqueeUse the Marquee tool to select one or more nodes in the Workflow
Execution Viewer. A dotted rectangle appears when you click and drag the
mouse in an empty region, and all the nodes located in that region are selected.
To select a node, you need to cover the complete area of that node; it does not
get selected if you drag the mouse partially over the node.
The Marquee tool is useful when you want to perform the Save As Image File,
Open, Document, Expand, or Collapse operations on multiple nodes (those
selected by the marquee and not all the nodes or a single node).
31
Field events like Gain Focus, Button Click, Menu Choice, and so on
If the field does not have any workflow associated with it, the context menu
appears as Show Workflow > No Workflows.
The Show Workflow menu is also available in the Outline view.
NOTE
The Show Workflow menu is not available for newly created forms and fields
unless you commit the changes so that they are saved on the server.
Navigator.
The Show Event Navigator menu is also available for fields listed in the Outline
view.
2 From the context menu of an event in the Event Navigator, select Show Workflow.
NOTE
The Show Workflow menu works only with a single event. If you select multiple
events in the Event Navigator, this menu is disabled.
Shared workflow
In AR System, all workflow (active links, filters, and escalations) is based on forms.
Workflow can be attached to one or multiple forms. For example, you can create
an employee information active link that populates generic identification and
address fields anytime a user enters a name or use this on multiple forms.
32
Shared workflow
Shared workflow lets you efficiently build, maintain, and troubleshoot versions of
forms and applications. Fewer workflow objects need to be stored on the server
because any changes you make only need to be made once for all forms that use
the objects.
WARNING
Use caution when sharing active links among forms in different deployable
applications. Role permissions are resolved based on which application has
ownership. The deployable application that contains the active link's primary form
owns that active link or active link guide. If the non-owner application has
identical roles mapped to different groups, these mappings are ignored. If only
implicit groups have permission (no role permissions), there are no conflicts. For
more information, see the Form and Application Objects Guide, Defining access
control, page 21.
The way you define shared active links, filters, or escalations is similar to the way
you define workflow for an individual form. The main difference is that instead of
attaching the workflow to one form, you attach it to multiple forms. If you do not
want the workflow to be shared, select only one form. See Associating workflow
objects with forms on page 36.
Workflow actions interact with fields based on field ID (not the field name). Plan
carefully how you will use shared workflow before attaching it to multiple forms.
To make it easier to administer shared workflow, create fields with the same ID
and the same field name on each form. Otherwise, the workflow might not fire or
the shared workflow actions might still be triggered but might not use the
expected field. If fields have matching IDs but are different data types, AR System
attempts to convert them appropriately.
After you have created a form with which you want to share workflow, you can:
33
34
Chapter
35
click OK.
TIP
To locate a form quickly in a long list, you can use the Filtering Options or the
Locate field in the Form Selector dialog box. See the Introduction to Application
Development with BMC Remedy Developer Studio guide, To filter the contents in an
object list, page 38.
5 To associate the workflow object with an additional form, repeat steps 3 and 4.
The workflow object is attached to all of the forms you select. The first form you
select automatically becomes the primary, or reference, form for the active link,
filter, or escalation. See About the primary form.
6 To change the primary form in cases where you have associated more than one
form to the workflow object, select a different form from the Primary Form dropdown list.
36
An active link executes when the user presses Enter in a specified field or clicks
a button on the form.
An escalation executes when a request more than eight hours old has not been
closed by support personnel.
Field-based options
37
panel if necessary. See Associating workflow objects with forms on page 36.
3 Expand the Execution Options panel.
4 Set the State field to Enabled or Disabled.
When the state is Enabled, the active link becomes active as soon as it is saved. You
might want to set the state to Disabled during development or when
troubleshooting.
5 If necessary, enter a number in the Execution Order field.
The value that you enter in the Execution Order field determines the order in
which this active link is executed relative to other active links with the same
triggering conditions. Numbers between 0 and 1000 are valid execution order
values; lower numbers are processed first. The default value is 0.
6 Select the execution options for request and window actions, if any.
The execution options for request and window actions that trigger active links are
described in Table 2-1 on page 39. You can select any combination of these
execution conditions, or none of them, as appropriate. If you select multiple
options, the active link or filter executes when any one of the selected operations
occurs.
7 Define the execution options for field actions, if any. To do so:
a Click the Field ellipsis button.
The fields that appear in the field list are taken from the Primary Form defined
in the Associated Forms panel.
To locate a field quickly in a long list, use the Filtering Options or the Locate field
in the Field Selector dialog box. See the Introduction to Application
Development with BMC Remedy Developer Studio guide, To filter the contents in
an object list, page 38.
TIP
Instead of clicking the ellipsis button, you can also press Ctrl+Space with the
cursor in the Field field. This brings up a list of the available fields from the form.
Begin to type the field name to narrow the list, and then select the field you want.
b Select the appropriate field from the Field Selector dialog box and then click OK.
When you select a field, the field execution options appropriate to the field type
become active. The field-based, button, and menu execution options for active
links are described in Table 2-2 on page 41.
c Select one or more field execution options for the field.
38
8 To cause the active link to execute when the user clicks a button:
a Click the Button/Menu Field ellipsis button.
b Select the appropriate button field and then click OK.
TIP
You can also associate an active link with a button by selecting the active link in
the buttons field properties.
9 In the Interval field, select an execution interval, if any. The minimum interval is
WARNING
In workflow triggered by the Interval condition, avoid the use of Message actions
and Open Window (of type Dialog) actions. This is to prevent an uncontrolled loop
of messages or opened windows, which could consume resources on the client
computer and make it difficult for the user to close the form.
Table 2-1 describes active link execution options relevant to request and window
actions.
Table 2-1: Active links: Execution options for request and window actions (Sheet 1 of 3)
Execution option
Description
After Modify
After Submit
Executes after a user submits a new request and after the request
is written to the database. If the submission fails, the active link is
not executed.
If you use this condition for a set fields action on the current entry,
the set value is not stored in the database.
Copy To New
39
Table 2-1: Active links: Execution options for request and window actions (Sheet 2 of 3)
Execution option
Description
Event
WARNING
In some cases, event driven workflow can fail when
executed on the mid tier. To avoid this issue, explicitly
define the parent-child relationship.
Modify
Search
40
Set Default
Executes when the user chooses Edit > Set to Defaults from the
menu bar. It can also happen after Window Open if default field
values have been set in the form through user preferences.
Submit
Un-Display
Window Closed
Table 2-1: Active links: Execution options for request and window actions (Sheet 3 of 3)
Execution option
Description
Window Loaded
Executes after all the data values have been loaded into a Submit
or Search window (from defaults, from a Copy to New action, or
from an Window Open action).
Window Open
Table 2-2 describes active link execution options relevant to field actions.
Table 2-2: Active links: Field-based execution options (Sheet 1 of 3)
Execution option
Description
Button/Menu Field
Collapse
For Accordion and Stacked panel fields, executes when the user
collapses a panel field.
For tabbed panel fields, executes with the user leaves the tab.
For a panel field of the Splitter type, this option causes no action.
Drag
Executes when the mouse moves over a field, and the user presses
the left mouse button and drags the mouse. See Allowing data to
be dragged and dropped on page 290.
Drop
Expand
For Accordion and Stacked panel fields, executes when the user
expands a panel field.
For Tabbed panel fields, executes when the user selects the tab.
For a panel field of the Splitter type, this option causes no action.
41
Description
Gain Focus
Executes when the specified field receives the focus. If you choose
this option, the Field list is enabled so that you can specify the field
that causes the active link to execute.
Note: If you use the Gain Focus condition to execute an active link
Executes when the user hovers the mouse pointer over a field, field
data, or a field label in the Web client. Along with the Message
active link action, enables the use of tooltips to display a brief
informational message.
If the selected field is a data field, all three options are enabled. If
the selected field does not have distinguishable label and data
areas, only the Hover on field option is enabled.
For information about creating tooltips, see Message action on
page 88.
Level Choice
Lose Focus
42
Description
Return
Row Choice
Row Double Click or Appears when the selected field is a table field type. Executes
Return
when a user double-clicks a row in a table field or selects a row and
then presses Enter to drill down to the source form. This execution
condition works independently of whether the table drill-down
option has been selected for the table field.
This execution option works only if the user has been granted
permission to fields on the supporting form, the column fields,
and the table field.
Table Refresh
Creating filters
Filter execution options cause the filter to execute based on actions that occur on
the AR System server for requests in the reference form.
If a filter is part of a guide, you do not need to select an execution option. If an
action generates an error during the processing of a filter, no further actions occur.
43
When the state is Enabled, the filter becomes active as soon as it is saved. You
might want to set the state to Disabled during development or when
troubleshooting.
5 If necessary, enter a number in the Execution Order field.
The value that you enter in the Execution Order field determines the order in
which this filter is executed relative to other filters with the same triggering
conditions. Numbers between 0 and 1000 are valid execution order values; lower
numbers are processed first. The default value for filters is 500.
NOTE
Although filters are processed in execution order, some filter actions are queued
up to be performed at a later time. For information about filter phases, see Filter
processing in the AR System server on page 177.
6 Select the filter execution options, if any.
Filter execution options are described in Table 2-3. You can select any combination
of these execution conditions, or none of them, as appropriate. If you select
multiple options, the active link or filter executes when any one of the selected
operations occurs.
Table 2-3: Filter execution options
Execution option
Description
Modify
Submit
Delete
Get Entry
Merge
Service
44
Creating escalations
An escalation uses a schedule to determine when it is executed, using either a set
time or a time interval. When you are working with an escalation, the settings in
the Execution Options panel change depending on whether you select Time or
Interval in the Run By field.
TimeTime escalations run at the specified times, for example, every Monday,
Wednesday, and Friday at 10:00 a.m., 2:00 p.m., and 4:00 p.m. The time
specification permits recurring execution on multiple days of the month and
days of the week at a fixed number of minutes after multiple hours in the day.
IntervalInterval escalations run after the defined time interval has passed, for
example, every 30 minutes. You can select any combination of days, hours, and
minutes.
NOTE
Because an escalation can apply to many requests, it can require significant
computer resources to perform its Run If test and its actions. Therefore, consider
the performance impact when constructing the Run If test and scheduling
escalations. To distribute the load, vary escalation times or use escalation pools.
NOTE
There might be irregularities the first time escalations execute after Daylight
Saving Time (DST) transitions. For example, an escalation is scheduled to run at
12:00 noon every Monday. On the first Monday after clocks are set ahead, the
escalation runs at 1:00 p.m. instead of at noon. On the first Monday after the clocks
are set back, it runs at 11:00 a.m. and again at noon.
45
When the state is Enabled, the active link becomes active as soon as it is saved. You
might want to set the state to Disabled during development or when
troubleshooting.
5 To assign an escalation to an escalation pool, enter the pool number in the Pool
Number field.
The Pool Number should be between 1 and the number of threads configured for
the escalation queue. If the Pool Number is blank or outside the valid range, the
escalation is assigned to pool number 1 and is run by the first escalation thread.
See About escalations on page 17 for how to use escalation pools.
6 In the Run By field, select Time.
7 Define the execution run times by selecting the appropriate options from the Days
You must select at least one day of the month or one weekday from Days of
Month or Days of Week, and at least one time from Hours of Day.
Selecting 31 causes the escalation to run on the last day of the month for all
months.
To run the escalation at a certain number of minutes after the hour, select the
hour and then type the number of minutes in the Minutes after Hour field. For
example, for 5:15PM, select 5:00PM, and type 15 in the Minutes after Hour
field.
You can combine selections from the Days of Month and Days of Week menus.
For example, if you select 15 and 31 from the Days of Month menu and Fridays
from the Days of Week list with 10AM from the Hours of Day menu, the server
executes the escalation on the 15th and 31st and all Fridays during the month. If
a Friday occurs on a 15th or 31st, the server executes the escalation only once.
TIP
Clicking the time criteria menus has a toggle action. For example, click Friday to
add Friday to the time criteria; click Friday again to remove it.
8 Expand a Run If Qualification panel, and enter a qualification, if needed.
46
interval.
The interval begins when you create, modify, or enable the escalation, when the
server is restarted, or when the escalation terminates. For example, if you enable
an escalation with a 30 minute interval, it executes 30 minutes after you enable it.
If the escalation takes five minutes to complete, it executes again 65 minutes after
you enabled it (which is 30 minutes after it terminated).
4 Expand a Run If Qualification panel, and enter a qualification, if needed.
Active links
Filters
Escalations
Permissions
Change
history
This object property automatically records the owner, the user who last modified the object,
and the date of the modification. You can also enter a description of your changes.
Help text
Enter help text to describe what the workflow object does or how it is used.
Not applicable
You can modify some of these properties, including the permissions for active
links and the help text for all workflow objects. For information about setting and
changing object properties, see the Introduction to Application Development with
BMC Remedy Developer Studio guide, Working with existing objects, page 48.
47
48
Chapter
Chapter 3
49
Click the ellipsis button on the appropriate field to open the Expression Editor
dialog box, and then build the Run If qualification or other expression by
selecting fields, keywords, and operators.
In the workflow editor for the object, type the expression into the field with the
help of the content assist feature.
Run If qualifications and other expressions can contain any valid sequence of
operators, wildcards, and keywords, as shown in the following examples:
'Submitter' LIKE "Jackson%"
'Create Date' < $TIMETSTAMP$ - (60*60*24)
NOTE
Microsoft SQL Server and Sybase RDBMSs remove hard returns at the end of
character strings. This can result in incorrect qualification syntax. To resolve this
problem, AR System adds a space before any hard return at the end of a string.
Chapter 3
51
If you type a single quote () in the field where are building an expression,
content assist provides the list of available fields from the associated form.
Figure 3-2 shows an example of this when building a Run If qualification.
If you type a dollar sign ($) in the field where are building an expression, content
assist provides the list of AR System keywords.
If you press Ctrl+Space in the field where are building an expression, content
assist provides a list of all the available data types.
The content assist list is grouped by data type, such as fields, keywords, and
functions. Within each data type the list is sorted alphabetically.
The list is filtered according to any characters you have already typed so far. For
example, if you enter 'S, the list is immediately filtered to show only the field
names beginning with the letter s (such as Short Description, Status, and
Submitter).
NOTE
If you type an incorrect character or click elsewhere on the screen, the content
assist list might disappear. If this occurs, delete what you have typed so far and
retype the quote, or dollar sign, or press Ctrl+Space, to reactivate it.
Figure 3-2: The content assist feature
52
NOTE
If the field name includes a single quotation mark, enter two single quotation
marks in its place. For example, if the field name is Dougs Requests, enter it as
'Doug''s Requests'.
Currency fields
For currency fields, you must have one of the following enclosed within single
quotation marks:
The name of the currency field, followed by a period and a specific portion of
the currency fields value, such as the date or a functional currency value, for
example:
'currencyField.VALUE' < 5000
If the qualification for the currency field includes a calculation, you must
include the currency type to avoid an error. For example, if you have a field
called Tax Savings that displays the percentage of tax savings of a field that
calculates the difference of two billing fields, determine the percentage by using
a qualification like this:
($Billing Totals Difference.VALUE$ * $Current Tax Rate$) /
("100 + $Billing Assessment Total Difference.TYPE$)
If you use field references in the calculation, you do not need to supply the
currency type; it is determined at run time. For example:
($Billing Totals Difference.VALUE$ * $Current Tax Rate$) /
$Integer field that stores the division number$
Attachment fields
The value of an attachment field used in a qualification is a character string
containing the fully qualified file name of the attachment file.
Chapter 3
53
To enter multiple groups, roles, and user names in your qualification, enter a
semicolon at the beginning of the list and include no spaces. For example, the name
of field 112 is Assignee Group. To create a qualification that includes the Sales Staff
group (ID 50), the Marketing Staff group (ID 51), the Managers role (ID -90), and
user Mary Manager, enter the qualification using the following format:
'Assignee Group' = ";50;51;-90;'Mary Manager';"
To use multiple groups for field ID 112 and for dynamic group fields, select Enable
Multiple Assign Groups on the Configuration tab of the AR System
Administration: Server Information form. See the Configuration Guide, Server
InformationConfiguration tab, page 128.
54
In BMC Remedy Developer Studio, the auto-complete feature and the field selector
dialog box manage this syntax convention for you.
Use
Notes
Quotation
Marks?
Nonnumeric, Yes
such as time,
character,
and diary
Nonnumeric
that include
quotation
marks
Yes
Integers (for
time fields)
No
Keywords
No
Chapter 3
55
The name or index of the status value that you want to match (followed by a
period).
The keyword USER (for the user who is changing the status) or TIME (for the time
that the status changed).
For example:
'Status History.Fixed.TIME' < "07/01/99"
This syntax is created automatically when you select the Status History reference
from the Run If list.
In a filter qualification, you can use a Status History reference if you are checking
values in the database; Status History is not meaningful if you are trying to check
the value of the current transaction. (For more information, see Checking
transaction versus database values on page 58.) You cannot use Status History
references in active link Run If qualifications or you cannot set the Status History
value to a field in an active link set fields action.
56
Use indexed fields. Tests of indexed fields use the index to access the requests
instead of scanning all requests. For information about indexing, see:
The Form and Application Objects Guide, Defining indexes, page 181
Avoid the following searches, which cause a full scan of a database table:
The != Operator
Searches using the != operator check every record to see if the value is not
contained. If you have created indexes on a field, they are not used. Instead,
design your qualifications to retrieve what you are looking for, instead of
what you are not looking for. For example, you can rewrite the search
qualification Status != "Closed" to 'Status' < "Closed" to improve
the use of an index.
The != operator does not match entries in which the value for the field is NULL.
You must explicitly include a test for NULL to find NULL values. For example,
'Status' != "Closed" does not search for cases where the Status field is
empty. You must use the following syntax:
'Status' != "Closed" OR 'Status' = $NULL$
NOTE
On Sybase databases, you cannot use the != operator against unlimited character
fields where the database input length equals 0.
Chapter 3
57
NOTE
If the database is case-sensitive, any queries run by active link workflow are casesensitive. For an Oracle database, you can set the Db-Case-Insensitive option
in the ar.cfg (ar.conf) file to support case-insensitive searches. However, this
option can have a negative impact on performance.) See the Configuration Guide,
Db-Case-Insensitive1, page 361.
For more information about optimizing AR System searches, see the Optimizing
and Troubleshooting Guide., Defining effective searches, page 35.
58
Database OnlyReferences the value of the field in the database only. No check
is made of the value in the current transaction. If the operation is a create
operation, it is considered to be $NULL$. To specify a reference of the database
only, use the format 'DB.field' when you enter the field name in the Run If
field.
The TR. syntax causes the filter to use the value from the current transaction, rather
than the database value.
T IP
To manually type the expression, start by typing a single quote. BMC Remedy
Developer Studio pops up a list of available fields. You can also type TR, and then
select from the list of available fields. If you enter an expression by hand, make
sure to use correct spelling, punctuation, keywords, and quotations.
Chapter 3
59
The qualification searches for requests where the time that the request was created
is less than the current time minus 10 hours. This example uses a status history
reference as one of its values.
In this case, New is the Status value that you want to match and TIME is the
keyword for the time that the request was entered.
3 Click the less than (<) operator to add it to the end of the expression:
'Status History.New.TIME' <
4 Expand the Keywords list, select $TIMESTAMP$, and then click Add Keyword:
'Status History.New.TIME' < $TIMESTAMP$
5 Click the minus sign () operator:
'Status History.New.TIME' < $TIMESTAMP$ 6 Enter an hour value, for example (60 * 60 * 10):
'Status History.New.TIME' < $TIMESTAMP$ - (60 * 60 * 10)
See Double quotation marks on page 55 for information about entering time
values.
7 Click OK to save the qualification.
60
Add Field:
'Status'
3 Click the not equal (!=) operator to add it to the end of the expression:
'Status' !=
4 Position the cursor at the end of the line, and then type DB. (including the
period):
'Status' != 'DB.
Content assist presents the list of available fields, prefixed with DB.
5 Double-click DB.Status to select it from the list:
'Status' != 'DB.Status'
6 Click OK to save the qualification.
Chapter 3
61
62
Chapter
This section describes how to use BMC Remedy Developer Studio to create and
modify all types of workflow actions, including elements common to creating most
or all workflow objects, and specific procedures for defining each type of workflow
action.
The following topics are provided:
Chapter 4
63
TIP
To maximize the workflow editor window when working on an active link, filter,
or escalation, double-click the tab for the workflow item. To return to the main
BMC Remedy Developer Studio view, double-click the tab again.
64
A filter qualification looks for hardware in the Problem Type field and, if
found, the If action assigns the request to a hardware support person.
An escalation qualification looks for any requests more than two hours old that
have New in the Status field and if found, the If action assigns the matching
requests to a manager.
Else actions are optional. They execute when the qualification is not met. For
example:
A filter qualification looks for hardware in the Problem Type field, and, if not
present, the Else action assigns the request to a software support person.
An escalation qualification looks for any requests more than two hours old that
have New in the Status field. If none are found, the Else action sends an email
notification reporting this fact to a shared status log account.
Chapter 4
65
See the Introduction to Application Development with BMC Remedy Developer Studio
guide, Creating objects, page 46, and Introduction to Application Development with
BMC Remedy Developer Studio guide, Working with existing objects, page 48.
2 Specify the associated form, the execution options, and the Run If qualification if
BMC Remedy Developer Studio adds the new action below any existing actions.
5 In the new action, define the settings for the action as necessary. See the
66
6 To create additional actions, repeat steps 3 through 5 for each new action.
7 Save the active link, filter, or escalation.
To save an active link, filter, or escalation, use either Ctrl+S, the menu option
File > Save, or the Save icon in the icon bar.
existing actions.
3 In the list of actions, click the appropriate action to expand it.
4 Make changes to the action.
5 Save the active link, filter, or escalation.
existing actions.
3 In the list of actions, right-click the action to be deleted, and then select Remove
Chapter 4
67
TIP
When editing a field mapping table, you can use the Tab key and arrow keys to
move between cells in the table.
For a form that contains a large number of fields, you can use one of the methods
in the Filtering Options or Available Fields areas to locate the appropriate field:
NameTo locate a field by name, begin to type the name in the Name field of
the Field Selector dialog box. The list narrows to display only field names
beginning with the characters you type.
Field CategoryTo locate a field by field type, select the checkbox for that type.
LocateTo locate the field name in the list while still displaying all the field
names, begin to type the field name in Locate field.
To add a field to the table with the Field Selector dialog box
1 Click in an empty row of the Field column.
The fields listed depend on the associated forms for the action and the type of
mapping appropriate for the action.
Chapter 4
69
The Expression Editor dialog box opens. Figure 4-5 shows an example of the
Expression Editor dialog box in a Set Fields action, with a value being defined for
the Short Description field.
Figure 4-5: Expression Editor dialog box, Set Fields example
70
3 In the Expression Editor dialog box, build an expression to define the value:
To use a value from another field in the current request, select the field from the
Available Fields list.
To use the current value of a keyword, select it from the Keywords list.
To set a static value in the field, enclose the value in quotes in the expression.
For example, to set a field value that tracks what user modified the form and
when, create an expression like the following:
"Request modified by " + $USER$ + " on " + $Modified Date$ +"."
In Set Fields, Service, and Push Fields actions, you can also use the results of
data operations in the expression. For more information, see the descriptions of
those workflow types in this document.
4 When the expression is complete, click OK to close the Expression Editor dialog
To define a value for the table by using the content assist feature
1 After entering a field in the Field column, click the same row in the Value column.
2 Begin typing the expression. For example, to select a field name, type a single quote
() or press Ctrl+Space.
NOTE
When you map fields, BMC Remedy Developer Studio does not automatically
validate the field types or prevent you from mapping fields of different types. If
you map fields of different types to each other, AR System converts the values at
runtime.
Chapter 4
71
Call Guide
Source
Open Window
Source
Push Fields
Destination
Service
Source
Set Fields
Source
NOTE
For information about configuring a dynamic data destination, see Push Fields
action on page 119.
When you select the SAMPLE DATA data source in the workflow editor, the fields
in the editor change to enable you to specify the following items:
72
Figure 4-6 shows an example of a Set Fields action being configured to use
SAMPLE DATA.
Figure 4-6: A Set Fields action with SAMPLE DATA as the data source
At runtime, these
variables specify the
server and form to use as
the data source
These fields identify the
sample server and form
to use to map values
in the workflow object
at design time
The field on the primary form that will supply the source server name, for
example, $WorkflowServer$.
If the source server is to be the users current server, the $SERVER$ keyword.
6 Click OK.
7 In the Runtime Form Value field, click the ellipsis button.
8 In the Field/Keyword selector dialog box, select one of these items:
The field on the primary form that will supply the source form name, for
example, $WorkflowForm$.
A keyword to supply the source form name, such as $SCHEMA$ or $SCHEMAALIAS$.
Chapter 4
73
9 Click OK.
TIP
You can also use content assist to enter a field name in the Runtime Server Value
and Runtime Form Value fields. To do so, enter a dollar sign ($) or press
Ctrl+Space in the field. A list of fields in the primary form appears; select the
appropriate field. If you enter field names manually, use variable format (for
example, $WorkflowServer$).
10 (Active links only) In the Sample Server Name field, select the server that has the
workflow editor.
For workflow that uses a Run If Qualification, you can use fields from both the
primary form and the sample form in the qualification. The field types and field
IDs on the sample form and the corresponding runtime form must match.
When mapping fields to values in the field mapping table, the fields you can select
in the Values column come from the form identified in the Sample Form Name
field. If fields with the same IDs on the sample and runtime forms have different
data types, the general conversion rules apply. See Server-side table field
implementation issues on page 164.
74
Active links
Filters
Call Guide
Escalations
Page or book
page 76
Change Field
page 77
Close Window
page 81
Commit Changes
page 82
DDE
(BMC Remedy User only)
Integration
Guide
BMC Remedy
Distributed
Server Option
Guide
page 83
Direct SQL
Exit Guide
page 86
Go to Guide Label
page 86
Goto
page 87
Log to File
Message
Notify
page 88
page 88
page 95
OLE Automation
(BMC Remedy User only)
Integration
Guide
Open Window
page 102
Push Fields
Run Macro
(BMC Remedy User only)
Run Process
page 124
Service
page 127
Set Fields
page 129
Wait
(BMC Remedy User only)
page 119
page 123
page 136
The following sections describe how to define workflow actions. These procedures
are the same whether you create If Actions or Else Actions.
Chapter 4
75
Active links
Filters
The Call Guide action starts a filter guide or an active link guide that is not an entry
point. For example, you might have a guide that runs a series of active links to get
information from the user, or a guide that walks a table field when the user clicks
a button on a form. To start that guide, you create an active link that contains a Call
Guide action. For more information about active link guides and filter guides, see
Defining guides and guide actions on page 137.
Active links and filters that execute in the context of guides are triggered by the
guide and not by their Execute On conditions. When a guide executes an active
link or filter, any Execute On conditions are ignored. The Call Guide action triggers
the first or the specified active link or filter in the guide and every active link or
filter that follows.
You can use the Call Guide action to loop through the rows of a table field (also
known as table walk). For more information, see Using active link guides in
client-side table fields on page 151.
To call a guide that exists on a server to which you are logged in, select SERVER,
and go to step a.
For filters, you cannot select a different server. The called guide must exist on
the current server.
To enable the server (active links only) and guide to be specified at runtime,
select SAMPLE DATA, and go to step b.
a (Data Source is SERVER) Select the Server (active links only) where the guide
Servers that appear in the Server Name list are those to which you are
currently logged in.
To select the Guide Name, click the ellipsis, and then select from the list of
available guides.
For active links, the Available Active Link Guides list includes all active link
guides on the server you selected. For filters, the Available Filters List includes
all filters on the current server.
For active link guides, if the guide being called is not connected to the form
where the active link is running, a new window opens.
76
b (Data Source is SAMPLE DATA) Define the variables that will determine the
For active links, enter an expression in the Runtime Server Value field to
determine the server name at runtime.
In the Runtime Guide Value field, enter an expression to determine the guide
name at runtime.
For example, enter the keyword variable $SERVER$ in Runtime Server Value
and the field variable $GuideName$ in Runtime Guide Value. Use the typing
assistant or click the ellipsis and use the Field/Keyword Selector dialog box.
For more information about using the SAMPLE DATA data source, see Using a
dynamic data source or destination in workflow on page 71.
4 In the Table Loop field, select the appropriate option:
If this Call Guide action will loop through the rows of a table, select All Rows or
Selected Rows Only (active links only).
For active link guides, the Selected Rows Only option can significantly improve
the performance of table loop guides because the looping action is performed
only on the selected rows, and not on every row in the table field.
For information about using table loop guides, including additional
performance tips, see Using active link guides in client-side table fields on
page 151 and Using a filter guide to loop through a table field on page 160.
WARNING
AR System does not allow a Call Guide action that calls the guide itself. However,
AR System allows recursive call guides; for example, CallGuide1 calls CallGuide2,
and then CallGuide2 calls CallGuide1. You can create this scenario, but be aware
that an infinite loop can occur. If this happens, BMC Remedy User hangs and the
mid tier generates a Sun JavaScript error.
Active links
The Change Field action changes specified characteristics of fields in the current
window. (This action does not change field properties in the database.)
Based on conditions when the active link executes and on the field type, you can:
77
Change the color of the field label. (Not supported for tree view table fields.)
Field NameClick the ellipsis button. In the Field Selector dialog box, select the
field whose characteristics you want to change.
Field ValueSelect a field whose runtime value will be the name of the field to
change. This option enables you to select the field to change dynamically by
using workflow. See Creating a dynamic Change Field action on page 79
If you selected Field Name in step 3, the list of attributes is determined by the
selected fields type.
If you selected Field Value, all field characteristics appear. Attributes that are not
applicable to the field type selected at runtime are ignored.
To leave an attribute unchanged, select Unchanged (the default).
Field AccessChanges the Field Access field property to Read Only, Read/
Write, or Disabled (for data fields) or to Enabled or Disabled (for trim, control,
and tree view table fields).
Field FontChanges the field label font to the specified AR Fonts style, such as
Edit Field or Header Text (I). Not supported for tree view table fields.
78
MenuChanges the menu attached to a field: Select Changed, and either enter
the name of the new menu or click the ellipsis button to select the new menu
from the Menu/Keyword Selector.
If a menu is not attached to the field, you cannot change to a different menu.
To hide the menu icon, select the $NULL$ keyword from the Menu/Keyword
Selector. This allocates space on the form for the icon. If you later use the Change
Field action to attach a different menu, the menu icon reappears without
affecting the form layout. For information about creating menus, see the Form
and Application Objects Guide, Creating menus, page 299.
Field LabelChanges the field label: Select Changed, and either enter a new
label in the text box or click the ellipsis button and select a field reference from
Field Selector. If you leave the text box empty, the field label appears blank.
WARNING
Changing field labels can affect the layout of the form. For example, long labels
might be truncated or the field might change position on the form. Leave enough
room around the field to handle the changed label size.
Label ColorChanges the field label color: Select Custom, and select a color
from the color palette. To reset the color to its default setting, select Default.
Set Focus to FieldWhen selected, moves the focus (cursor) to the field.
Chapter 4
79
For example, the Change Field Example form shown in Figure 4-7 contains a field
named Dynamic Field Changer. At runtime, the user or the workflow enters a
field ID in this field, in this case, field ID 8 (the Short Description field). When the
user clicks the Click Me button, the label on the Short Description field turns red
and the field receives focus.
Figure 4-7: Using dynamic workflow to change field attributes
IMPORTANT
For forms viewed in the web client, do not use a dynamic Change Field action that
makes a field visible; otherwise, performance is degraded significantly.
2 In the Field/Keyword Selector dialog box, select the field or keyword (such as
$FIELDNAME$) that will identify the field holding the field ID to change at runtime.
80
In this example, the field label color is changed to red and the focus is set when the
workflow is executed. All other attributes are unchanged.
4 Save the active link.
Active links
The Close Window action closes the current or all open windows. This action only
closes windows, and does not save updated values or push them to the parent
window. If the window to be closed is a dialog box and you want to write the data
from the dialog box to the parent form, use the Close Window action in
combination with the Open Window and Commit Changes action, as follows:
In the Open Window active link action (page 102) specify the data to be
transferred to the parent form with the Field Mapping Mode set to On Close.
Call the Commit Changes active link action (page 82) before the Close Window
action to save the specified data to the parent form.
You can create buttons to implement these actions. See Using buttons to control
window close actions on page 82.
Close CurrentOnly the current window the active link is running from closes
when the active link executes.
Close AllAll open windows close when the active link executes.
Chapter 4
81
OKUse the Commit Changes action followed by the Close Window action to
transfer field values from the dialog box to the parent form, and then close the
dialog box.
CancelUse the Close Window action to close the dialog box without
transferring any data to the parent form.
ApplyUse the Commit Changes action to transfer field values from the dialog
box to the parent form, but leave the dialog box open.
If you do not create these buttons, the user can only exit the dialog box by clicking
the X icon in the top right corner of the dialog box. Clicking the X icon results in
unsaved changes and might bypass other workflow actions that should occur.
For more information about using a display-only form as a dialog box, see the Form
and Application Objects Guide, Using a display-only form as a dialog box,
page 158.
Active links
When used with a dialog box, Commit Changes works with the Open Window
and Close Window actions to capture the data entered in the dialog box. In this
case, the Commit Changes action pushes predetermined values from the dialog
box to fields on the parent form, but does not initiate a save to the database.
When used with a regular form, join form, view form, or vendor form, the
Commit Changes action applies the changes in the form and performs the major
form action (for example, Submit, Search, or Modify). In this case, the Commit
Changes action does submit data to the database.
The Commit Changes action is added to the If Action or Else Action list.
3 Save the active link.
82
DDE action
In an Open Window action with the Dialog window type, map the data to be
written in the field mapping for the On Dialog Close Action. See Open Window
action on page 102.
Use the Commit Changes action before the Close Window action to write the
data entered in a dialog box to the parent form.
Use the Close Window action to close the dialog box. See Close Window
action on page 81.
DDE action
Use the DDE action in:
Active links
The DDE active link action allows data to be exchanged between a client and server
using DDE. See the Integration Guide, Using active links with DDE, page 290.
Active links
Filters
Escalations
Use the Direct SQL action to submit any legal SQL command to a non-AR System
database. Use this command only if it is required for integration with another
database.
The Direct SQL action has a different result than the SQL command you use to set
a field value in the Set Fields action. In the Set Fields action, you use SQL to query
the database for information and then use the returned value to set a field. With
the Direct SQL action, the SQL command is not expected to return data. For
example, you can define a Direct SQL action to perform inserts or updates to a
non-AR System database.
Chapter 4
83
WARNING
BMC does not support or recommend using a Direct SQL action to modify data in
the tables created by the AR System server to store object definitions or form data.
It can result in data corruption. Use this action to push data only to non-AR System
database tables.
You must know SQL syntax and concepts to create a Direct SQL action. For the
most effective use of direct SQL commands, you must also have a general
understanding of relational databases and a specific understanding of the
relational database underlying your AR System.
AR System passes direct SQL commands to the database without checking the
syntax. You must make sure that all submitted commands achieve the needed
result. Your SQL commands should comply with ANSI SQL standards, so that
single quotes are reserved for strings and double quotes are reserved for use with
database object names only.
SQL commands can be generic or specific to the DBMS. If an SQL command is
specific to one DBMS, you might not be able to move the workflow object that
contains it to another environment.
If parameters are used when constructing the SQL command, the AR System
server substitutes the values and escapes single quotation marks by doubling
the quotation marks.
If you enter the entire SQL command in a field and access the command with the
$Field$ reference, the AR System server does not examine or alter the contents
of the command, and any single quotes in the SQL command are not escaped. If
you use this technique, make sure the command can safely run on the database.
WARNING
BMC does not recommend the second method as this can leave your system
vulnerable to hackers with malicious and harmful intent.
SQL command.
84
DSO action
4 In the SQL Command field, enter the SQL command that you want to submit to the
database.
To use the Expression Editor dialog box to build the SQL command, click the
ellipsis button. As shown in Figure 4-9, the Expression Editor enables you to
choose SQL commands, fields from the form, and AR System keywords.
5 Save the active link, filter, or escalation.
Figure 4-9: Expression Editor dialog box for Direct SQL action
In this example expression, the elements Bug_ID, First_Name, and Tech are
columns in the table Customer_Info_Order. The contents of the
$Short Description$ field will be used to determine the name of the last
column.
DSO action
Use the DSO action in:
Filters
Escalations
The DSO action enables you to configure DSO Transfers, DSO Returns, and DSO
Deletes in workflow. See the BMC Remedy Distributed Server Option Guide,
Creating workflow to perform DSO operations, page 72.
Chapter 4
85
Active links
Filters
The Exit Guide action terminates the current guide and, optionally, all of its calling
guides. Both active link and filter guides exit by default when they reach they have
executed all the active links or filters contained in the guide. However, you use the
Exit Guide action to terminate the guide under a specific circumstance.
For example, in a guide with two or more mutually exclusive workflow paths, use
the Exit Guide action to end the guide at the end of each possible path.
For more information about active link guides and filter guides, see Defining
guides and guide actions on page 137.
SelectedAll running guides exit when the active link or filter is executed.
ClearedOnly the current guide exits when the active link or filter is executed.
(Default)
Active links
Filters
The Go to Guide Label action redirects the flow of execution within a guide to a
specific location in the list of active links or filters. You mark these locations in the
guide by inserting a guide label before the active link or filter that begins each
unit of workflow. The Go to Guide Label action directs the workflow to the
specified label, and the guide then executes the active links or filters that follow the
label.
This action allows you to create modular workflow, so that you can repeat a series
of workflow steps or create workflow can take any of several paths, controlled by
qualifications.
For more information about active link guides and filter guides, see Defining
guides and guide actions on page 137.
86
Goto action
Goto action
Use the Goto action in:
Active links
Filters
Use the Goto action to execute an active link or filter in an order other than the
normal sequence determined by the active link or filter execution order. When a
Goto action executes, the first item with an execution order greater than or equal
to the number that you specify executes next. You can specify a static or variable
execution order value.
Like the Goto Guide Label action, the Goto action allows you to control the order
of workflow. However, the Goto action does not require the workflow to be
organized into a guide. The Goto action can be useful when you want to execute a
sequence multiple times. For each time that you want to execute an active link or
filter, a Goto action returns you to the active link or filter with which you want to
begin.
NOTE
BMC Remedy Developer Studio does not prevent you from entering an execution
order higher than 1000. However, any execution order of 1001 or more is
interpreted as 1000.
87
Filters
Escalations
Use the Log to File action to append all operations meeting the filter or escalation
conditions to a text file on the AR System server. Each log entry includes:
Escalations support Log to File If Actions, but do not support Log to File Else
Actions.
NOTE
If a failure occurs when writing to the log file that you specify, AR System records
a warning message in the arerror.log file. This warning message appears only
once, not for every time logging fails. The next time the system successfully writes
to the log file that you specified, a message is also written to the arerror.log file.
Message action
Use the Message action in:
Active links
Filters
Use the Message action to display an error, warning, note, or message for any
operation that meets the active link or filter conditions. You define the content of
the message and set options to control where the message appears.
88
Message action
The message type is displayed as a label with the message. The available message
types are:
TIP
In a filter, you can use an error handling filter instead of displaying a message and
terminating the filter. See Error processing on page 160.
TooltipActive links only. In web clients, the message appears in a tooltip. For
information about tooltips, see Using the message action to create tooltips on
page 90.
You can enter an unlimited number of characters for active links and a maximum
of 255 characters for filters. To insert field values from the current form or
keywords in the message, click the ellipsis and use the Expression Editor dialog
box.
Chapter 4
89
The message number is displayed with the message. The number that you specify
must be greater than or equal to 10000. (Numbers less than 10000 are reserved for
AR System messages.) Message numbers are not displayed with Prompt messages.
Define a unique number for each message. You can add the messages you define
to the Error Messages form to create a complete list of AR System messages and
messages for your application. To allow for localization of the message text, create
an entry for the message in the Message Catalog form.
6 (Active links only). To cause a note or warning to appear in the Prompt Bar instead
of a dialog box, select the Show Message in Prompt Bar check box.
7 Save the active link or filter.
Implementing tooltips
Tooltips are implemented through two types of AR System features:
HOVER event
The HOVER event triggers the active link action that displays a tooltip. The HOVER
event is an execution option in an active link. The HOVER event does not fire on
fields that are disabled or hidden.
90
Message action
Depending on the field type you are working with, you can use the option buttons
next to the Hover check box to select the area of the field where the HOVER event for
the tooltip will be triggered. The options are Field, Label, and Data.
If the applicable field is a data field, all three options are enabled.
If the applicable field does not have distinguishable label and data areas, only
the Field option is enabled.
HOVER function
To add tooltips to table fields and attachment pools, use the HOVER function,
which, when used with a field ID as an argument, returns the value of the field
being hovered over. For example:
HOVER(colfield ID) returns the value of the column field for the row being
hovered over.
HOVER(tablefield ID) returns a row value for the row being hovered over.
HOVER(attachpool) returns the name of the file that is attached in the row of
the attachment pool being hovered over.
Be sure to use the actual field ID to return the correct value. For example, if a
column has an ID of 636880912, that is the value you must enter to have the correct
value returned for the column.
Chapter 4
91
config.properties file
In the config.properties file, add a line that specifies the wait time in
milliseconds, for example:
Arsystemhover_wait_time = 1500
Formatting tooltips
The appearance of tooltips can be enhanced through the use of templates. For
example, a template can be used to set the color and appearance of the tooltips text
and background.
A template is applied to a tooltip using the TEMPLATE function. A Set Field action
sets the template result into a field. The field is referenced in the tooltip message.
Tooltips also can be formatted manually using HTML. However, the HTML is not
validated.
92
Message action
ALT+F9label
ALT+F10data
ALT+F12field
When a guide is running, the Prompt Bar becomes visible for the duration of the
guide, assuming you use the Wait action.
When the Prompt Bar is visible in BMC Remedy User, a note, warning, or error that
is sent to the Prompt Bar can be overwritten by other prompt messages, and by the
field help when the field focus changes. For this reason, select the Show Message
in Prompt Bar check box only if you are including the message in a guide.
NOTE
System messages (from filters or from the server) appear in a prompt bar or a
dialog box, depending on how they are configured in the AR System
Administration: Server Information form.
Chapter 4
93
Regular form
Prompt bar
Dialog box
Pop-up box
Prompt bar
Pop-up box
Prompt bar
Pop-up box
For more information about floating panels, see the Form and Application Objects
Guide, About floating panels, page 333.
NOTE
If a form is opened in a view field through the Open Window active link action, the
Inline Form option is available. If Inline Form is selected, content in the view field
appears as if it is part of the containing form. If a form is inside an inline view field,
the form will never have a prompt bar. Any messages destined for a prompt bar
are displayed in the containing forms prompt bar.
94
Notify action
Table Refresh
When workflow is executed with the Window Closed execution option (when a
window is closed or the mode is changed), messages are redirected to a pop-up
box. This allows the user to see the message before the window closes.
However, if the message comes from an inline view field (configured through the
Window Closed execution option), the message is displayed in the containing
form's prompt bar. No redirection is needed.
Notify action
Use the Notify action in:
Filters
Escalations
Use the Notify action to send specified users or groups an email, an alert, or an
alternate method outside of AR System. For example, a filter can notify support
staff that they have been assigned a new request, or an escalation can notify a
manager that a request has not been handled within the specified time.
Alerts are stored in the database, and users can view them in the alert list. Email
messages are sent through the BMC Remedy Email Engine, which supports the
SMTP and MAPI mail protocols for outgoing messages. You can also write
notifications to a file for use by another application.
For information about BMC Remedy Alert, see BMC Remedy User Help and BMC
Remedy Alert Help. For information about using alerts on the Web, see the
Configuration Guide, Using the alert list in a browser, page 258. For information
about sending notifications by using an external application, see Using an
external delivery mechanism on page 101.
Chapter 4
95
AlertThe specified users are notified with entries in the Alert Events form.
Users can view their list of alerts and open the originating requests.
User Profile DefaultThe specified users are notified using the default method
specified in their User form record. If the User record does not contain a default
mechanism, the user is notified through BMC Remedy Alert.
OtherThe specified users are notified using the mechanism specified in the
Other Code field. In this case, the notification is written to a file. Use this option
to create your own delivery method. For example, you can set up your system
to page users when they receive a notification. See Using an external delivery
mechanism on page 101.
4 In the Priority field, enter a number from 0 through 10 to set the priority.
The priority appears in the Priority field of the Alert Events form to allow the user
to sort the alert list by priority.
5 In the User field, enter information to identify the recipients of the notification.
The user field is limited to 255 characters. If you enter more than one recipient,
separate each recipient by entering a hard return (press Enter). The server
evaluates each line separately.
96
Notify action
To specify one or more recipients, enter the recipient information in any of the
following formats:
Alert notifications are entered in the Alert Events form, with the user name
appearing in the User field.
Email notifications are sent to the email address specified in the User form
entry for the user.
AR System group namesAR System takes the group name from the entry in
the Group form, searches the User form for all users belonging to this group, and
delivers the notification for each member.
For Alert notifications, an entry is made in the Alert Events form for each
group member.
Email notifications are sent to the email address specified in the User form
entry for each user.
For more information about users, groups, and the User and Group forms, see:
TIP
To broadcast a notification to a large group, BMC recommends that you send the
notification to a mailing list or alias on the email server, instead of using an
AR System group. This avoids the need to create all the notifications on the
AR System server, which can impact performance.
Email addressesIn addition to obtaining the email address from the User
form, in filters you can enter email addresses directly or by using a keyword,
such as $USER$. This allows the Notify action to send messages to users outside
of AR System, including aliases or an email address that represents a program.
Include the email domain name in the address, for example,
[email protected] or [email protected].
Chapter 4
97
Type a dollar sign ($) and select the field name or keyword from the content
assist list, or click the ellipsis to the open the Expression Editor dialog box. For
example, to send a message to the user who created the request, enter
$Submitter$.
Entering a field name indicates that the name of the user or group to notify is
in that field in the current request. You must create workflow to populate the
field. The field can contain one or more recipients in the form of a user name,
group name, or email address, separated by hard returns. The field cannot
contain another field reference.
Make sure that the data entered in the User field at runtime does not exceed
255 characters. If it does, the notification might not be delivered to some
recipients.
When you select a keyword, the current value of the keyword is substituted
at runtime.
To resolve the contents of the User field, AR System first checks for a matching
request in the User form. If found, the notification is sent to that user. If not found,
the server checks for a matching request in the Group form. If the name
corresponds to a group name, the notification is sent to all members of that group.
If the contents of the User field do not match an existing User or Group definition,
AR System interprets the field contents as a literal address and sends the
notification to that address, using the SMTP or MAPI mail protocols.
6 In the Text field, enter the content of the notification message.
The size limit for this field depends on the notification type. You can include up to
32 KB of message content in an email notification. For an Alert notification, enter
no more than 4000 characters.
To include field values or keyword values in the notification text, use the
Expression Editor dialog box or the content assist feature to select fields and
keywords from the list. You must enter field names and keywords in the variable
format, for example, $Short Description$. For information about using the
expression editor, see Chapter 3, Building qualifications and expressions.
Notify action
You can include field and keyword values in the subject. The maximum length for
the subject is 255 characters. If the value replacing a variable at runtime causes the
Subject field data to exceed 255 characters, the subject is truncated at 255
characters. If you enter a field name in the Subject Line field, the notification
contains the value of the field in the database, up to 255 characters.
NOTE
For some UNIX email systems, you can include extra header lines in your email
message by inserting hard returns followed by formatted mail headers in the
Subject field. The resulting notification contains a Subject Line and your header
lines. However, the total of all data in the Subject Line field must be 255 or fewer
characters.
Chapter 4
99
2 (Optional) Select a shortcut option to add a link to the request in the email message:
Web URLIncludes a URL to the request in the email notification. The URL
allows the user to open the request in the web client.
To use a Web URL, you must define the web path in the Email Notifications Web
Path field on the Advanced tab of the AR System Administration: Server
Information form. See the Configuration Guide, Server InformationAdvanced
tab, page 123.
3 From the Fields list, select an option to control the addition of request data in the
SelectedSelected fields are included in the notification. Click Add to open the
Field Selector dialog box and select the fields to include.
ChangedOnly fields that have changed in the current transaction are included
in the notification.
If you include field contents, AR System will check the field permissions to the
notifications subject and body.
By default, the order of fields included in an email notification is based on their
arrangement in the form view, as follows:
Fields are taken from the default form view. If there is no default view, the first
view is used.
Using the X and Y coordinates of each field, the order of fields begins at the top
left, and moves left to right, then down (in a zigzag-like pattern).
Fields excluded from the forms default view are randomly included at the
bottom of the list in a notification.
You can only include data fields in an email. Other field types such as panel
fields are ignored.
to override default parameters relating to the email system. For information about
these parameters, see the BMC Remedy Email Engine Guide.
5 Save the Notify filter or escalation action.
100
1Alert
2Email
3User default
WindowsarInstallDir\arserver\db\notificationNN.arn, where NN is
the number in the Code field.
Active links
Use the OLE Automation action to share functionality between applications that
support OLE. For more information, see the Integration Guide, OLE automation,
page 269.
101
Active links
Use the Open Window action to open an AR System form in one of six window
types. The window type determines the form open mode and general window
behavior. The fields in the active link editor change depending on the window type
selected to allow you to configure the appropriate options for the Open Window
action.
The Open Window action includes the following window types:
DialogOpen a form that acts as a dialog box from a parent form. The Open
Window action defines what data is transferred from the parent form to the
dialog box when the dialog box opens, and what data is transferred from the
dialog box back to the parent form when a Commit Changes action occurs.
Data transfer from the parent form to the dialog box is based on the field
mapping you create in the On Dialog Open Action table.
Data transfer from the dialog box back to the parent form is not automatic.
You must create a Commit Changes active link action (see Commit Changes
action on page 82) that executes before or when the dialog box closes to
cause data transfer. The data transferred is determined by the field mapping
you create for the On Dialog Close Action table.
See To define the Open Window action for dialog boxes on page 103 and the
Form and Application Objects Guide, Using a display-only form as a dialog box,
page 158.
102
SearchOpen a form in Search mode, using the specified server and form. You
can either set default field values in the opened form or map values from the
parent form to the search form. See To define the Open Window action for
Search or Submit window types on page 106.
Submit Open a form in New mode, using the specified server and form. You
can either set default field values in the opened form or map values from the
parent form to the search form. See To define the Open Window action for
Search or Submit window types on page 106.
ModifyOpen a form in Modify mode, using the specified server and form
along with a qualification to select the entries to be displayed when the window
opens. See To define the Open Window active link action for Modify or Display
windows on page 108.
DisplayOpen a form in Display mode, using the specified server and form
along with a qualification to select the entries to be displayed when the window
opens. See To define the Open Window active link action for Modify or Display
windows on page 108.
Popup Opens a form like a pop-up on the browser. It behaves like an existing
AR System pop-up and cannot be decoupled from the parent window. See To
define the Open Window action for Popup on page 117.
NOTE
For all types of Open Window actions, you can hard code the source data server
and form in the active link, or you can use the SAMPLE DATA data source to
supply a source data server and form at runtime. For information about using a
dynamic data source, see Using a dynamic data source or destination in
workflow on page 71.
The fields required to define the Open Window action for dialog boxes appear.
4 From the Data Source list, select SERVER or SAMPLE DATA:
To allow the server and form to be defined at runtime, select SAMPLE DATA,
and go to step b.
a (Data Source is SERVER) Select the Server Name, Form Name, and Form View
103
b (Data Source is SAMPLE DATA) Define the sample and runtime server, form,
Use the Sample Server Name and Sample Form Name fields to select the server
and form name to use while defining the Open Window action.
Use the Runtime Server Value, Runtime Form Value, and Runtime Form View
Value fields to identify the fields on the parent form or the AR System keywords
that will define the source server, form, and view name for the dialog box at
runtime.
For more information about using the SAMPLE DATA data source, see Using
a dynamic data source or destination in workflow on page 71
5 Select or clear the Show Close Button check box. If the check box is:
SelectedA close box appears in the upper-right corner of the dialog box in
BMC Remedy User. This option has no effect in the web client, because browsers
always contain an X (close) button in the top right corner.
NOTE
Selecting this option does not add an AR System button field to the form. Instead
of using a generic window close box, consider creating buttons that predictably
exit the dialog box and accomplish the actions that you want to occur. See Using
Commit Changes with a dialog box on page 83.
ClearedA close box does not appear. For BMC Remedy User clients, you must
create a Close Dialog action to close the dialog box and return the focus to the
parent form.
6 In the On Dialog Open Action table, map the values for fields to populate when the
OK.
The list of available fields comes from the dialog box form selected in the Form
Name or Sample Form Name field.
b In the Value column, enter an expression to select field values from the parent
104
7 In the On Dialog Close Action table, map the fields and values to be passed back
NOTE
Mapping fields and values in the On Dialog Close Action table identifies the fields
and values to populate on the parent form, but the mapping does not cause the
values to transfer. You must use a Commit Changes action to transfer the defined
field values to the parent form. See Commit Changes action on page 82.
Figure 4-13 shows an example Open Window active link action for the Dialog
window type. In this example, the Open Window action will open a display-only
form named AA-DispOnly as a dialog box, obtaining the form from the server
TestServer. The field EnterAssignee is a field on the display-only form, and its
initial value is set to $NULL$. When the dialog box is closed, a Commit Changes
action will transfer the value in the EnterAssignee field to the Assigned To field on
the parent form.
Figure 4-13: Open Window active link action, Dialog window type
105
To define the Open Window action for Search or Submit window types
1 Right-click the If Action or the Else Action panel header.
2 Choose Add Action > Open Window.
3 From the Window Type list, select Search or Submit.
The fields required to define the Open Window action for search and submit
window types appear.
4 To control where the window opens in the web client, select one of the following
Target Locations:
New Without Toolbaropens the form in a new browser window with the
browser toolbar, menu bar, and location bar hidden.
<String>Allows you to specify a frame name, which opens the form inside the
frame. In the case of a view field frame, the name is VF<FieldId>; for example,
VF536870913.
NOTE
In BMC Remedy User, the Open Window action always opens a new window
within the current instance of BMC Remedy User, and the Target Location field is
ignored.
5 If you have selected <String> or <Field>/<Keyword> in step 4, perform the
following:
a Select or clear the Inline Form check box. If the check box is:
106
Selectedthe view field provides inline behavior for the rendering form. See
Form and Application Objects Guide, Inline Forms on page 150.
Clearedthe view field provides the frame based behavior for the rendering
form.
NOTE
View fields maintain the existing behavior unless the Inline Form option is
checked.
b Perform the following in the field next to the Target Locations:
For <String>, enter a view field id with the prefix VF. For example, for a view
field with ID 1234, enter VF1234.
For <Field>/<Keyword>, click the ellipsis and select a character field that
contains the VF expression at runtime.
NOTE
In BMC Remedy User, the Open Window action always opens a new window
within the current instance of BMC Remedy User, and the Target Location field is
ignored.
6 From the Data Source list, select SERVER or SAMPLE DATA:
To enable the source data server and form to be determined at runtime, select
SAMPLE DATA, and go to step b.
a (Data Source is SERVER) Select the Server Name, Form Name, and Form View
Use the Sample Server Name and Sample Form Name fields to select the
server and form name to use while defining the Open Window action.
Use the Runtime Server Value, Runtime Form Value, and Runtime Form
View Value fields to identify the fields on the parent form or the AR System
keywords that will define the source server, form, and view name for the
dialog box at runtime.
For more information about using the SAMPLE DATA data source, see Using
a dynamic data source or destination in workflow on page 71.
7 (Optional) To set field values in the form when it is opened, use the field mapping
area:
To set all fields to their default values, if any, select the Set Fields to Default
Values check box.
To map values to specific fields, select fields and define values in the field
mapping table. See Mapping fields to values on page 68.
Chapter 4 Specifying workflow actions
107
If you do not define any field values, a blank form opens in Search or New mode.
When you save the active link without field values, BMC Remedy Developer
Studio warns that no field values have been mapped, but the active link is saved.
The Class Search active link in the AR System Sample application contains an
example Open Window action that uses a search window.
To define the Open Window active link action for Modify or Display windows
1 Right-click the If Action or the Else Action panel header.
2 Choose Add Action > Open Window.
3 From the Window Type list, select Modify or Display.
ModifyA user with the correct permissions can open and edit records in the
results list.
DisplayUsers can open but not edit records in the results list.
The fields required to define the Open Window action for a Modify or Display
window appear.
4 From the Display Type list, choose a display type:
List OnlyIn BMC Remedy User, displays a list of results in the results pane.
The user can open the record by clicking an item in the list.
In the web client, the results are shown in a split display, including the results
pane and the details pane.
Detail OnlyIn BMC Remedy User, the first matching record appears in the
details pane, with Next and Previous buttons.
In the web client, only the first matching entry is displayed. No toolbar buttons
are available to move between entries, but you can add Next and Previous
buttons and support them with workflow.
Split WindowThe results are displayed in a split window, with the results list
pane in the top half, and the first entry displayed in the details pane in the
bottom half.
ClearIn BMC Remedy User, the results are displayed according to the display
type specified by the Show Result List Only user preference.
In the web client, the results are shown in a split display, including the results
list pane and the details pane.
5 To control where the window opens in the web client, select one of the following
Target Locations:
108
<String>Allows you to specify a frame name, which opens the form inside the
frame. In the case of a view field frame, the name is VF<FieldId>; for example,
FV536870913.
to-screen:
to-print:
to-file:
Include a space after the colon. For example, to create a screen target based on a
field reference, the value in the field you select contains to-screen: .
NOTE
In BMC Remedy User, the Current and <String> options are ignored.
6 If you have selected <String> or <Field>/<Keyword> in step 4, perform the
following:
a Select or clear the Inline Form check box. If the check box is:
Selectedthe view field provides inline behavior for the rendering form. See
Form and Application Objects Guide, Inline Forms on page 150.
Clearedthe view field provides the frame based behavior for the rendering
form.
NOTE
View fields maintain the existing behavior unless the Inline Form option is
checked.
7 From the Data Source list, select SERVER or SAMPLE DATA:
To allow the source data server and form to be determined at runtime, select
SAMPLE DATA, and go to step b.
a (Data Source is SERVER) Select the Server Name, Form Name, and Form View
Use the Sample Server Name and Sample Form Name fields to select the
server and form name to use while defining the Open Window action.
109
Use the Runtime Server Value, Runtime Form Value, and Runtime Form
View Value fields to identify the fields on the parent form or the AR System
keywords that will define the source server, form, and view name for the
dialog box at runtime.
For more information about using the SAMPLE DATA data source, see Using
a dynamic data source or destination in workflow on page 71.
8 In the Qualification field, complete the following steps:
a Define a qualification that defines the records to return when the window
opens.
Click the ellipsis to use the Expression Editor dialog box, or type the
qualification, using content assist to select fields and keywords. For information
about creating qualifications, see Chapter 3, Building qualifications and
expressions.
b (Optional) Select Suppress Empty List to specify that an empty list does not
Remedy User or the web client responds when no matches are found in the
selected form:
Advanced.
11 To sort the requests of the search, complete the Sort Order table:
a Click Add, and then select fields to sort on in the Field Selector dialog box.
b Click OK to add the fields to the Sort Order table.
c To move fields up or down in the Sort Order table, use the Up and Down
buttons.
d To select ascending or descending order, click the field in the Sort Order column,
110
e To remove a field from the Sort Order table, select the field, and then click
Remove.
f To clear the table, click Remove All.
12 (Optional) To define a polling interval for BMC Remedy User clients, enter the
111
The BMC Remedy Mid Tier Guide, Using Crystal reports with AR System,
page 111
The BMC Remedy Mid Tier Guide, For your end users: Creating reports in a
browser, page 155
To define the Open Window active link action for Report windows
1 Right-click the If Action or the Else Action panel header.
2 Choose Add Action > Open Window.
3 From the Window Type list, select Report.
The fields required to define the Open Window action for a Report window
appear.
4 To control where the report displays, select one of the following Target Locations:
<String>Allows you to specify a frame name, which opens the form inside the
frame. In the case of a view field frame, the name is VF<FieldId>; for example,
FV536870913.
to-screen:
to-print:
to-file:
Include a space after the colon. For example, to create a screen target based on a
field reference, the value in the field you select contains to-screen: .
NOTE
In BMC Remedy User, the Current and <String> options are ignored.
5 From the Data Source list, select SERVER or SAMPLE DATA:
To allow the source data server and form to be determined at runtime, select
SAMPLE DATA, and go to step b.
a (Data Source is SERVER) Select the Server Name, Form Name, and Form View
Servers that appear in the Server Name list are those to which you are currently
logged in.
Selecting a form view name is optional. If you do not enter anything in the Form
View Name field, the forms default view is used. For more information Form
and Application Objects Guide, Creating and managing form views, page 393.
b (Data Source is SAMPLE DATA) Define the sample and runtime server, form,
Use the Sample Server Name and Sample Form Name fields to select the server
and form name to use while defining the Open Window action.
Use the Runtime Server Value, Runtime Form Value, and Runtime Form View
Value fields to specify the fields on the parent form or the AR System keywords
that will define the source server, form, and view name for the dialog box at
runtime.
For more information about using the SAMPLE DATA data source, see Using
a dynamic data source or destination in workflow on page 71.
The corresponding numeric report type (1 for AR System and 2 for Crystal).
For example, to create an AR System report based on a field reference, the value
in the field must contain 21=1 at runtime.
Other report options might appear, depending on which report engine software
you have installed on your system.
7 From the Report Location list, select where the report resides:
NOTE
If you make changes to an embedded report after creating the active link, save the
active link to use the updated report.
113
8 To save an embedded report to another area on the network, click Save to Disk.
An embedded report is saved with the definition of the active link, on the server
where the active link is created. Use Save to Disk if you need to access to the report
on an AR System server where the embedded report does not reside locally.
9 In the Report Name field, enter the full path name for the report.
If the report is located on a network, enter a path with a drive mapping or the full
server and directory path (for example, V:\shared\report2.rpt or
\\serverName\path\fileName).
For Embedded reports, the path name must be for a location on or accessible to,
the BMC Remedy Developer Studio client machine. This allows AR System to
store the report with the Open Window action when you save the active link.
<String>Enter the full path to the report. To navigate to the report location,
click Browse.
The path must be to a location on or accessible to the users machine. This
allows AR System to run the report from the client machine when the Open
Window action executes.
<String>Enter the name of the report as entered in the Name field of the
appropriate entry in the Report form.
10 From the Report Destination list, select where you want your report to appear:
114
For the web client, you must choose Screen. The user must print the report from
the browser.
to-screen:
to-print:
to-file:
In each case, the colon must be followed by a space character in the field value.
For example, to specify a screen destination using a field reference, the value in
the field must be to-screen: .
11 In the Qualification field, complete the following steps:
a Define a qualification that defines the records to return when the window
opens.
Click the ellipsis to use the Expression Editor dialog box, or type the
qualification, using content assist to select fields and keywords. For information
about creating qualifications, see Chapter 3, Building qualifications and
expressions.
b From the If No Requests Match list, select a handling option to control how BMC
Remedy User or the web client responds when no matches are found in the
selected form:
Creating Open Window actions for Modify or Display windows on page 108.
115
15 (Web clients only) To use entry IDs rather than the qualification to select entries for
the report, select the appropriate option from the Entry IDs list:
Select a field reference in the Entry IDs field list that passes the ID numbers of the
entries selected for the report in the Query List View. If there is more than one
entry ID, separate them with commas. These IDs take precedence over any search
entered in the Qualification tab. However, if the Entry IDs field is blank, the
qualification criteria are used to create entries for the report.
16 For web clients, if your third-party report engine supports query override, enter
Yes or No in the Query Override field to indicate whether you want the query in
the results list or table field to override the query stored in the report.
Make sure that the Query Override field in the Report form is consistent with the
Query Override in this Open Window active link so that the report runs correctly.
17 From the Report Operation list, select the appropriate option:
EditOnly for Web clients using AR System reporting on a pre-6.3 mid tier,
where the window type is Report.
RunOnly for AR System reports on web clients. Select this option to run a
report by using the Start command on the ReportType entry for the selected
report type.
CreateOnly for Web clients using AR System reporting on a pre-6.3 mid tier,
where the window type is Report.
NOTE
In the pre-6.3 mid tier, you used Create and Edit operations for Open Window
active link actions with a Window Type of Report to create and modify AR System
reports. In the 6.3 and later versions of the mid tier, Create and Edit operations are
not supported. To create and edit reports from an Open Window active link, use
the Submit Window Type, and select the ReportCreator form.
18 From the Character Encoding list, select the appropriate option:
116
Use serverUse the character encoding defined for the AR System server in the
report. This is the default.
Alternate character setsSelect an alternate character set for the report. For
example, to use Korean characters, select Korean.
When you enable the option, the pop-up window opens with a close option on
the title bar.
When you disable the option, the pop-up window does not contain the title bar
and the close option.
The fields required to define the Open Window action for Popup appear.
4 From the Data Source list, select SERVER or SAMPLE DATA:
To allow the server and form to be defined at runtime, select SAMPLE DATA,
and go to step b.
a (Data Source is SERVER) Select the Server Name, Form Name, and Form View
Use the Sample Server Name and Sample Form Name fields to select the
server and form name to use while defining the Open Window action.
Use the Runtime Server Value, Runtime Form Value, and Runtime Form
View Value fields to identify the fields on the parent form or the AR System
keywords that will define the source server, form, and view name for the popup at runtime.
117
For more information about using the SAMPLE DATA data source, see Using
a dynamic data source or destination in workflow on page 71
5 Select or clear the Show Close Button check box. If the check box is:
SelectedA close box appears in the upper-right corner of the pop-up window
on the browser.
ClearedA close box does not appear. You must create a Close Window action
to close the pop-up and return the focus to the parent form. Otherwise, you
cannot close the pop-up window.
6 In the On Dialog Open Action table, map the values for fields to populate when the
pop-up opens:
a In the Field column, select fields to be populated in the pop-up, and then click
OK.
The list of available fields comes from the pop-up form selected in the Form
Name or Sample Form Name field.
b In the Value column, enter an expression to select field values from the parent
NOTE
Mapping fields and values in the On Dialog Close Action table identifies the fields
and values to populate on the parent form, but the mapping does not cause the
values to transfer. You must use a Commit Changes action to transfer the defined
field values to the parent form. See Commit Changes action on page 82.
118
Active links
Filters
Escalations
The Push Fields action enables you to automate updates to the database. You can
transfer values from selected fields in the current request to another request in a
different form or in the same form. The Push Fields action can update or create a
request.
You can push values from all field types, including tables, hidden fields, fields not
in the active view, or fields in no views at all. However, you cannot push values to
non-data fields, such as table fields, column fields, and panel holders.
Each Push Fields action can push data from the current form to one other form,
although you can update multiple requests in that form. To push data from the
current form to more than one form, you must create a separate Push Fields action
for each destination form.
To determine the server and form at runtime, select SAMPLE DATA, and go to
step b.
119
a (Data Destination is SERVER) Select the Server Name (active links only) and
In the Sample Server Name (active links only) and Sample Form Name fields,
select the sample server and destination form name to use to design the Open
Window action.
In the Runtime Server Value and Runtime Form Value fields, identify the
fields on the current form or the AR System keywords that will identify the
destination server and form at runtime.
To select fields in the Expression Editor dialog box, first select either the current
form or the destination form in the Form list. The list of Available Fields changes
to display fields from the selected form.
As you build the expression, fields from the current form are delimited with
dollar signs ($). Fields from the destination form are delimited with single
quotation marks ( ' ).
To use content assist to build the expression, press Ctrl+Space to get a list of all
possible choices. Alternatively, type a dollar sign ($) to get a list of fields from
the current form and keywords. Type a single quotation mark ( ' ) to get a list of
fields from the destination form.
If you associated additional forms and want to use a field from a form other than
the primary form, enter the appropriate field ID in the appropriate format, for
example, $fieldID$' or fieldID. The field must exist on the form.
NOTE
Using a qualification causes the Push Fields action to run a query to obtain the list
of matching requests, so make sure to optimize the Push Fields qualification for
best system performance. See Creating efficient qualifications on page 56.
120
To create a Push Fields action that does not search for existing records but
instead always creates a request, do not enter a qualification. Instead, select the
following values:
5 From the If No Requests Match list, select an option to control how the system
Create a New RequestUses the data specified in the Push Fields action to
create a request.
6 From the If Any Requests Match list, select an option to control how the system
Modify First Matching RequestPushes data to the first request that meets
the qualification.
Modify All Matching RequestsPushes data to every request that meets the
qualification.
7 Use the field mapping table to map the fields and values to push from the current
To use matching field IDs to map the values of all matching fields from the
current form to the destination form automatically, select the Matching IDs
option. The field mapping table is disabled, and you cannot select specific field
mappings.
In this case, all matching field IDs (except for table columns, panel holders, and
core fields such as Modified Date and Request ID) are automatically set in the
destination form from the values in the current form.
TIP
When you use Matching IDs, the values are dynamic. This means that only the
setting is stored as part of the Push Fields action, and not the actual values.
Therefore, you can add data fields to these forms at a later stage and the action uses
them when executed.
121
TIP
You can use Auto Map to map fields according to the field name or field ID. When
you use Auto Map with field names, the mappings are dynamic. However, when
you use Auto Map with field IDs, the mappings are stored with the form. In this
case, if you later add fields to the forms, they will not be part of the action and must
be added manually.
To map specific fields and to use an expression to define the value, follow the
steps described in Mapping fields to values on page 68.
In the Field column, select the fields in the destination form to which the Push
Fields action will push data. In the Value column, use an expression to define
the values that the Push Fields action will push to the fields in the destination
form.
To define the value, you can use field values from the current form, keywords,
static values, or the result of a function. In active links, you can also use the result
of a DDE operation. For information about using the result of a function, see
Assigning values using function results on page 251. For more information,
see Integration Guide, Using active links with DDE, page 290.
NOTE
Dynamic Push Fields actions cause browsers to perform extra HTTP fetches and
cause the AR System server to perform extra queries to determine the data types
for remote fields. To enable the mid tier to fetch these data types ahead of time and
avoid performance degradation, avoid using field references to store the server or
form names.
122
Active links
The Run Macro action runs a macro created in BMC Remedy User. This workflow
action only runs in BMC Remedy User, and is not supported in the web client.
Most operations that can be performed from a macro can be performed from other
actions. Use the Run Macro action for backward-compatibility with clients prior to
the 5.0 release only.
The macro can perform any operation or series of operations. If the macro contains
parameters, you can specify values for those parameters, including a value from a
field in the current request. For example, a macro could use the value in the
Customer Name field of the current request to query the database for information
about the customer, or you it could generates a report when the user clicks a button
in the current request.
To use a macro in an active link, you must first create the macro by using BMC
Remedy User. For information about creating a macro, see BMC Remedy User
Help)
The macro that you specify is copied into the active link. If you later change the
macro, you must modify the active link and specify the macro again.
NOTE
You can use the $VERSION$ keyword to include or exclude older Windows user
tool clients in workflow. For more information, see $VERSION$ on page 228.
You cannot convert a Run Macro action for use in an active link in these cases:
When you use the query bar inside the macro and:
Field names and field labels on the current form are different.
You use field IDs not on the current form as a parameter inside the query.
appropriate macro.
If the macro contains parameters, a list of parameters appears.
123
A static value
A keyword
NOTE
Macros do not prompt for values when executed from active links, so you must
specify parameter values in the Run Macro action. To prompt for values, use an
Open Window active link action to capture the values. See Creating Open
Window actions for dialog boxes on page 103.
5 To save the macro to another area on the network, click Save To Disk.
6 Save the Run Macro active link action.
Active links
Filters
Escalations
Use the Run Process action to run an independent process on a client computer or
an AR System server. The system executes the command specified in the
Command Line field. You can run an AR System application command or
workflow process command, or specify an external program to carry out actions
such as sending a fax or making a log entry in a specific format.
For more information about the AR System application and workflow commands,
see Appendix C, Using Run Process and $PROCESS$ commands. For
information about using the Run Process action or the $PROCESS$ keyword to
integrate AR System with an external application, see the Integration Guide,
Running external processes (Run Process), page 259.
NOTE
The Run Process action only executes an independent process; it does not return a
value. To insert the result of a process into a field, use the Set Fields action with the
$PROCESS$ keyword to set a field by using the value returned from a process (see
Assigning values from process results on page 253).
124
IMPORTANT
For active links that run processes on the server, AR System provides a security
feature that allows you to limit active link processes to only execute in a specified
directory. For more information, see the permission and configuration information
in the Configuration Guide.
You can type the command or you can build the command by using the Expression
Editor dialog box. You can include the values from fields from the primary form
and keywords in the command, and you can select a process from the list of
AR System processes.
If an expanded value contains spaces, you must insert double quotation marks
around the parameter so that the operating system interprets it as a single value.
125
For external processes, adjust the command syntax appropriately for the
platform on which the server is running, and include the explicit path to the
command; for example, /home/jim/bin/command.
In the Windows environment, specify the drive; for example,
d:\home\jim\bin\command.bat.
126
On a Windows server, you can only run a process that runs in a console (such as
a .bat script or an executable like runmacro.exe).
Use double quotation marks around substituted fields when the values might
contain spaces or other special characters; for example,
/bin/cmd "$field$".
Service action
Substituted field values that contain hard returns or other special characters can
have unexpected results.
The AR System server does not interpret environment variables for the Run
Process action. To use environment variables, the action must run in the context
of a command window or shell on the client or server computer. Therefore,
include the path to the command-line executable in the command-line
statement, as in the following Windows example (cmd.exe):
C:\Program Files\I386\cmd.exe %windir%\system32\mplay32.exe
%windir%\Media\chimes.wav".
Service action
Use the Service action in:
Active links
Filters
Escalations
The Service action triggers filters that have an Execute On condition of Service.
You can now use the Service action in all three types of workflow:
Active links and filtersThe Service action uses the input field mapping along
with an optional database request ID to provide output data to the current
transaction for use in further processing. In this case, no changes are required to
the database.
The Service action uses fields and values in the input field mapping to determine
values for the output field mapping. The Service action can perform its service on
the current form or on any other form in the database. The Service action can work
with an AR System web service to obtain external services or with a Set Fields filter
action to consume an internal AR System service.
The filter called by the Service action accesses a request by using the input field
values in the transaction, or by retrieving values from the database, and returns
output values to the calling request.
NOTE
If the filter started by a Service action runs a Push Fields action, the output field
value list is not affected. If the filter runs a Set Fields action, the output field value
list uses any modified values.
127
WARNING
If a user is running a pre-7.1 version of BMC Remedy User and activates a Service
active link action, the user receives the following error message:
AR Warning 96 (Capability not supported by this AR System client)
To allow the server and form to be defined at runtime, select SAMPLE DATA,
and go to step b.
a (Data Source is SERVER) Select the Server Name and Form Name for the source
data.
Servers that appear in the Server Name list are those to which you are currently
logged in.
b (Data Source is SAMPLE DATA) Define the sample and runtime server and the
Use the Sample Server Name and Sample Form Name fields to select the
server and form name to use while defining the Open Window action.
Use the Runtime Server Value and Runtime Form Value fields to identify the
fields on the current form or the AR System keywords that will define the
source server and form for the Service action.
For more information about using the SAMPLE DATA data source, see Using
a dynamic data source or destination in workflow on page 71.
4 In the Request ID field, select the field that will contain the Request ID of the source
form entry to use in case the Service filter needs to retrieve data from the database.
This creates a Request ID mapping. When the transaction data is not sufficient to
complete the Service actions output mapping, the Service filter uses the Request
ID mapping, if valid, to retrieve values from the database for the fields that are not
in the input field list or in the transaction.
If the Service filter is able to fulfill the output mapping by using the input mapping,
the Request ID mapping is not used. In other words, the Service action gives
preference to transaction values. If Request ID is NULL, the output value will also
be set to NULL.
The Request ID value for the action is resolved before firing the Service, based on
the Request ID mapping. If the Request ID mapping does not use the associated
forms Request ID field, then the mapped field value is treated as the Request ID
for the target or service form.
The Request ID mapping is required when creating the Service action, but its value
can be NULL or invalid at runtime.
128
5 In the Input Mapping table, map the input fields and values or value expressions
Active links
Filters
Escalations
The Set Fields action sets field values in the current request. You can use the Set
Fields action to load specific values into selected fields each time certain conditions
are met. This enables you to automate field updates for a request.
For example, a filter could automatically set the Status field to Assigned when a
name is entered in the Assigned To field, or an active link could change the field
menus on the Type and Item fields depending on the users selection from the
Category menu.
NOTE
To move data from the current request to another request, use a Push Fields action.
See Push Fields action on page 119.
A result from a filter API plug-in service (filters and escalations only). See
Assigning values by issuing requests to a Filter API Plug-In service on
page 249.
129
A result from accessing a Web service (filters and escalations only). See the
Integration Guide, Creating web service clients, page 66.
A result from a DDE request. See the Integration Guide, Using active links with
DDE, page 290.
The procedures in this section describe how to set field values by using AR System
keywords, static values, and data from the current request or from any form on an
AR System server. For information about using the other data sources to set field
values, see the referenced sections and guides.
NOTE
Because filters and escalations execute with administrator permissions, field
values set through a filter or escalation are updated even if the user does not have
permission to change the field. However, active links execute with the permissions
of the user, so field values set through an active link are updated in the database
only if the user has permission to change the field. For information about changing
the filter permissions, see Restricting filter data retrieval by user permissions on
page 301.
For information about using the data source options SQL, FILTER API, and WEB
SERVICES, see the sections referenced in Set Fields data sources on page 129.
Depending on the option selected, the Set Fields panel changes to allow you to
define the specific data to retrieve. For all data source options, the Set Fields panel
includes a table containing the columns Field and Value, where you define the
fields to be changed with the Set Fields action, and the value to enter in each field.
For example, Figure 4-15 shows a Set Fields action in the Sample: DialogYes active
link from the AR System sample application.
130
Figure 4-15: Set fields panel for active link using CURRENT SCREEN data source
click the ellipsis button to open the Field Selector dialog box.
5 In the Field Selector dialog box, enter the field to which you want to assign a value
box.
131
NOTE
If you enter a server name and form different than the CURRENT SCREEN, but
you do not reference a field from another form, there is no need to retrieve a value
from the database, and the server name and form revert to CURRENT SCREEN
when the workflow object is reopened. Also, If you enter a form different than the
CURRENT TRANSACTION but you set the field by using a static value or a
keyword or if you do not set the field from another form, there is no need to
retrieve a value from the database, and the form reverts to CURRENT
TRANSACTION when the workflow object is reopened.
8 To change additional fields using the same Set Fields action, continue selecting
fields in the Field column, and then define the appropriate expression in the Value
column.
NOTE
If you set multiple fields in one action, the order of the set fields might execute
differently on BMC Remedy User and web clients and might give you different
results. If you have dependent fields, you should always break up the set fields
into multiple Set Field actions so that field dependencies are executed correctly.
This guarantees that BMC Remedy User and web clients work the same.
For active links, from another request in this form or from another form on this
server or another server.
For filters and escalations, from another request in this form or from another
form on this server.
You can also use static values, AR System keywords, and the results of a function,
process, or arithmetic operation with the SERVER data source.
To use data from a server that is determined dynamically at runtime, use the data
source SAMPLE DATA instead of SERVER. See Using the SAMPLE DATA data
source on page 135.
132
4 (Active links only) From the Server Name list, select the server that contains the data
to be retrieved.
To cause another server to appear in the Server Name list, you must be logged in
to that server. You can also enter the server name manually, but you must be able
to log in to the specified server with the current user name and password.
Otherwise, the Login dialog box does not appear for the other server.
5 In the Form Name field, select the form from which the Set Fields action should
retrieve data:
If the source form is the primary form for the active link, filter, or escalation, no
change is required. The primary form appears in the Form Name field by
default.
To select a different form as the source form, click the ellipsis button and then
select the appropriate form from the Available Forms list.
To locate a form quickly in the list, use the Filtering Options or the Locate field
in the Form Selector dialog box. See the Introduction to Application
Development with BMC Remedy Developer Studio guide, To filter the contents in
an object list, page 38.
6 Use the Qualification field to build an expression to find the request that contains
the values you want to retrieve. Click the ellipsis button to use the Expression
Editor.
You can also type the expression directly in the Qualification field. See Chapter 3,
Building qualifications and expressions.
In the Expression Editor, the primary form for the active link, filter, or escalation is
the current form. If you selected another form in the Form Name field (step 5),
you can use fields from that form in the expression as well.
WARNING
When you use the Qualification field to retrieve data for the Set Field action, the
action runs a query to retrieve a list of the requests to get data values from.
Therefore, optimize the Set Field If qualification for best system performance.
7 From the If No Requests Match list, select a handling option to control how the
If no matches are found, $fieldName$ is set to NULL, and only the static value
and the value based on the keyword appear in the field:
on serverName
133
8 From the If Multiple Requests Match list, select a handling option to control how
the system responds when multiple matches are found in the selected form.
Use First Matching RequestInserts the value of the first request that meets
the qualification.
If multiple matches are found, $fieldName$ is set to NULL, and only the static
value and the value based on the keyword appear in the field:
on serverName
Display a List (active links only)Displays a selection list so the user can select
the appropriate request. The selection list uses the forms result list specification.
9 Use the field mapping table to map the fields and values from the source form to
To use matching field IDs to automatically map the values of all matching fields
from the source form to the current form, select the Matching IDs check box. The
field mapping table is disabled, and you cannot select specific field mappings.
In this case, all matching field IDs (except for table columns, panel holders, and
core fields such as Modified Date and Request ID) from the source form are
automatically set in the current form.
TIP
When you use Matching IDs, the values are dynamic. This means that only the
setting is stored as part of the Set Fields action, and not the actual values.
Therefore, you can add data fields to these forms at a later stage and the action will
use them when executed.
134
TIP
You can use Auto Map to map fields according to the field name or field ID. When
you use Auto Map with field names, the mappings are dynamic. However, when
you use Auto Map with field IDs, the mappings are stored with the form. In this
case, if you later add fields to the forms, they will not be part of the action and must
be added manually.
To map specific fields and to use an expression to define the value, follow the
steps described in Mapping fields to values on page 68.
In the Field column, select the fields to which you want to assign a value. In the
Value column, use the expression editor to define the value to set from the
source form.
To set the field value using other data sources, such as the result from a process,
function, filter API, and so on, see the sections and guides referenced in Set
Fields data sources on page 129.
If the server and form name for the source data are taken from fields on the
primary form, the workflow or user interaction must be designed to populate
these fields before executing the Set Fields action.
The sample form must contain fields with the same field IDs as the potential Set
Fields source form on the runtime servers. You use the sample fields on this
form to complete the field mapping section of the Set Fields action. The
sample form must contain field IDs that exist on any dynamic source forms
that are used at runtime.
All potential Set Fields source forms must contain fields with the correct field
IDs.
If the server and form name for the source data are not taken from keywords,
the primary form must contain fields to hold the runtime values of server name
(for active links) and form name (for all workflow types). These fields can be
populated by workflow or the values can be entered by a user (if active link).
135
Filters and escalations add the new text to the old text.
Wait action
Use the Wait action in:
Active links
The Wait action suspends a guide in BMC Remedy User so that the user can
interact with a field. After making a response, the user can continue the guide by
pressing Tab or by clicking a button. The user can also terminate the guide during
a Wait action.
For example, to create a training guide, you can use a series of workflow actions to
walk a user through a form, and use the Wait action to pause the guide while the
user completes each field. For a detailed example see Creating interactive guides
on page 155.
NOTE
The Wait has no effect in the web client or outside of a guide. Also, the Wait action
does not work for the Search execution condition.
Continue button in the Prompt Bar in BMC Remedy User, for example, Continue
(the default), Next Step, or Finish.
4 Save the active link or filter.
136
Chapter
137
What will the guide be used for? To lead users through a form? To invoke a
dialog box? To create a computational subroutine? To specify an entry point
guide in the Application List field used on a home page form?
What class of user will it guide? Advanced users? Or will you have to guide
novice users step-by-step through a form?
What will the guide form look like? Will you have to create a simple form for
novice users?
What will be the order of workflow in the guide and are there points where the
guide should take different actions, depending on conditions?
If you are using dialog boxes, plan the layout of forms, fields, and buttons.
Step 3 Create the active links or filters that you want to use within the guide.
Identify what guide actions you will need to use to control the order of
workflow. Actions specific to guides are Call Guide, Exit Guide, Goto Guide
Label, and Wait. For information about these actions, see Specifying workflow
actions on page 63.
Identify where you will need to enter Guide labels and keep track of any Goto
Guide Label targets used.
NOTE
If you reuse or copy active links or filters for your guide that were designed for
other applications, make sure they do not have any Execute On conditions and that
the actions, associated forms, and other specifications are appropriate for use in the
guide.
138
for Go To targets.
d Specify the appropriate guide permissions.
e Specify the appropriate guide change history.
f Create or modify the help text for a guide.
For more information about permissions, building and using change history, and
creating help text, see the Introduction to Application Development with BMC Remedy
Developer Studio guide, Working with existing objects, page 48.
Step 5 Debug your guide before sending it to your users.
Use active link logging to generate a list of active links that are executed and the
order in which they are executed.
You can create a log file of active link activity that includes all of the active links
in a guide. This option logs information about active link activity for each
operation, including which active links executed and whether active link
execution was successful. Active link logging is enabled in BMC Remedy User.
For information about enabled active link logging, see BMC Remedy User help.
Use filter logging to generate a list of filters that are executed and the order in
which they are executed.
Provide visual cues as the guide executes, so users knows what actions to
expect.
Make sure the entry point guide appears on the Application List field on your
home page form and that the link starts the guide.
Step 6 (BMC Remedy User only) To send the completed guide to users through email,
139
After you have deleted a guide, tell your users to delete the guide shortcuts from
their desktops. If users try to start a guide after it has been deleted from the server,
they receive an error message.
Creating guides
The procedures in this section describe how to create an active link or filter guide.
For both types of guides, you define the basic guide settings, and then add the
existing active links, filters, and guide labels that will make up the workflow of the
guide.
Figure 5-1 shows an example active link guide in the editor area.
Figure 5-1: Creating an active link guide
Setting up a guide
This procedure describes how to create and name the guide, associate it to a form,
enter descriptive information about the guide, and how to make an active link
guide act as an entry point.
140
Creating guides
a new one.
2 In the Associated Forms panel, click Add.
3 In the Form Selector dialog box, select the appropriate form, and then click OK.
To locate a form quickly in the list, use the Filtering Options or the Locate field in
the Form Selector dialog box. See the Introduction to Application Development with
BMC Remedy Developer Studio guide, To filter the contents in an object list,
page 38.
The form or forms that you associate with the guide determine which active links
or filters you can include in the guide.
You can associate a guide with more than one form. If so, the guide is considered
shared, and special considerations apply. See Shared workflow on page 32.
4 If you associated the guide with more than one form, select the correct primary
Make the Application List Label descriptive and indicative of the guides function.
Application List Labels can be as many as 255 bytes.
For an active link guide that acts as an entry point, the Application List Label
appears in the Application List on the home page form, and as the name of the
entry point in the server object list in BMC Remedy User and the web client.
If you do not supply an Application List Label, the guide name is used as the
guide label.
For filter guides and active link guides that are not entry points, the Application
List Label appears only in BMC Remedy Developer Studio, for example, in the
Guide Selector dialog box when you create a Call Guide action.
6 (Optional) In the Description field, enter a description of the active link guide
For an active link guide that acts as an entry point, this description appears in
the message area of the Object List dialog box in BMC Remedy User. (It does not
appear when the object list is viewed in the web client.)
For filter guides and active link guides that are not entry points, the contents of
the Description field appear only in BMC Remedy Developer Studio, as with the
Application List Label field.
141
7 (Optional, active links only) For active link guides that will be an entry point, open
the Entry Point panel and enter values to define the entry point:
In the Application List Display Order field, enter a numerical value. This value
determines the location of the guide in the Application List on the home page
form.
In the Start Active Link field, select the starting active link for the guide. This
active link can use different actions, but it should at least use the Open Window
action.
Entering values in these two fields in the Entry Point panel has the effect of
making an active link guide an entry point. Entering a value in one of these
fields makes the other field required.
For more information about using entry points in an application and about the
home page, see the Form and Application Objects Guide, Defining entry points and
home pages, page 433.
8 Save the active link guide or filter guide, supplying a name for the guide.
For active links that are entry points with no Application List Label defined, the
guide name appears in the Application List on the home page and in the object
list.
142
Change the order of active links, filters, and labels in the guide.
Open an active link or filter directly from the guide to edit it.
Creating guides
You use this label name when you define a Go to Guide Label active link or filter
action. See Go to Guide Label action on page 86.
5 To change the order of items in the guide, right click any item in the list and then
143
6 To add an active link, filter, or label before an item already in the list:
a Right click the item after which you want to add the new active link, filter, or
label.
b To add an active link or filter, select Add Active Link(s) or Add Filters(s)
c To add a new label, select New Label.
When you add the new item, it appears in the list before the existing item.
7 To open an active link or filter directly from the guide list, right-click the item in
the list and then select Edit Active Link or Edit Filter.
The active link or filter opens in an editor window. This allows you to make quick
changes to existing active links or filters while adding them to a guide.
8 To delete an item from the list, right-click the name of the active link, filter, or label
144
Creating guides
the Permissions list. Move groups without permission to the guide to the No
Permissions list.
TIP
Make sure the same groups or users have permissions to the active links in the
guide. If a user is running the guide but does not have permission to an included
active link, the guide skips that active link.
145
ellipsis.
3 Type the change description in the New Description dialog box.
AR System automatically records the owner of a guide, the administrator who last
modified the guide, and the date of the modification.
Shared guides
Guides can be shared by multiple forms. You define a shared guide like you define
a guide for an individual form, except that you attach the guide to multiple forms.
If you do not want the guide to be shared, select only one form. Also, share any
active links in the shared guide that you want to execute on multiple forms. If a
guide contains active links that do not belong to or are not shared with the current
form, those active links are skipped when the guide is executed.
NOTE
Changes you make to shared active links affect all guides and forms that use them.
For more information about creating shared workflow, see Shared workflow on
page 32.
The sequence of active links in the guide takes precedence over any execution
condition previously defined for the active links. You can redirect the active links
by using the Go to Guide Label action. If you are creating active links that are used
only in a guide, do not include an Execute On condition in them. Both the
condition and its execution order are ignored when the guides active links are
executed.
Guides use the following procedures when determining which form to run on:
Step 1 Search for the current form.
Step 2 If the current form belongs to the guide, run the guide against that form.
Step 3 If the current form does not belong to the guide, open a new window with a
146
Shared guides
If you select multiple forms, the guide is attached to all of them. The first form you
select becomes the primary form. You can change the primary form by using the
drop-down list.
147
Possible uses
Interactive
guides
Walk users through filling out a form or direct users through each step
of a procedure, much like a wizard. (These are also known as
navigational guides.) Interactive guides that use the Wait action can
be implemented in BMC Remedy User, but not in the web client.
Computational
guides
Entry point
guides
An Active Link guide can be executed through the Open dialog box in BMC
Remedy User (File > Open > Classic), through workflow, or through an email
attachment that users can then drag to their Desktop as a shortcut.
The following actions control the execution of guides:
Call Guide active link actionExecutes or invokes a guide. For example, you
can create a button on a form that uses the Call Guide active link to invoke a
guide.
You can use the Call Guide active link action to execute a guide from any clientside workflow, even from inside another guide. If a guide calls another guide on
the same form, the result is a stack of guides. Control is not returned to the
calling guide until the called guide exits or the nested guide executes a wait
action. For more information about the Call Guide action, see Call Guide
action on page 76.
148
You can also create a guide that invokes other guides if the user has entered
wrong information. When the user has completed all the necessary information,
the second guide closes and enters the correct information back into the first
guide.
The following figure shows an example of an interactive guide using the Go to
Guide Label.
Figure 5-3: Guide using Go to Guide Label active link action
For more information about the Go to Guide Label action, see Go to Guide
Label action on page 86.
Exit Guide active link actionExits a guide. The Exit Guide action is helpful if
users enter incorrect information into a guide or if conditions for the guide to
run are not met. Under these conditions, you might decide to exit the guide or
all guides.
Typically, you do not need to use the Exit Guide action to quit the guide. A guide
that has completed its actions successfully exits without using the Exit Guide
action.
For more information about the Exit Guide action, see Exit Guide action on
page 86.
149
You can use the $GUIDE$ keyword in qualifications to determine whether an active
link is executing as part of normal workflow or in the context of a guide. When
$GUIDE$ = $NULL$, the guide is not running. Otherwise, the name of the current
guide is the value of the $GUIDE$ keyword.
NOTE
If an action generates an error during the processing of an active link, no further
actions occur.
For more information about qualifications, keywords, and active links, see
Appendix A, Operators, wildcards, keywords, and NULL values.
Table 5-2: How active links interact with guides
Execute On
Condition
Interaction
Submit
After Submit
Search
Modify
After Modify
Display
Window Open
Active links with this condition are executed during guide execution.
Thus, if a guide action causes a window to open, any active links tied
to the Window Open condition are executed before the next guide
action is executed.
If a guide is executed by an active link tied to a Window Open
condition, then the guide is initialized but not started, because the user
interface is not yet visible. Next, any other active links with the
Window Open condition are executed, which is followed by any Set
Default processing (described in the next row). When the user interface
is set up, the guide executes.
Set Default
This is the most subtle of all conditions. There are several cases to
consider:
Case 1: Active links tied to a Set Default condition are executed when a
guide is waiting and the user chooses the Set to Defaults menu item.
Case 2: A guide is executed by an active link tied to a Window Open
condition. In this case, the guide is initialized but not started, because
the user interface is not yet visible. After the guide has initialized, the
active links tied to the Set Default condition execute. After the field list
and display symbols are set up, the guide is executed.
Case 3: A guide is executed from the Open dialog box in BMC Remedy
User. In this case, the guide is initialized first, and then the guide opens
the form. The Window Open condition occurs and is followed by the
Set Default condition. Lastly, the guide executes.
Case 4: When the on new or on search behaviors are set to set
fields to default values, any active links tied to the Set Default
condition are executed when a guide is waiting or as the result of a Run
Macro action executed by the guide (after a send or a search).
150
Interaction
Un-Display
Window Close
Button/Menu
Item
Active links that have this condition execute when a guide waits. BMC
Remedy User treats form buttons as fields. If you click a button while a
guide is in a wait, the guide displays the user is off the guide dialog
and executes the active links tied to the button.
Row Double
Click or Return
Menu/Row
Choice
Gain Focus
When a guide executes a Change Field Set Focus action, any active links
associated with the fields Gain Focus condition execute before the next
guide action is executed. When a guide is in a wait condition, the user
cannot change field focus unless the running guide is terminated.
Lose Focus
When a guide executes Change Field Set Focus action, any active links
associated with the current fields Lose Focus condition execute
immediately. The newly focused fields Gain Focus condition is then
processed. After all Lose Focus and Gain Focus active link processing
is completed, the next guide action is executed. When a guide is in a
wait condition, the user cannot change field focus unless the running
guide is first terminated.
Copy To New
No interaction.
Interval
Event
151
Find a row that has changed values and perform an action on it, using the
$ROWCHANGED$ keyword.
Find a row that has been selected and perform an action on it, using the
$ROWSELECTED$ keyword.
NOTE
This procedure assumes you already know how to create forms, fields, workflow,
and guides.
Add a table field that includes at least the following fields as columns. Use the
Tree/Table property in the Properties tab to add:
Submitter (Column)
Request ID (Column2)
Add a Set Fields action and in the field mapping table, set:
Value: $Column2$
This action puts the Column2 value, which is the value of the Request ID field,
into the Short Description field.
152
Set the Execution Options to Button/Menu Field and select the Button field.
In the Guide Field field, select the table field added to the form in Step 1.
5 Log in to BMC Remedy User as user Demo and open the Loop Test form in New
mode.
6 As a test, create several tickets, but only one with Demo as the value of the
Submitter field.
7 Open the Loop Test form in Search mode.
8 Click the table field to refresh it. The tickets you just created appear as rows.
9 Click the button field on the form.
The active link guide is triggered and loops through all the rows in the table field
until it finds a row with Demo as the value of the Submitter field. The workflow
then fills in the Short Description field with the value of the Request ID field.
link Sample:LoopPushEnrollee.
153
Use data chunking in the table field. For example, in the Advanced Display tab
of the Field Properties window, set the size of the chunk to 50. This means that
the AR System processes only 50 records at a time.
If you are not using data chunking, you can specify a maximum number of rows
to be displayed in the table field, for example, 50. To set this property, enter a
number of maximum rows in the Table Property tab of the Field Properties
window.
For more information, see the Form and Application Objects Guide, Working with
tables, page 233.
In BMC Remedy User, set the Limit Number of Items Returned to some
specified number, for example, 500 (by choosing Tools > Options > Behaviors).
Make sure you define a Run If condition in your active link. Otherwise, the
design of the table loop actually goes through every single record in the table
and checks against the active links that are associated with that table.
Limit the active links in the table loop to run only against rows that are selected.
To do so, append `$ (backquote character followed by a dollar sign) to the end
of the names of the active links contained within the table loop guide. (You do
not need to change the name of the active link that calls the guide, the names of
the table loop actions, or the name of the active link guide referenced by the call
guide.)
154
A guide that walks users through a form depends especially on the Wait active link
action and the prompt bar in BMC Remedy User. To create the typical steps in a
navigation-style guide, use the following active links in this sequence:
Change Field (Set Focus)Sets focus to a field and highlights the field.
Commit ChangesAfter the user enters all the information on the form, saves
the information and then creates a request.
Guides can also be used to set up an application environment. For example, you
can create a guide that presets a form with tabs, specific colors, default field values,
and so on.
Finally, you can create a guide that uses dialog boxes, much like a wizard. This is
especially important in a web environment, because the Wait active link action
does not work in the web client. Instead, you must create dialog boxes for user
interaction within the guide. For more information, see the Form and Application
Objects Guide, Using a display-only form as a dialog box, page 158.
NOTE
Interactive guides are not supported in the web client.
155
Users can complete the fields on this form by clicking Guide Me, which activates
the interactive guide.
2 Create and save four active links, one for each of the fields on the form, for example
Do not select any Execution Options and leave the Run If Qualification blank.
Select the appropriate field for the active link. For example, in
ALG: LastName, select the Last Name field.
156
Enter an appropriate instruction for the field. For example, Type the
requesters last name in the Last Name field, and then click Continue.
For all active links except the one that will be last in the guide, leave
Continue as the label for the Continue button.
For the last active link, enter Finish as the label for the Continue button.
TIP
After creating the first active link, use Save As to create the others, then edit the
actions and active link name appropriately.
Figure 5-6: Example active link for the interactive guide
TIP
You can create an entry point guide by clicking the Entry Point check and choosing
an active link that opens a window. For more information, see the Form and
Application Objects Guide, Creating form entry points, page 439.
157
In the Active Links tab of the active link guide, add the four active links you just
created, in the following order:
ALG:Last Name
ALG:Email Address
ALG:Department
Grant the Public group Hidden access permissions to the active link guide.
4 Create another active link that calls the active link guide (for example, Call
Incidents Guide):
Select the Button/Menu Field Execution Condition, and specify the Guide Me
button.
The focus should move to the first field and the message should appear prompting
you to complete the field.
Filter guides
Filter guides are used to create reusable components of filter workflow by adding
computational subroutines within filter processing. This provides for more
sophisticated workflow solutions and allows easier reuse of functionality between
forms.
A filter guide is a list of filters that perform a task on a particular form. You create
the filters before you insert them into a guide. Filters that execute in the context of
guides are not triggered by the same Execute On conditions that trigger a filter
during normal workflow. Filters are evaluated in their order within the guide,
subject to redirection by the way of the Go to Guide Label action. If a filter used in
a guide does have an execution condition, its execution condition is ignored.
158
Filter guides
Call GuideStarts the filter guide. Like active link guides, the Call Guide action
can be nested, calling yet another filter guide. The number of nested Call Guides
cannot be deeper than the maximum depth of the filter action stack. For more
information about the Call Guide action, see Call Guide action on page 76.
Filter guides allow a developer to group a set of filters into a single unit of work
(that is, a subroutine) and call only the filters referenced in sequence inside the
guide without caring about the execution order of other filters. They also let
developers call the filter guide under many different circumstances tied to
multiple different forms. In essence, developers can create a piece of functionality
that can be called as a unit of work, and not care about the execution order across
all filters. In that way, developers can focus on what the filter guide as a unit of
work accomplishes. For example, take the following filters with their execution
orders:
Filter Name
Execution order
100
102
104
102
110
99
By design, each filter executes in its own execution order, based on which events
trigger the filter action.
By contrast, a filter guide could call these filters, in the following defined sequence:
Filter Name
A
C
E
159
NOTE
Filter guides do not affect the phases of filter processing. A Set Fields action still
executes in Phase 1, a Push Fields action in Phase 2, and so on. For more
information about filter phases in AR System, see Filter processing in the
AR System server on page 177.
You use essentially the same procedures to create filter guides as you do for active
link guides. For more information, see Creating guides on page 140.
TIP
For best performance, combine all operations on a server-side table field into a
single filter guide. This avoids retrieving the data from the server more than once.
This table looping functionality works only inside the filter guide. Filters function
on only one AR System server. If a server-side table field points to a form on a
remote server, the filter guide does not work.
You can also perform calculations on the columns of the server-side table field,
using the COLAVG, COLCOUNT, COLMAX, COLMIN, and COLSUM functions inside a filter
guide. Use these functions just as you do with active link guides.
For more information about table fields and functions, see the Form and
Application Objects Guide.
Filter guides
You can enhance this example by including additional in-line workflow, for
example, notifying a user about the number of rows returned.
NOTE
This procedure assumes you already know how to create forms, fields, filter
workflow, and filter guides.
161
Add an integer field to display the number of tickets (for example, Tickets).
Add a character field to display all the entry IDs of the columns returned (for
example, Concatenated Columns). Align these fields side-by-side so that the
results show all the tickets for a specific user.
In the mapping table, map the field Concatenated Columns to the value
($Concatenated Columns$ + " ") + $Column$
The workflow concatenates all the returned columns into the Concatenated
Columns field and separate them with a space. $Column$ references the table
column that contains the request IDs.
162
In the Filters and Labels panel, add Form2 Set Field to the guide.
Filter guides
Add a Call Guide action and enter Form2 Filter Guide as the guide name.
Set Table Loop to All Rows, and then select the table field on Form2.
This action activates the guide and causes it to loop through the rows in the table
field.
Create several tickets, including two or three with John as the value of the
Submitter field.
Perform a search for Johns tickets, then click the request in the Results List.
The filter guide is triggered and loops through all the rows in the table field until
it finds the rows with John as the value of the Submitter field. The workflow then
completes the other fields in the form with the number of Johns tickets created in
Form1. In addition, the concatenated entry IDs from the returned entries appear in
the Concatenated Columns field.
Figure 5-8: Tickets returned and columns displayed
You can use similar functionality to loop through hundreds or even thousands of
requests in the database, bypassing both the server and the client. By contrast, you
could use client-side processing to calculate this information, but doing so
increases network traffic between the client and the server and can impact
performance.
163
When creating workflow for server-side tables, filters with the Call Guide action
can be defined to loop over table columns. The values retrieved during the
looping always comes from the last row of the table. To retrieve different values,
postfix two special characters ( `! ) on the filters within the filter guide. Adding
these special characters causes your filter to execute synchronously, instead of
deferring into a later filter processing pass. For example, if your filter within the
Filter guide is named FormA: Push New Entry to Form B, postfix those special
characters to look like this:
FormA: Push New Entry to Form B`!
Data conversion between values in a column of one type should be able to be set
or pushed to fields of a different type for most data types. But unlike client-side
table fields, there are some limitations in server-side tables for the following
conversions:
CHARACTER to DECIMAL
CHARACTER to REAL
For example, 123.45 six converted to decimal became 0.00, and converted to
real became 0.000000.
On the other hand, 123.45 does convert properly to 123.45 and 123.450000.
Setting values from columns of integer, real, decimal, or currency type (and
sometimes character type) to date or time fields does not yield NULL for
negative values such as -3 or -3.01. Instead, the lowest values of the date and
time type are set.
For example, the lowest value of date fields is 1/1/4713 BC, while the lowest
value of time fields is 12:00:00 AM.
164
Chapter
Understanding how buttons and menu items work with active links (page 166)
Creating and modifying menus and toolbar items (page 167)
Associating active links with buttons and menu items (page 170)
Deleting buttons and menu items (page 171)
Modifier keywords for use in workflows (page 172)
Chapter 6 Using buttons and menu bar items to execute active links
165
You can associate more than one active link with a button or menu item. A good
use of this capability is to define active links that execute based on current
conditions, such as the platform on which the tool is running.
For example, you can define an active link to execute only if the tool is running on
a PC. You can then associate another active link with the same fieldthis time
defining the active link so that it executes only if the web client is running. Users
on either platform can then perform the same action to execute the appropriate
active link for their platform.
166
Active Link 1
Active Link 2
Linked to
Control Field
Displayed as
Button
or
Menu Item
Toolbar Button
(optional)
To add a button to a form, see the Form and Application Objects Guide, Creating
button fields, page 210.
Chapter 6 Using buttons and menu bar items to execute active links
167
3 Add menus, menu items, and separators by using the Add Menu, Add Item, and
Child menus and items are deleted when you delete the parent menu.
8 Save the form.
168
the character.
NOTE
If you create a toolbar button from a menu separator, it is plat form-dependent, but
it is usually a line or an extra space.
column.
4 From the Image dialog box, select the image for the toolbar button.
Image ReferenceSelect this option, and click Select to select an image from the
images stored in AR System. For more information, see the Form and
Application Objects Guide, Working with images, page 359.
The only image size supported for toolbar buttons is 16 pixels wide by 16 pixels
high.
5 To save the image to an area on your computer or the network, click Save to File.
6 Click OK to close the Image dialog box.
7 To add a tooltip for the button, in the Properties tab, enter text for Tooltip.
This text appears in BMC Remedy User when the user holds the cursor over the
toolbar button.
Chapter 6 Using buttons and menu bar items to execute active links
169
order.
c Click OK.
If you do not perform this step, the toolbar buttons appear in no particular order.
9 Save the form.
If a user has access to all active links associated with a button or menu item, but
not to the button or menu item itself, the button or menu item is not displayed
in the form.
If the user has access to the button or menu item, but not to any of its active links,
clicking the button or menu item does not execute the active link.
For more information about setting button permissions, see the Form and
Application Objects Guide, Assigning permissions, page 58.
For a button, select the button so that its properties appear in the Properties tab.
For a menu item, choose Form > Edit Menu Bar, and then select the menu item.
3 In the Properties tab, click Active Links, and click the ellipsis (...) button that
All Active LinksDisplays all of the active links in the specified form.
Available Active LinksDisplays only those active links in the specified form
that are not assigned to a button or menu item.
5 To the Selected Active Links list, move the active links you want associated with
170
To delete a button
1 Open the form.
2 Right-click on the button and choose Delete.
Chapter 6 Using buttons and menu bar items to execute active links
171
$SHIFT_KEY$
$ALT_KEY$
$CTRL_KEY$
NOTE
$SHIFT_KEY$ is not limited to the workflow that is defined to open a form in a new
window. Also, you can use other modifier keywords in the workflow instead of
$SHIFT_KEY$.
button or a table.
NOTE
If you are creating a workflow to a Control field, skip step 2 through step 3.
2 Under the Properties window, add columns to the table.
3 Set the Drilldown Property to False.
4 Create an active link and associate the workflow object with a form. See To
Expression Editor.
8 In the Expression Editor dialog box, click Keywords.
172
9 Select the $SHIFT_KEY$ keyword and assign the value of 1 to that keyword. For
example, $SHIFT_KEY$ = 1.
NOTE
You can also use $CTRL_KEY$ or $Alt_KEY$ and assign the value of 1 to that
keyword.
10 Click OK to close the Expression Editor dialog box.
11 Right-click the If Action panel header.
12 Choose Add Action > Open Window and select a window type.
13 For the Target Location field, select New.
14 Right-click the Else Action panel header.
15 Choose Add Action > Open Window and select a window type.
16 For the Target Location field, select Current.
Chapter 6 Using buttons and menu bar items to execute active links
173
174
Chapter
Workflow processing
This section outlines how workflow is processed on the client side (active links)
and on the server side (filters).
The following topics are provided:
175
Window Open
Set Defaults
Window Loaded
Display
User interaction
with form
User interaction
with request
Return
Menu/Row Choice
Button/Menu Item
Gain Focus
Lose Focus
Search
Submit
Modify
After Submit
After Modify
Un-Display
Interval
Event
Client requests
work from server
Results returned
from server
Window Close
NOTE
The Interval and Execute active link conditions are not included in Figure 7-1.
Interval conditions are time-based and thus not dependent on specific client-server
interactions; events can be sent during any change of application state.
176
How data is loaded into a form and available to be acted on often depends on the
window mode and how the user interacts with fields on the form. The order in
which active links are processed can help you determine which one to specify.
Following is an example of an active link process using Window Open:
1 Use the Window Open condition to set field values when the values are required
for workflow processing before the request is actually displayed. These values are
used only as temporary data for validation purposes in workflow. But when the
window opens, the actual values displayed in these fields are not this temporary
data, but the values specified by the user preference settings.
2 Use the Display condition for any values you want the user to see when the request
is displayed.
3 Use the Window Open condition to prevent the window from opening and
generating an error message when the user does not have appropriate
permissions.
The way your active link executes can be affected by how users have set their
preferences for the web client or their BMC Remedy User Behavior options. Use
caution when using Set Fields or Push Fields actions triggered by Window Open
that rely on specific initial field values. For example, if your active link relies on
default field values appearing, it does not work if the users sets the option to clear
all fields on Window Open.
More than one active link (or filter) can execute on the same execution condition,
and the output of one can affect another.
TIP
You can combine the Filter, SQL, and API logs to see how AR System interacts
with the database and how the different phases interact with each other, especially
if you are creating complicated workflow. For more information, see the
Optimizing and Troubleshooting Guide, Combined server and client logging,
page 70.
177
Filter phases
Actions within filters are carried out in one of three phases. All Phase 1 actions are
carried out immediately. Phase 2 and Phase 3 actions are queued to be carried out
later. See Filter processing example on page 180.
Using a phased approach to filter processing helps to make sure the following
actions occur:
Notifications are sent and that processes are run only after the database
operations are successful. If any database operation fails, all subsequent actions
are suppressed, and database changes are rolled back. So, the system defers to a
final phase the operations that should not run until database transactions have
been committed and there is no chance that a rollback occurs.
For example, you can create a filter to notify Shipping that a purchase order is
ready to be fulfilled. If, during the filter processing, an error occurs, the chain of
events are rolled back, and the transaction is not committed to the database.
Without phases in filter processing, Shipping would be notified and the
equipment would be sent, but no record of the task would be committed to the
database.
All data values are complete and available to the notification that is sent as well
as to Push Fields operations that create related records.
Obtaining a write lock (which is an exclusive lock) for a Push Fields operation is
delayed until the point at which a write is performed to the main data table. This
shortens the duration of the exclusive portion of the transaction, and improves
throughput.
Phase 1 actions
The following Phase 1 actions are always performed as soon as they can be:
178
Call Guide
Exit Guide
GoTo
Go To Guide Label
Log to File
Message
Set Fields
Phase 2 actions
Phase 2 actions are queued when they are encountered and performed after all
Phase 1 actions from all filters execute. If a Phase 2 action triggers more Phase 1
actions, then those Phase 1 actions are performed before the next Phase 2 action. If
a Phase 2 action triggers more Phase 2 actions, then they are added to the end of
the Phase 2 queue.
Each request with a filter executing against it has its own Phase 2 queue. So if a
Push Fields action triggers the execution of a nested filter against the target
request, the Phase 2 action in that filter that apply to that request are queued
separately in the Phase 2 queue for that request. Those Phase 2 actions are run after
the Phase 1 action in the nested filter are complete. The remaining Phase 2 actions
in the outer filter are run after the nested filter Phase 2 actions.
Phase 2 actions include:
Push Fields
Direct SQL
Phase 3 actions
Phase 3 actions do not include any database interaction. All Phase 3 actions
encountered are queued and performed after all Phase 1 and Phase 2 actions.
Unlike the separate Phase 2 queues, there is one Phase 3 queue for the request
against which filter execution is originally triggered and any other requests which
have filters
Phase 3 actions include:
Notify
Run Process
DSO
Phase 3 actions are presumed successful, but can fail and not affect the operations
success.
179
Phase 1
Execute action
Is it phase 1, Phase 2
phase 2, or
phase 3?
Look at action
Filter fires
Phase 3
Yes
Is there
another
action?
Put action on
phase 2 queue
No
Put action on
phase 3 queue
Yes
Any
phase 2
actions?
Look at
phase 2 queue
Yes
Execute action
Does this
action fire
a filter?
No
Is there
another action
in the queue?
Yes
No
No
Any
phase 3
actions?
Look at
phase 3 queue
Yes
Execute action
Is there
another
action in the
queue?
No
Finished
processing
Yes
180
Execution order 1
No
Execution order 2
Form B has a filter, F3, that fires when form B is modified. Filter F3 has the
following attributes:
181
The following figure and steps illustrate the filter processing in the example.
Figure 7-3: Filter processing example
Filter F1 fires
(form A)
Filter F3 fires
(form B)
A1
Begin processing
phase 1 actions
A2
to P2 queue
A3
to P3 queue
B1
Process P1 actions
for this form
B2
A4
A5
to P2 queue
B3
to P2 queue
Filter F2 fires
(form A)
to P3 queue
B1
Resume processing
P2 queue
A5
A3
Begin processing
phase 3 actions
A7
A6
A7
A2
B3
to P3 queue
Begin processing
phase 2 actions
Processing
Complete
triggers filter F3
Key
Phase 1 (P1) action
Phase 2 (P2) action
Phase 3 (P3) action
action executed
Step 1 The server acts on the filters by execution order, and for each filter it examines all
of the actions to be performed. For filter F1, the server performs action A1
because it is a Phase 1 action. It puts action A7 at the end of the Phase 3 queue.
182
Step 3 Having performed all available Phase 1 actions (A1, A4, and A6) the server
server puts action B1 on the Phase 2 queue for the form B request. It performs
action B2 immediately because it is a Phase 1 action. It puts action B3 at the end of
the Phase 3 queue.
Step 5 After performing B2, the server has no more Phase 1 actions, so it performs the
action on the current Phase 2 queue, B1. The Phase 2 queue for the form B request
is empty, so the server returns to the form A request and performs A5, the action
on the form A request Phase 2 queue. Those actions do not cause any filters to fire.
Step 6 After performing all actions on the Phase 2 queues the database transaction is
The following table summarizes the phase to which each action belongs and in
what order each action was carried out.
Phase
Phase 1
A1
A4
A6
Phase 2
Phase 1
Phase 2
B1
A5
Phase 3
A3
A7
B3
183
For get actions (filters with Execute On set to Get Entry) and delete actions,
Phase 1 and Phase 3 actions occur together.
For get operations, there is generally no database change, so the actions need not
be phased. However, there might be database changes as the result of Push
Fields actions that the get operation triggers.
For delete operations, you cannot defer actions because the delete action
removes the current record, so the record would not be available for the actions
later. The subsequent actions need to run when the data is still present.
The following tables further describe when certain operations are processed.
Filter phasing for Create and Merge operations
1 Filters run (including Phase 1 actions).
2 Create operation. (Entry ID is created.)
3 Phase 2 actions occur.
184
You can override phasing for Direct SQL, Notify, Run Process, and Distributed
Server Option actions. If you override Push Fields actions, the actions take the
intermediate values, but the database transaction is deferred.
WARNING
Be very careful about how you use overriding filter processing phasing. Improper
use can produce inconsistent, confusing, and potentially inaccurate results. It is
recommended that you avoid using this capability unless it is critical to your
functionality.
Remember, if you override the phases for a filter, Request IDs and create dates are
not available during a Create operation. Also, a modified date is not available
during a Create or Modify operation ($TIMESTAMP$ might be a suitable
workaround in these situations). Furthermore, if there is a failure in the server,
users might receive notifications for a request that does not really exist.
Finally, the data values used during a given operation are the data values at the
point at which the action is performed. This data value might not be the final value
for some of the fields. The operation can be performed with intermediate values
instead of the final values that you might expect.
As an alternative, display-only fields are available, and they retain their values
throughout the transaction. If your workflow needs an intermediate value at a later
stage, storing it in a display-only field for later access is often the best answer. You
get all the advantages offered by filter-action phases with respect to the transaction
in progress and still retain the intermediate values.
The following sections discuss two methods for overriding filter processing
phasing:
185
NOTE
In release 7.6.04, Application-Release-Pending was modified to automatically
run in filter Phase 1. Therefore, you no longer need to use the special filter naming
convention to override filter phasing for this command.
186
Error processing
The server reacts to error conditions in various ways, depending on what
operation you are running. In general, errors are handled according to where you
are within filter processing with regard to the database transaction:
If an error is encountered during filter processing and the filter has no error
handler, all processing immediately stops, no further filters or actions run, and
an error is returned back to the caller.
If the error occurs during a Phase 1 or 2 action but before the database transaction
is completed, the operation is cancelled, the database transaction is rolled back,
and no change is made to the database.
If an error occurs during Phase 3 actions, processing continues, and changes are
not rolled back. However, if you override filter processing so that your Phase 3
actions are processed before the database transaction, errors are handled
according to the before-transaction-commit rules. The error handling itself
does not change, but using the override causes actions that are normally
deferred to take place before the database transaction; therefore, any errors
encountered are handled as an error before the transaction is complete and
terminate the transaction and roll back.
To summarize, overriding phasing for a filter moves Phase 3 actions into Phase 1
actions. Such actions take on the behavior of other Phase 1 actions (that is, if an
error occurs while processing the action, all subsequent filter processing is halted,
and any database changes are rolled back).
187
The Execution Order value and Execute On selections on the Basic tab of the
Filter properties window are ignored. The Enable check box is not ignored. The
filter must be enabled to be executed.
Three keywords that give information about the error that caused the error
handler to be called are defined:
$ERRMSG$The error message for the first error on the error stack.
stack, if any.
Some error conditions place more than one error number, message, and
appended message on the error stack. The error handler has access to the first
one only.
Filter processing phasing is overridden. Phase 3 actions are not deferred; they
are run immediately. The error handling filter executes in-line like a filter whose
name ends with a back quote and an exclamation point (`!). BMC recommends
that you use this naming convention for error handling filters to indicate that
they execute in-line. However, this is not required.
When all the If actions of the error handling filter complete successfully, the
error is considered handled, the error information and keyword is cleared, and
the filter in which the error occurred continues execution with the next action. If
another error occurs during the execution of the filter, the error handler is
executed again.
If the Else actions of the error handler filter are executed or if the If actions
terminate in error as described in the next section, the error information is not
cleared, the remaining actions in the filter where the error occurred are not run,
and the server continues to process the error. If the filter was called from another
filter, the server might call another error handler as described in Error handling
for nested filter calls on page 189. Otherwise, the server processes the error as
described at the beginning of Error processing on page 187.
188
An error can occur while an error handler is running its Else actions. If the error
handler has its own error handler, that error handler is called (unless calling that
inner error handler would exceed the Maximum Stack of Filters value). If that error
handler handles the error, the Else actions of the first error handler continue to run.
If the outer error handler does not have it own error handler or if its error handler
does not handle the error, the remaining Else actions of the outer error handler are
not run and the error information for the error in the Else actions is added to the
error stack below the original error.
Because the outer error handler was running its Else actions when the error
occurred whether or not the error is handled, the outer error handler does not
handle the original error and it is treated as describe in the next section on nested
filter calls.
189
Figure 7-4: Error in Nested Filter Execution, Error Handler for Outer Filter Handles Error
Execute
Filter F4
Action
D1
Push
Fields
Execute
Filter F5
Action
D3
Action
E1
error
Filter F4
Normal Return
Action
E2
not
executed
Execute
Filter HF5
does not
handle error
Execute
Filter HF4
handles
error
Filter HF4
Normal Return
190
NOTE
Errors encountered during the execution of escalations are recorded in the
arerror.log on the AR System server. If an escalation terminates in error
consistently, a message is written to the log every time the escalation is executed
and fails. If the escalation qualification does not select any requests and the
alternate actions, if any, are run, a message is written to the escalation log on the
server (by default, arescl.log).
191
192
Chapter
Chapter 8
193
Rule
Description
Structural
Inefficient Queries
Unused Workflow
Process Validity
Unused menu
Invalid Declaration of Global Identifies global fields with either of the following
Fields
characteristics:
Trim Fields Are Not Visible in Identifies trim fields that are defined on the form but are
Any View
not present in any view
194
Rule
Description
Structural
(continued)
Unused Guide
Identifies fields that are cut off because they do not fit in
their bounding box
Performance
Security
Window Open
Window Loaded
Display
Large image
QBE Match
$PROCESS$ as Assignment
Value
Run Process
System Password
User Password
Chapter 8
195
In the Analyzer View tab, Analyzer reports all of the inconsistencies it finds. Most
messages in the Analyzer View tab have a severity of informational, warning, or
error, as described in Table 8-2.
Table 8-2: Analyzer messages (Sheet 1 of 10)
Message
Severity
Description
Solution
Filter or escalation
cannot run this
process command
Error
Filter or escalation
cannot run this
process command
Error
Invalid $PROCESS$
command
Error
Add a @@ or @serverName
reference to the $PROCESS$
command.
Error
Add a @@ or @serverName
reference to the Run Process
command.
Invalid server
reference
Error
This $PROCESS$
command must be
run on the client.
Error
Error
Field references
found in direct SQL
commands.
Error
Informational
196
Severity
Description
Solution
Warning
$PROCESS$ is used
as an assignment
value in a Set Fields
action
Informational
Informational
A display-only field
is not used in any
workflow
Informational
Informational
Chapter 8
197
Severity
Description
Informational
Global fields are display-only fields Change the global field to a type
other than the following types:
of the following types:
Solution
Informational
Informational
Applies only to UNIX servers. Back Set the following option in the
quotes should not be permitted in a ar.conf file:
Run Process command.
Allow-Backquote-InProcess-String:F
Informational
Duplicate message
numbers in Message
action
198
Severity
Description
Solution
EXTERNAL used in
the query
Informational
Informational
Because the order for the setting of Split the Set Fields action into
two or more Set Fields actions.
fields in active links at run time.
cannot be predicted, target fields
should not be used as source fields
in same Set Fields action.
Informational
The number of
aliases for a field is
not the same on each
form view
A selection field appears on several Make sure that each view has the
views of a form, but the number of correct number of aliases for the
aliases for the field is not the same selection field.
on each form view.
For example, consider a form with
two views: one in English and one
in Spanish. A selection field on
these views has four options. A fifth
is added to the field. An alias is
added to the English view but not to
the Spanish view, and the number
of aliases is inconsistent.
The English view now contains five
options and five aliases. The
Spanish view contains five options
and four aliases. Consequently, the
field on the Spanish view will
display four Spanish words and one
English word.
Chapter 8
199
Severity
Description
Solution
- <name> Password
has not been set
Warning
Application service
DSO user (if DSO is licensed)
DSO target (if DSO is licensed)
Mid tier (if the mid tier is
licensed)
Plug-in server
Plug-in target
!= operator
Warning
Warning
Window Open
Window Loaded
Display
After Submit
Warning
Warning
200
Severity
Description
Solution
Empty qualification
Warning
Warning
Field is not
appropriate for
indexing
Warning
Field used in
Warning
arithmetic expression
Warning
Warning
Chapter 8
201
Severity
Description
Solution
Large background
image used for form
Warning
LIKE operator is
followed by a
wildcard character
Warning
If you use the LIKE operator and a Avoid such queries where
possible.
wildcard at the beginning of the
string, the database will not use an
index, and the database will not be
able to use optimizations.
Additionally, the database might
perform a complete table scan.
Examples include 'A' LIKE
"%John" and 'A' LIKE
"_John".
Warning
No shell control
specified for active
link Run Process
actions
Warning
Applies to UNIX servers only. You Set this option in the Advanced
can specify shell control for running tab on the AR System
active link processes
Administration: Server
Information form.
202
Severity
Description
Solution
No subquery of an
AND qualification
uses an index
Warning
Warning
Warning
One of the
subqueries of an OR
qualification does not
use any index
Referenced fields do
not exist
Warning
Warning
Chapter 8
203
Severity
Description
Warning
The bounding box does not allow Resize the field so that the entire
the entire field to appear. For
field appears.
example, a selection field contains
two radio buttons. If five radio
buttons are added but the bounding
box is not made larger, the
bounding box is too small to
display all of the radio buttons.
OR
The [height|width]
of the [data|label]
box is too small to fit
the fields
[data|label].
Solution
Warning
Unused filter
Warning
Usage of != operator
Warning
Usage of NOT
operator.
Warning
No field found in
subquery
Warning (for
Oracle
databases)
Informational
(for all other
databases)
204
Severity
Length of field is
greater than 255
Description
Solution
$fieldID$)
Information
Chapter 8
205
To analyze the object in an application or working list, right-click its item in the
AR System Navigator and choose Analyze.
To open the Analyze Objects wizard with no objects selected, click the Analyze
Objects button in the BMC Remedy Developer Studio toolbar. In this case, you
choose the server on which to analyze objects in the first page of the wizard.
The Analyze Objects wizard displays the Select Objects page, shown in Figure 8-1.
206
2 To add objects, click the Add button and select them in the Add Items dialog box.
3 To remove objects, select them and click Remove, or click Remove All.
4 To determine which related objects are included in the analysis, select objects and
Object Only
Directly Related
Content
All Related
You can also click the Related column in the list and choose a setting.
For descriptions of the options, see the Form and Application Objects Guide,
Exporting object definitions, views, and applications, page 560.
5 Click Next to display the Select Rules page, shown in Figure 8-2.
Chapter 8
207
As BMC Remedy Developer Studio analyzes the objects, it displays the state of
analysis in the status bar and in the Progress tab.
When the analysis is complete, BMC Remedy Developer Studio displays the
results in the Analyzer View tab.
208
MessageThe text and details of the messages. The text is listed in Table 8-2 on
page 196.
The messages can be listed individually or grouped by message severity or any
of the columns. By default, the messages are grouped by related form name. In
Figure 8-3, some of the groups are expanded to show the individual messages.
Some of the messages can be expanded further to show details of the potential
problem.
RulesThe rules that defines the potential problems, as listed in Table 8-1 on
page 194.
NameThe names of the objects where the Analyzer found the potential
problems.
Related Form NameThe forms associated with the objects where the Analyzer
found the potential problems.
IgnoreThe results that are ignored. When you select results to ignore, the
settings are stored on the AR System Ignored Analyzer Results form. For
information about how to ignore results, see To ignore results on page 211.
Chapter 8
209
Message
Object Type
Name
Related Form
Severity
Result Summary
None
Field In Query
NOTE
The Field in Query option appears only if you selected Inefficient Queries in the
Analyzer wizard. If you choose Field in Query, the Message column lists the
objects that contain fields with inefficient queries. Click the plus sign next to the
object to drill down and learn how the fields are used inefficiently in queries.
The Description dialog box displays the message description and solution as listed
in Table 8-2 on page 196. Use the up and down arrow keys to view the descriptions
of other messages.
Click the plus sign before the message in the Messages column to display the
values of attributes of the message.
The object editor opens. If a field, workflow action, or Run If qualification is the
subject of the message, it is selected in the editor.
When Link With Editor is selected, each time you save an object in an editor, the
Analyzer analyzes that object only using all the rules and displays the resulting
messages.
210
To ignore results
1 Select one or more rows that contain the results or object types that you want to
ignore.
2 Right-click and choose Ignore.
3 In the Confirm dialog box that appears, select the appropriate option:
4 Click OK.
The settings are stored on the AR System Ignored Analyzer Results form.
For information about how to restore results that are ignored, see To restore
results that are ignored.
Results that are ignored appear, and a check mark appears in the Ignore column to
indicate that the results are to be ignored.
2 Select the results that you no longer want to ignore.
3 Right-click and choose Ignore.
4 In the Confirm dialog box, click Yes.
For a list of available options, see Options for Analyzer from a command line.
3 At the command line, run the batch file.
Chapter 8
211
Parameter
Description
-u
user
-p
password
-x
serverName
-w
authenticator
-portnum
TCPPortNumber
-o
CSVFilePath
-excludeIgnoredResults
-a
activeLinkName
-A
-f
formName
-F
-n
applicationName
-N
-q
escalationName
-Q
-t
filterName
-T
-r
relatedType
-modifiedAfter
date
none (default)
directly
all
content
-modifiedBefore
date
212
You can use the following percent (%) wildcard when specifying names for the a, -f, -n, -q, and -t options.
For example, TMS% analyzes all active links with a name beginning with TMS.
In the following example, the Demo user analyzes all of the filters on the
vmw23prem95 server, and the results are entered in the filter.csv file.
C:\Program Files\BMC Software\ARSystem\DeveloperStudio>analyzer
-x "vmw23prem95" -portnum 2044 -u "Demo" -p "" -T
-o "D:\csv\filter.csv"
INFO: Analyzer started: Tue Jul 07 13:13:22 GMT+05:30 2009)
Jul 7, 2009 2:13:27 PM
com.bmc.arsys.studio.analyzer.core.AnalyzerApplication
printResultCount
INFO: Analyzed 544 objects
1 Errors, 148 Warnings, 594 Infos
Jul 7, 2009 2:13:27 PM
com.bmc.arsys.studio.analyzer.core.AnalyzerApplication start
INFO: Analyzer completed: Tue Jul 07 18:13:27 GMT+05:30 2009)
In the following example, the Demo user analyzes the R_Like form with the
directly related option, and the results are entered in the like.csv file.
C:\Program Files\BMC Software\ARSystem\DeveloperStudio>analyzer
-x "premq617" -u "Demo" -p "" -f "R_Like" -r "Directly"
-o "D:\csv\like.csv"
INFO: Analyzer started: Tue Jul 07 14:08:11 GMT+05:30 2009)
Jul 7, 2009 2:08:14 PM
com.bmc.arsys.studio.analyzer.core.AnalyzerApplication
printResultCount
INFO: Analyzed 4 objects
0 Errors, 14 Warnings, 6 Infos
Jul 7, 2009 2:08:14 PM
com.bmc.arsys.studio.analyzer.core.AnalyzerApplication start
INFO: Analyzer completed: Tue Jul 07 14:08:14 GMT+05:30 2009)
Chapter 8
213
In the following example, the Demo user analyzes the forms that start with R, are
modified after June 1, 2009 but before July 1, 2009. The results are entered in the
wildcard_date.csv file.
C:\Program Files\BMC Software\ARSystem\DeveloperStudio>analyzer
-x "premq617" -u "Demo" -p "" -f "R%" -modifiedAfter "6/1/09"
-modifiedBefore "7/1/09" -o "D:\csv\wildcard_date.csv"
INFO: Analyzer started: Tue Jul 07 14:13:22 GMT+05:30 2009)
Jul 7, 2009 2:13:27 PM
com.bmc.arsys.studio.analyzer.core.AnalyzerApplication
printResultCount
INFO: Analyzed 20 objects
0 Errors, 14 Warnings, 94 Infos
Jul 7, 2009 2:13:27 PM
com.bmc.arsys.studio.analyzer.core.AnalyzerApplication start
INFO: Analyzer completed: Tue Jul 07 14:13:27 GMT+05:30 2009)
In the following example, the Demo user ignores the results that were specified
to be ignored in the Analyzer in BMC Remedy Developer Studio. (See To
ignore results on page 211.) The results are entered in the a3.csv file.
C:\Program Files\BMC Software\ARSystem\DeveloperStudio>analyzer
-x "premq617" -u "Demo" -p "" -f "a%" -o "D:\csv\a3.csv"
-excludeIgnoredResults
INFO: Analyzer started: Tue Jul 07 15:50:24 GMT+05:30 2009)
Jul 7, 2009 3:50:26 PM
com.bmc.arsys.studio.analyzer.core.AnalyzerApplication
printResultCount
INFO: Analyzed 11 objects
0 Errors, 4 Warnings, 2 Infos
Jul 7, 2009 3:50:26 PM
com.bmc.arsys.studio.analyzer.core.AnalyzerApplication start
INFO: Analyzer completed: Tue Jul 07 15:50:26 GMT+05:30 2009)
214
Appendix
Operators, wildcards,
keywords, and NULL values
This section provides descriptions of the operators, wildcards, and keywords that
you can use when defining qualification criteria or building field values. It also
discusses NULL values in fields and how they are used with AR System.
The following topics are provided:
215
Operators
This section describes how each operator is evaluated when you use multiple
operators in a qualification. You can use operators to build logical expressions. For
additional information, see Chapter 3, Building qualifications and expressions.
Operator types
The following table lists the operators that you can use when building a
qualification.
Table A-1: Operators (Sheet 1 of 4)
Operator
Action
AND (&&)
Logical AND of the result of two conditions. (The result is true if both
conditions are true.) For example, 'Status'="New" AND
'Assigned-to'="Andy" finds all new requests assigned to Andy. You
can use the symbol && instead of the word AND.
OR (||)
NOT (!)
Negates the condition that follows. (If the condition is false, the result is
true.) For example, NOT 'Status'="New" finds all requests that are not
new. You can use the symbol ! instead of the word NOT.
LIKE
216
Operators
Action
EXTERNAL()
string from the server's time. In the web client, the EXTERNAL operator
reads the date and time string from client's time zone.
For more information, see Double quotation marks on page 55.
Appendix A Operators, wildcards, keywords, and NULL values
217
Action
operator with fields that have other data types, such as Date/Time, an
error occurs.
<
Matches contents that are less than the value. For example,
'Create Date'<($TIMESTAMP$-86400) finds all requests created
more than 24 hours ago (where 86400 is the number of seconds in 24
hours).
>
Matches contents that are greater than the value. For example,
'Create Date'>"10/31/05 00:00:00" finds all requests created
after midnight on October 31, 2005.
!=
Matches contents that are not equal to the value. For example,
'Status'!="Closed" finds all requests that are not closed.
Note: If possible, avoid using the != operator when building
218
Operators
Action
<=
Matches contents that are less than or equal to the value. For example,
'Salary'<=10000 finds all requests with contents of the Salary field
less than or equal to 10000.
>=
Matches contents that are greater than or equal to the value. For example,
'Create Date'>="10/31/05" finds all requests created on or after
October 31, 2005.
Matches contents that are exactly equal to the value. For example,
'Status'=0 finds all requests with a status value equal to the first
selection value.
Operator precedence
When you use multiple operators to construct qualification criteria, they are
evaluated in the following order:
1 ( )
2 NOT (!) - (unary minus; an operator that takes only one operand; for example, -
2.5)
3 * / %
4 + 5 < <= > >= = != LIKE
6 AND (&&)
7 OR (||)
219
Wildcards
The following table lists the wildcards that you can use with the LIKE operator in
qualifications.
Table A-2: Wildcards
Wildcard Description
Supported database
To include leading and trailing characters, you must use the % symbol.
For example, to match Jill Bobbington, Bobby Fenton, Bob Compton,
and Bob Stone in the Submitter field, enter:
Informix
Oracle
Microsoft SQL Server
Matches any single character not within the specified set or range.
Example: [^abcf] matches all characters except a, b, c, and f.
[^a-f] matches all characters except the characters a, b, c, d, e, and f.
Wildcard symbols are interpreted as wildcards only when used with the LIKE
operator; otherwise, they are interpreted literally.
To use percent (%), underscore (_), or open bracket ([) characters as literal text in a
LIKE operation:
NOTE
On Oracle, you cannot use the LIKE operator to search for literal percent (%) or
underscore (_) characters.
220
Keywords
Numbers from 0 to 9
NOTE
If you need to use the bracket characters ( [ or ] ), you must follow the standard
regular expression rules and use and escape character (\) because brackets are
used to define the syntax. For example, you would use \] in order to use the close
bracket character.
Keywords
The following table lists the keywords that you can use when building a
qualification.
Table A-3: Keywords (Sheet 1 of 8)
Keyword
$ALT_KEY$
Value
To verify if the Alt key is pressed.
The value is set to 1 when the Alt key is pressed while starting
the workflow from a control field, a double-click or return on
a table field.
Any other value represents that the Alt key is not pressed.
$APPLICATION$
221
Value
$BROWSER$
$CLIENT_TYPE$
$CTRL_KEY$
$CURRENTWINID$
$DATABASE$
222
Keywords
Value
$DATE$
values are set. This allows the value to be set to the date the
form is submitted rather than the date the form is opened.
Consequently, the literal keyword is displayed in the field
before the request is submitted.
$DEFAULT$
$DRAGSRCFIELDID$
$DROPTGTFIELDID$
$ERRNO$
$ERRMSG$
The error message for the first error on the stack. Defined only
during filter error handler execution.
$ERRAPPENDMSG$
The appended message for the first error on the error stack, if
any. Defined only during filter error handler execution.
$EVENTDATA$
$EVENTSRCWINID$
223
Value
$EVENTTYPE$
The value that identifies the type of the event. The value
returned from $EVENTTYPE$ should be saved into a displayonly character field with a database length of zero (unlimited
length).
This keyword is NULL on the server.
$FIELDHELP$
The help text in the Help Text tab of the Field Properties
window.
Web applications do not support the $FIELDHELP$
keyword; it returns NULL.
This keyword is NULL on the server.
$FIELDID$
$FIELDLABEL$
The label of the field that currently has focus in the client.
$FIELDNAME$
The name of the field that currently has focus in the client.
$FILTER_ERRNO$
$FILTER_ERRMSG$
$FILTER_
ERRAPPENDMSG$
$GROUPIDS$
Returns the list of the group IDs of which the current user is a
member.
If there are no groups, the value is NULL. If there are groups,
the value is a string displayed in the following format:
;groupID;groupID;groupID;
$GROUPS$
$GUIDE$
$GUIDETEXT$
224
Keywords
Value
$HARDWARE$
0 = False
1 = True
default values are set. This allows the value to be set when
the form is submitted rather than when the form is opened.
Consequently, the literal keyword is displayed in the field
before the request is submitted.
$LASTID$
values are set. This allows the value to be set when the form
is submitted rather than when the form is opened.
Consequently, the literal keyword is displayed in the field
before the request is submitted.
225
Value
$LASTOPENEDWINID$
$LOCALE$
The language and country code for the specified locale, in the
format language_countryCode.
To view a list of the language and county codes, open a form
in BMC Remedy Developer Studio. In the Properties tab, click
in the Locale property. Locales appear in the Value list for the
property.
$NULL$
$OPERATION$
$OS$
$ROLES$
$ROWCHANGED$
0 = Loaded/unchanged.
1 = Modified.
2 = New.
3 = Deleted. The row is hidden from users but visible to
workflow.
0 = Not selected
1 = Secondary selection
2 = Primary selection
default values are set. This allows the value to be set when
the form is submitted rather than when the form is opened.
Consequently, the literal keyword is displayed in the field
before the request is submitted.
$SCHEMA$
226
Keywords
Value
$SCHEMA_ALIAS$
The singular alias used for a form. This is the forms active
alias, which comes from one of the request aliases of the active
view (VUI).
$SERVER$
$SERVERTIMESTAMP$
For Date/Time fields, the current date and time on the server.
For Time fields, the current time on the server.
For Date fields, the current date on the server.
Note: The $SERVERTIMESTAMP$ keyword is not expanded
when default values are set. This allows the value to be set
to the date and time (on the server) the form is submitted
rather than the date and time the form is opened.
Consequently, the literal keyword is displayed in the field
before the request is submitted.
$SHIFT_KEY$
$TCPPORT$
$TIME$
values are set. This allows the value to be set to the time the
form is submitted rather than the time the form is opened.
Consequently, the literal keyword is displayed in the field
before the request is submitted.
$TIMESTAMP$
default values are set. This allows the value to be set when
the form is submitted rather than when the form is opened.
Consequently, the literal keyword is displayed in the field
before the request is submitted.
$USER$
227
Value
$VERSION$
$VUI$
$VUI_TYPE$
$WEEKDAY$
values are set. This allows the value to be set to the day of
the week the form is submitted rather than the day of the
week the form is opened.
You can use the $OPERATION$ keyword in qualifications to determine whether the
filter or active link should execute on the current operation. For example, the
qualification $OPERATION$="SET" causes the filter or active link to execute when a
request is modified but not when a request appears in display mode. You can also
use this keyword to capture audit information. For example, setting a field to the
value:
"Filter X executed on operation "+$OPERATION$
tells you whether a filter executed during a submit operation (CREATE returned) or
a modify operation (SET returned).
Table A-4: $OPERATION$ values (Sheet 1 of 2)
228
$OPERATION$
value
Description
Filter
execution
conditions
Form mode
CREATE
Submit
New
DELETE
Delete
DIALOG
GET
Get
MERGE
Merge
QUERY
Dialog
Display
Search
Functions
Description
Filter
execution
conditions
Form mode
SET
Modify
Modify
SET ALL
Modify
Modify All
Functions
Table A-5 describes functions that you can use to specify field values in the
following workflow actions:
Open Window
Push Fields
Service
Set Fields
All functions listed in Table A-5 work with active links, filters, and escalations,
with the following exceptions:
The Hover, Listget, Listsize, Mapget, and Template functions work only in
active links.
The Encrypt and Decrypt functions work only in filters and escalations.
Arguments
Return
Description
AR_FUNCTION_
DROPPEDROWINDEX
(field ID)
int
AR_FUNCTION_
(field ID)
DROPPEDCOLUMNINDEX
int
229
Arguments
Return
Description
COLAVG
(column)
any
(matches
column)
COLCOUNT
COLMAX
(column)
any
(matches
column)
COLMIN
(column)
any
(matches
column)
COLSUM
(column)
any
(matches
column)
230
Functions
Arguments
CURRCONVERT
(currency, type,
timestamp)
Return
Description
For a given currency, converts currency to a
different type according to new date, and
recalculates the functional currency values.
Use syntax such as:
CURRCONVERT($currencyField$,
$currencyField2$.TYPE$, $TIMESTAMP$)
Use other values for the type and timestamp, such
as a character field and a date field. For example:
CURRCONVERT($currencyField$,
$characterField$, $dateField$)
For information about data conversion rules for
currency fields, see the Form and Application
Objects Guide, Workflow considerations,
page 374.
CURRSETDATE
(currency,
timestamp)
CURRSETTYPE
(currency, type)
231
Arguments
CURRSETVALUE
(currency, value)
Return
Description
For a given currency, sets new value of currency
and recalculates the functional currency values.
Use syntax such as:
CURRSETVALUE($currencyField$,
$currencyField2$.VALUE$)
Use another field to set the currency value, such as
a decimal field. For example:
CURRSETVALUE($currencyField$,
$decimalField$)
For information about data conversion rules for
currency fields, see the Form and Application
Objects Guide, Workflow considerations,
page 374.
DATE
(timestamp)
DATEADD
char
(datepart,
int
startdate, enddate)
232
Functions
Arguments
Return
Description
DATENAME
(datepart, date)
char
(datepart, date)
int
(timestamp)
DECRYPT
(cyphertext, key)
int
233
Arguments
ENCRYPT
(plaintext, key)
Return
Description
Used in Set Fields filter actions only. Returns the
encrypted value of a text string (plaintext), using
the encryption key (key). The return value is larger
than the size of the unencrypted string.
For example, to encrypt the string in Field1 using
the key my_key, enter:
ENCRYPT($Field1$, "my_key")
To encrypt a string using a key in KeyField, enter:
ENCRYPT("wordToEncrypt", $KeyField$)
Note: Use this function with character fields only.
(timestamp)
int
HOVER
(column)
char
(char,int)
char
LEFTC
(char,int)
char
234
Functions
Arguments
Return
Description
LENGTH
(char)
int
(char)
int
LISTGET
(fieldid, index)
string
LISTSIZE
(fieldid)
int
LOWER
(char)
char
characters.
LPAD
(char,int,char)
char
235
Arguments
Return
Description
LPADC
(char,int,char)
char
LTRIM
(char)
char
MAPGET
(fieldid, key)
int, string
(any,any[,any]...)
any
(matches
input)
236
Functions
Arguments
Return
Description
MIN
(any,any[,any]...)
any
(matches
input)
MINUTE
(timestamp)
int
MONTH
(timestamp)
int
REPLACE
(char,char,char)
char
RIGHT
(char,int)
char
237
Arguments
Return
Description
RIGHTC
(char,int)
char
ROUND
RPAD
(char,int,char)
char
RPADC
(char,int,char)
char
RTRIM
(char)
char
SECOND
(timestamp)
int
SELECTEDROWCOUNT
(tableId)
int
238
Functions
Arguments
Return
Description
STRIPHTML
(field ID)
char
STRSTR
(char,char)
int
STRSTRC
(char,char)
int
SUBSTR
(char,int [, int])
char
239
Arguments
Return
Description
SUBSTRC
(char,int [, int])
char
TEMPLATE
(char,char,char,...)
char
TIME
(timestamp)
TRUNC
char
UPPER
(char)
char
characters.
WEEKDAY
(timestamp)
int
YEAR
(timestamp)
int
240
Search for all tickets (without any conditions) results in 20 records returned.
Search for all tickets where 'Field X' = NULL results in 5 records returned.
Search for all tickets where 'Field X' = "Yes" results in 7 records returned.
Search for all tickets where 'Field X' = "No" results in 8 records returned.
If you now search for all tickets where 'Field X' != "Yes", you might expect to
receive 13 records returned (8 records where the field is No and 5 where it is NULL)
but you receive only 8 records. This is correct behavior according to the rules of
relational algebra. NULL is NULL; that is, it has no value. You must explicitly look for
NULL values as they are not implicitly included in queries that search for values.
Relational algebra does not follow Boolean logic, where conditions are either true
or false. Instead, every condition evaluates as one of TRUE, FALSE, or UNKNOWN. This
is called three valued logic. The result of a comparison is UNKNOWN if either value
being compared is the NULL value. Rows satisfy a search condition if the result of
the condition is TRUE. Rows for which the condition is UNKNOWN do not satisfy the
search condition.
The only way to find a row with a NULL value for a field in a search is to explicitly
search for whether the field has a NULL value. Testing for NULL is the only case that
a NULL value matches. So, in the example, to find all entries that are not Yes or are
NULL, the qualification is
'Field X' != "Yes" OR 'Field X' = NULL
Appendix A Operators, wildcards, keywords, and NULL values
241
If Field C has a NULL value, the second clause evaluates to UNKNOWN. Since the
operation is an OR, the result of the qualification depends on whether Field A is
set to 5 (success) or not (failure).
An alternative to using NULL is to have a value or state that represents unknown.
Then, you always assign the value of Yes, No, or Unknown. Filters can be used to
assign Unknown if the field is NULL. Then, the field always has a value and you do
not have the issue about working with a NULL value.
If processing used strict relational algebra, and the Middle Initial was NULL, the
name assigned is be NULL. According to relational algebra, a NULL value within an
operation causes the result of the operation to be NULL.
Instead, AR System treats a NULL value within workflow actions (other than
queries) as follows:
In the example, the name is assigned the First and Last name without middle
initial.
By treating a NULL value as an empty value rather than as UNKNOWN in a true
relational algebra sense, the result is what is expected instead of a NULL value.
242
Appendix
Appendix B
243
NOTE
You can also use vendor forms to access external data, which could reduce the risk
of exposing your application to any issues with the other source. For information
about accessing external data using vendor forms, see the Integration Guide,
Vendor forms, page 183.
The ability to submit SQL statements enables you to issue complex queries to the
database. This is useful if you want to use database features specific to a particular
database platform.
The SQL statement you use to set a field value in the Set Fields action has a
different result than the Direct SQL action (see Direct SQL action on page 83). In
the Set Fields action, you use SQL to search the database for information and then
use the returned values to set fields. With the Direct SQL action, the SQL command
is not expected to return a value.
To run more than one SQL command, use stored procedures or functions or any
other extension supported by your database. A stored procedure with a Set Fields
action executes all its commands but does not return a value.
For the most effective use of SQL statements, you must have a general
understanding of relational databases and a specific understanding of the
relational database underlying your AR System.
WARNING
Because AR System passes SQL commands to the database without checking the
syntax, all commands are submitted to the database. Make sure all submitted
commands achieve the needed result. Your SQL commands should comply with
ANSI SQL standards, so that single quotes are reserved for strings, and double
quotes are reserved for use with database object names only.
For active links, select the server that contains the value that you want to
retrieve.
244
For example, you can enter an SQL statement with a command to display three
columns of data from a table and sort the data in ascending order based on the first
column:
SELECT BUG_ID, FIRST_NAME, TECHNCN FROM CUSTMR_INFO
ORDER BY 1 ASC
Figure B-1: SQL statement with SELECT command in SQL Query field
NOTE
Enter only one SQL command for each Set Fields action. Do not end the SQL
command with run or go.
Appendix B
245
Use the SQL Query field menu button to insert field values or keywords in the SQL
statement using the Expression Editor. As shown in the following example, fields
and keywords must be enclosed in dollar signs to indicate that the server should
expand these values before issuing the command:
SELECT BUG_ID, FIRST_NAME, TECHNCN FROM CUSTMR_INFO WHERE
colName = '$field$'
You might have to insert single quotation marks manually around the parameter,
depending on the content of the expanded value and the context in which you are
using it. For example:
If colName is a character field in the CUSTMR_INFO table, you must add single
quotation marks around $field$ so that the database interprets the expanded
field value as a character string.
If colName is a numeric field, using the single quotation marks results in an SQL
syntax error.
You also get an SQL syntax error if you omit the quotation marks but field
contains character data.
NOTE
AR System does not verify the validity of your SQL command. The syntax you use
must be recognized by the underlying SQL database on which AR System is
running.
4 From the If No Requests Match list, select a handling option to control how the
the system responds when the SQL command returns multiple matches.
For more information about the options in this step, see step 7 in To use the
SERVER data source on page 132.
6 From the Name list, select the field that you are setting with this action.
Figure B-3: Selecting field being set
246
7 From the Value list, select SQL Result Column, and then select $n$.
The $n$ variable represents the number of a column in the SQL result table
constructed from the results of the SQL command. When the active link, filter, or
escalation executes:
a The SQL command is issued to the database.
b The results of the SQL command are used to construct an SQL result table.
c The value from column 1 of the SQL result table is loaded into the field that
contains a $1$, the value from column 2 of the SQL result table is loaded into the
field that contains a $2$, and so on.
1
BUG_ID
5000
5001
5002
2
FIRST_NAME
Mary
John
Mark
3
TECHNCN
Zan
Fran
Tran
Because this action also specifies that multiple matches should display a selection
list, a selection list of available SQL result table entries appears when the active link
executes.
If you select the second selection list entry, the contents of BUG_ID are loaded into
the Long Description field ($1$), the contents of FIRST_NAME are loaded into the
Short Description field ($2$), and so on, as shown in the following figure.
Appendix B
247
2
FIRST_NAME
Mary
John
Mark
3
SELECT
BUG_ID, FIRST_NAME, TECHNCN FROM CUSTMR_INFO
TECHNCN
Zan
1
Fran
Tran
BUG_ID
5000
5001
5002
2 from the
Values
3Fields and
Database Columns
Keywords
FIRST_NAME
TECHNCN
Mary
Zan
5001
John
Fran
Mark
Tran
John
Fran
NULL
Entering a $4$ variable value without an actual fourth column in the SQL
command inserts a NULL value into the field.
248
You need not use every value that is returned from the SQL command. If you do
not use any values from the SQL command, the Set Fields action acts like the
default selection CURRENT SCREEN (active links) or CURRENT
TRANSACTION (filters or escalation), and the system removes your SQL query.
You can use the same value in more than one field.
You can issue only one SQL command per action. You cannot enter two
commands separated by a semicolon and have both commands run. To run a set
of commands, create separate actions, or create a stored procedure and run that.
However, stored procedures do not return values.
Turn on AR System server SQL logging to debug the SQL syntax if it returns
unexpected values or results. A good debugging strategy is to start an SQL
interpreter (for example, isql for Sybase, SQL*Plus for Oracle, Command
Center for IBM DB2, or Microsoft ISQL/w for Microsoft SQL Server) and to
enter the same SQL command directly into the database to verify its validity.
Because there is no error checking on the SQL statement, run the SQL statement
directly against the database (as a test) before you enter it into the SQL
Command field. You can then copy and paste the tested SQL command directly
into the SQL Command field.
If the SQL operation fails, an AR System error message and the underlying
database error message appear.
You can affect database performance by how an SQL query is written. If the row
has many columns, a SELECT * SQL command can have a greater performance
impact than if you select specific columns. For more information, see your
relational database documentation.
For Oracle, Microsoft SQL Server, and Sybase databases, the ARAdmin user (or
the AR System Database User defined during installation).
For Informix databases, the user who controls the arserverd process.
Depending on which database you are using, the data must be accessible to the
user issuing the command. If you are running AR System as one of these users
without permission to access the database, you cannot issue the SQL command.
To access databases other than AR System databases, use the database name as
part of the SQL command syntax, for example, using MS SQL:
DatabaseName.owner.table
getafix.ARAdmin.CUSTMR_INFO
Appendix B
249
4 In the Plugin Name field, enter the name of a filter API plug-in service.
From the list, you can also select a field that contains a service name. The service
name is passed to the plug-in server. If the plug-in server is running and the service
exists, the request is processed. Otherwise, the Set Fields action fails and an error
is logged.
The Plugin Name list contains all filter API plug-ins that are registered with the
plug-in server. For more information, see the C API Reference, AR filter API plugin functions, page 568.
5 From the Enter Input Values list, enter the values to be passed to the filter API
plug-in.
6 After you create a value, click Add to enter it into the Input Value List.
7 Repeat steps 5 and 6 for each value you want to add.
8 In the Input Value List, make any necessary changes:
Edit a value by clicking it, changing its value, and then clicking Modify.
Change the field type by clicking the description and using the drop-down list
to select a different type, for example, Integer instead of Char.
The $n$ variable represents the values that are returned by the filter API plug-in
service, where n is the index of the value in the returned value list. The menu list
provides values up to 20, but you can enter any value. The $n$ variables work
much like the values returned by the SQL command, as described in To assign a
value by submitting an SQL command on page 244.
250
You can combine these values using functions and operations, for example, $4$ +
$3$, that combine the fourth value and the third value of the output value list
returned by the filter API.
NOTE
If you do not specify any filter API output values when you save the filter or
escalation, it is saved as an ordinary Set Fields action. If you specify an invalid $n$
variablefor example, the filter API returns only four values but you specify
$5$this action is equivalent to assigning a NULL value.
When the filter or escalation executes:
a The service name and input list value are passed from the AR System server to
server.
d The plug-in server passes the value to the AR System server.
e The AR System server fills the fields with the output values that were returned
Table A-5 on page 229 describes each function that AR System supports.
2 Select the appropriate function.
The function appears in the field with a set of parentheses to its right.
Appendix B
251
3 For the selected function, enter the arguments within the parentheses.
Table A-5 on page 229 describes each function that AR System supports.
4 Repeat steps 1 through 4 for each field that you want to set with a function.
NOTE
If the value of any of the arguments of a function is NULL, the result of the function
is NULL (the field is empty). To avoid this result, use a qualification that verifies the
operation and includes a value for all arguments. For filters and escalations, if you
use an empty field as a parameter in a function, it is considered a NULL value. The
exception to this rule is the third parameter for the REPLACE function. If the third
parameter is NULL, it is interpreted as an empty string.
LPAD
RPAD
MAX
MIN
SUBSTR
252
WARNING
If the process runs on the server, it uses the permissions of the user who started the
AR System server. If the process runs on the client, it uses the permissions of the
user who started BMC Remedy User. This can have security implications for your
system.
The syntax identifies where the process that you want to run is located.
For active links, you can run a process in the following ways:
where ARSserver is the name of a specific AR System server where the process
runs.
For filters or escalations, the syntax for loading the return of a process is as follows:
$PROCESS$ processToRun
The $PROCESS$ tag indicates that all text that follows is a command line. The
command line can include substitution parameters from the current screen to
enable values to be placed into the command line before it is executed. The
command cannot exceed 4096 bytes after the substitution parameters are
expanded. The actual maximum length is limited by the operating system in use
with AR System. Select substitution parameters (and the $PROCESS$ string) from
the Value list.
For a list of available $PROCESS$ commands, see Process commands on
page 261.
Appendix B
253
254
Adjust your command syntax appropriately for the platform on which your
server is running and include the explicit path to the command; for example, /
home/jim/bin/command. In a Windows environment, you also must specify the
drive; for example, d:\home\jim\bin\command.bat.
On a Windows server, you can only run a process that runs in a console (such as
a .bat script or runmacro.exe).
Use double quotation marks around substituted fields when the values might
contain spaces or other special characters; for example, /bin/cmd "$field$".
Substituted field values that contain hard returns or other special characters can
have unexpected results.
NOTE
If you include a process result or DDE result (active links only) in a mathematical
operation, the process definition must not be contained within parentheses and it
must be the last item in the operation because all data after the tag $PROCESS$ or
$DDE$ is considered to be part of the command line or DDE definition.
In some cases, arithmetic operators can also be used for concatenation. Some
examples of valid arithmetic operators are:
$TIMESTAMP$ - $CREATE-DATE$
$FIRST NAME$ + " " + $LAST NAME$
"hostname = " + $PROCESS$ hostname
Appendix B
255
256
Appendix
Appendix C
257
Overview
AR System provides a set of commands that you can use with Run Process actions
and the $PROCESS$ keyword in Set Fields actions. These process commands do not
cause the system to run an external operating system process. Instead, the
AR System server or client recognizes these commands and performs the
operations directly.
Application type process commands always run on the AR System server. Other
process commands can run on the client or the AR System server as appropriate to
the action.
To capture a result from the process, you must use Set Fields with $PROCESS$.
You can then use the result from the process in subsequent workflow.
The Run Process action starts an asynchronous process. This means that the
next workflow action is executed immediately, without waiting for results
from the Run Process action. If the Run Process action fails or returns an error,
the remaining workflow still runs.
Filter phasing:
For information about filter phases, see Filter processing in the AR System
server on page 177.
NOTE
If necessary, you can use a special filter naming convention to cause a Run Process
action to run in filter phase 1. See Overriding filter processing phasing on
page 184.
For more information about using the results from a Set Fields action with
$PROCESS$, see Assigning values from process results on page 253.
258
To run the process from a Set Fields action with the $PROCESS$ keyword, enter
$PROCESS$ before the command. This indicates that whatever follows is the
process command. For example:
$PROCESS$ @@:processCommand {parameters]
For PERFORM-ACTION commands and other workflow commands, simply enter the
command and its arguments. The workflow engine determines whether the
command runs on the client or on the current server.
Appendix C
259
Surround any keywords with quotation marks in case the substituted value
contains spaces or special characters.
If a value contains one or more quotation marks, double the quotation marks
and put quotation marks around the entire parameter.
Syntax
AR System
"AR System"
AR System User
$SCHEMA$
"$SCHEMA$"
Application-Parse-xxx
Application-Format-xxx
Application-Query-Delete-Entry
The form name parameter is quoted to keep it as a single argument. However, for
the final argument (the qualification '536870913' = "Fred"), there are no
surrounding quotation marks for the full expression.
260
Process commands
Process commands
When you create a Run Process action or a Set Fields action with $PROCESS$, BMC
Remedy Developer Studio enables you to select any of the commands described in
this section. You must understand how each command operates to determine
whether it is appropriate to use in your workflow.
Table C-2 describes Application commands, and Table C-3 on page 271 describes
the PERFORM-ACTION and related workflow commands. Along with the syntax and
description for each command, the tables include the following information:
Column
AL only
Returns a value
Table C-2 describes Application commands, which are always executed on the
server. If you use one of these commands in an active link, you must use the
@@:processCommand or @serverName:processCommand or syntax.
Table C-2: Application commands (Sheet 1 of 10)
AL Filter or Command and description
only Esc only
Returns
a value
1Seconds
2Minutes
3Hours
4Days
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Bus-Time-Diff "startTime" "endTime"
[ "holidayScheduleName" [ "workdayScheduleName" ] ]
Returns an integer that represents the number of seconds between the start and stop
time, taking business hours into account.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Appendix C
261
Returns
a value
+
] ] ] ]
Returns a new time that is the requested offset into the past, taking business hours
into account.
Offset is a value of 0 or greater than 0. The default is 1 hour.
Offset unit values are:
1Seconds
2Minutes
3Hours
4Days
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Bus-Time2-Add "startTime" [ "amount"
[ "amountUnits" [ "businessTimeSegmentName1"
"businessTimeSegmentName2" ... ] ] ]
Performs a business time calculation by starting with the start time and resulting in
a new time that adds the requested offset. The command returns a timestamp
representing the time calculated. Use this command to recalculate time into the
future.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Bus-Time2-Assoc-Add "startTime" [ "amount"
[ "amountUnits" [ "businessTimeSegmentName1"
"businessTimeSegmentName2" ... [ -e "EntityID1" "EntityID2" ... ] ]
] ]
This command contains EntityID parameters, so you do not need to query the
Business Segment-Entity Association form.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Bus-Time2-Assoc-Diff "startTime" "endTime"
This command contains EntityID parameters, so you do not need to query the
Business Segment-Entity Association form.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Bus-Time2-Assoc-Get-Free-Window "startTimeRange"
"endTimeRange" "level" "duration" "earliestStartTime"
"latestEndTime" [ "businessTimeSegmentName1"
"businessTimeSegmentName2" ... [ -e "EntityID1" "EntityID2" ... ] ]
This command contains EntityID parameters, so you do not need to query the
Business Segment-Entity Association form.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
262
Process commands
Returns
a value
Application-Bus-Time2-Assoc-Get-Next-Window "startTimeRange"
"endTimeRange" "duration" "windowFlag"
[ "businessTimeSegmentName1" "businessTimeSegmentName2" ... [ -e
"EntityID1" "EntityID2" ... ] ]
This command contains EntityID parameters, so you do not need to query the
Business Segment-Entity Association form.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Bus-Time2-Assoc-Subtract "startTime" [ "amount"
[ "amountUnits" [ "businessTimeSegmentName1"
"businessTimeSegmentName2" ... [ -e "EntityID1" "EntityID2" ... ] ]
] ]
This command contains EntityID parameters, so you do not need to query the
Business Segment-Entity Association form.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Bus-Time2-Diff "startTime" "endTime"
[ "businessTimeSegmentName1" "businessTimeSegmentName2" ... ]
Performs a business time calculation by computing the difference between the start
time and the end time. The return is an integer representing the difference in
seconds. Use this command to compare two different times (start time and end time)
to get the actual business time.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Bus-Time2-Get-Free-Window "startTimeRange"
"endTimeRange" [ "level" ] [ "duration" ] [ "earliestStartTime" ]
[ "latestEndTime" ] [ "businessTimeSegmentName1"
"businessTimeSegmentName2" ... ]
Returns the start of the next available or unavailable free time segment at the same
level or a higher level that is duration seconds long.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Bus-Time2-Get-Next-Window "startTimeRange"
"endTimeRange" [ "duration" ] [ "windowFlag" ]
[ "businessTimeSegmentName1" "businessTimeSegmentName2" ... ]
Returns the start of the next available or unavailable time segment that is duration
seconds long. If duration is 0 (the default), the command returns either the start of
available time segment or the start of the unavailable time segment.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Appendix C
263
Returns
a value
+
Performs a business time calculation by starting with the start time and resulting in
a new time that subtracts the requested offset. The command returns a timestamp
representing the time calculated. Use this command to recalculate time in the past.
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Application-Command AE-ASSIGN DoAssign -t "processName"
-e "RequestID"
Runs a specified Assignment Engine process.
processName is the name of the process to run. It must match the process name in
the Processes tab of the Assignment Engine Administration Console.
RequestID is the ID of the request on which the process will run. For active links,
the request ID is required. For filters, it is optional.
For information about the Assignment Engine, see the Configuration Guide, Using
the Assignment Engine, page 265.
Application-Confirm-Group groupID
Verifies that the current user is a member of the specified group. Returns one of the
following integers:
This command is not context sensitive for a given entry. Validation of group IDs 0,
3, 4, or 7 returns 1.
Application-Confirm-Password password
Validates if the password is the password for the current user. For password, you
can use a reference to the field that contains the password, such as field 102 or field
103. This command returns one of the following integers:
If you used AR System version prior to 6.0 to create workflow involving a Password
field (ID 102), the workflow might not function in AR System versions 6.0 and later.
Version 6.0 included enhanced encryption and tighter security controls. To work
around this issue, use the Application-Confirm-Password $PROCESS$
command.
For more information about the Password field, see the Form and Application Objects
Guide, Reserved fields in access control, page 480, and the Configuration Guide,
Adding and modifying user information, page 57.
264
Process commands
Returns
a value
To get the return value, use this command in a Set Fields action with $PROCESS$.
This command cannot be used in a Run Process action.
Application-Delete-Entry "formName" entryID
For more information about server events, see the Configuration Guide, Working
with the Server Events form, page 197.
+
Appendix C
265
Returns
a value
Generates a globally unique identifier (GUID). The prefix can be a maximum of two
characters, which can contain non-alpha characters (although alpha characters are
recommended). If you do not include the GUID prefix, it defaults to ID.
+
Application-Get-Approval-Join "form"
Retrieves the name of the join form between the application and the AP:Detail form.
In the result, the form names are separated by spaces, for example:
AP-Sample:Lunch-Detail
AP:Detail
Process commands
Returns
a value
Application-Get-Approval-Join2 "form"
Retrieves the name of the join form between the application and the AP:Detail form.
In the result, the form names are separated by new lines, for example:
AP-Sample:Lunch-Detail
AP:Detail
This command is used for the Approval Server.
+
Application-Get-DetSig-Join "form"
Retrieves the name of the join form between the three-way join form (join between
the application form and AP:Detail-Signature) and the names of the AP:DetailSignature form, AP:Detail form, and AP:Signature form. In the result, the form
names are separated by spaces, for example:
AP-Sample:Lunch-Detail-Signature
AP:Detail
AP:Signature
AP:Detail-Signature
Application-Get-DetSig-Join2 "form"
Retrieves the name of the join form between the three-way join form (join between
the application form and AP:Detail-Signature) and the names of the AP:DetailSignature form, AP:Detail form, and AP:Signature form. In the result, the form
names are separated by new lines, for example:
AP-Sample:Lunch-Detail-Signature
AP:Detail-Signature
AP:Detail
AP:Signature
This command is used for the Approval Server.
+
Retrieves the appropriate form alias for the specified form and VUI. If you do not
include a VUI, the default VUI is used.
+
Retrieves the form name for the specified form alias and VUI. If you do not include
a VUI, the default VUI is used.
+
Application-Get-License-Count "licenseName"
Retrieves the number of licenses of the specified type. Use the license name that is
used in the License Tool.
+
For more information, see the Configuration Guide, Using Business Time in the
AR System server, page 215.
Appendix C
267
Returns
a value
Application-Invalidate-User userName
Writes an invalid string for the password value to disable the current users account.
The userName parameter can be hard-coded, the keyword $USER$, or referenced
from a field. For syntax information, see Process command syntax on page 259.
+
For example, to map the IDs in the given string to names using labels where
appropriate, enter:
Application-Map-Ids-To-Names-L "My Form" "" $536870913$
An empty string for the VUI denotes the default VUI for the form.
+
For example, to parse the qualification string into its internal representation, enter:
Application-Parse-Qual "My Form" Integer Field = 99
The qualification string does not need double quotation marks around it because all
data after the form name is treated as the qualification string.
+
268
Process commands
Returns
a value
Appendix C
269
Application-Release-Pending
Causes database operations generated by the current workflow to be sent to the
database immediately. In a filter, this command changes the usual filter phasing and
causes the Run Process action to run in phase 1.
Note: Use this advanced feature with caution. The command allows workflow to see
Application-Set-Filter-Phasing "value"
Determines whether form entries are created when the workflow operation to create
them occurs or whether they are created in bulk during a later filter phase. When
issued, this command affects all subsequent entry create operations for the current
API call. Entries already created as a result of the call are not undone. The effect of
the command lasts for the duration of the API call or until the command is reissued
with a different value.
value can be 1 or 0:
Important: If the create phase is delayed, the entries are not immediately added to the
270
Returns
a value
Process commands
Table C-3 describes PERFORM-ACTION and other workflow commands, which are
executed by the workflow engine and can run on the client or the server as
appropriate.
Table C-3: PERFORM-ACTION and other workflow commands (Sheet 1 of 14)
AL only Filter or Command and description
Esc only
+
Returns
a value
GET-CHANGE-FLAG
Gets the change flag status of the current window. 1 means that changes were
made, and 0 means that no changes were made.
+
PERFORM-ACTION-ACTIVE-LINK
Executes all active links associated with the specified Execute On condition (and
field ID, as needed). The active links fire as if the Execute On condition indicated
occurred. For example, PERFORM-ACTION-ACTIVE-LINK 8 specifies to run all
On Modify active links as if a modify operation was performed. The active links
fire, but no modify is actually performed.
The options for this command are as follows:
Appendix C
271
1: Canceled
2: Failed
For filters and escalations, the field ID must be an attachment field, and the file
name is required.
For active links:
The file name is optional. If omitted, a Browse dialog box is displayed to allow
you to select a file name. (If viewed in a web browser, a Browse dialog box is
always displayed.)
The field ID can be an attachment field or an attachment pool.
If the field ID is an attachment field, the attachment is added to the specified
field. If the field has a value, the existing value is overwritten.
If the field ID is an attachment pool, the attachment is added to the first
available field within the pool that has no attachment. If no attachment meets
this criteria within the pool, no action is taken.
Note: If you use this command in a filter with a Run Process action instead of in a
Set Fields action, you must use the filter phase override naming convention
filterName`!. This causes the action to run in filter phase 1 so that the
changes are committed to the database. See Using a special override naming
convention on page 185.
+
PERFORM-ACTION-APPLY
If the form is open in Search mode, performs the Search operation (clicks the
Search button). In Modify or New mode, performs the Apply or Save operation.
Note: The only difference between the PERFORM-ACTION-APPLY process
command and the Commit Changes action is that the Commit Changes
action works differently in conjunction with a dialog box. The PERFORMACTION-APPLY process command has no effect on a dialog box, it only works
with regular forms.
+
PERFORM-ACTION-CHANGE-MODE mode
Changes the mode of the form.
PERFORM-ACTION-CLEAR-PROMPTBAR
Clears the prompt bar of all messages. This command is useful to run before
custom validation occurs (through PERFORM-ACTION-VALIDATE_NULLREQUIRED-FIELDS) if the prompt bar will not be cleared automatically.
272
Returns
a value
+
Process commands
Returns
a value
PERFORM-ACTION-DELETE-ATTACHMENT fieldID
1: Canceled
2: Failed
Note: If you use this command in a filter with a Run Process action instead of in a
Set Fields action, you must use the filter phase override naming convention
filterName`!. This causes the action to run in filter phase 1 so that the
changes are committed to the database. See Using a special override naming
convention on page 185.
+
PERFORM-ACTION-EXIT-APP
Exits the Windows client or logs out of the web client.
PERFORM-ACTION-GET-ENTRY entryID
Retrieves the entry based on the entry ID.
This command is applicable only for the Display and Modify modes.
For information about the related features, see Ability to modify data on display
forms on page 285.
PERFORM-ACTION-GET-FIELD-LABEL fieldID
Returns a field label. Use this command in a Set Fields action with $PROCESS$ to
obtain the return value.
+
PERFORM-ACTION-GET-PREFERENCE fieldID
Gets the value of the field you specify from the User Preference form.
If the field contains a list of values, then it gets the value for preferenceName.
For example, to get the value of the User Locale field, enter the following
command:
PERFORM-ACTION-GET-PREFERENCE 20121
where 20121 is the field ID of the User Locale field.
To find the field ID:
1 Open the AR System User Preference form in BMC Remedy Developer Studio.
2 Select the field in question, and find the ID property in the Properties tab.
PERFORM-ACTION-GO-HOME
Opens the form configured as your home page.
PERFORM-ACTION-SHOW-TOOLBAR [Value]
Shows or hides the toolbar on a form.
If the value to set to 1, the form displays the toolbar. Otherwise, the form hides the
toolbar.
This command is available for all modes, except Dialog and Popup.
For information about the related features, see Ability to modify toolbar option
on page 285.
Appendix C
273
Returns
a value
PERFORM-ACTION-HOME-FIELD-REFRESH
Refreshes the Application List field on the home page form. Typically, you use this
command to display a subset of entry points based on the values that are
dynamically entered into the reserved character field ID 1576.
PERFORM-ACTION-NAV-FIELD-SET-SELECTED-ITEM navbarItemID
Set focus to the specified navigation bar item.
PERFORM-ACTION-NEXT
Moves to the next request in the Results pane and displays the details in the Details
pane.
PERFORM-ACTION-OPEN-ATTACHMENT fieldID
Opens an attachment from an attachment field, and returns a value of 0
(Successful). If the attachment is not opened, the command returns one of the
following codes:
274
1: Canceled
2: Failed
Process commands
Returns
a value
PERFORM-ACTION-PREV
Moves to the previous request in the Results pane and displays the details in the
Details pane.
PERFORM-ACTION-REFRESH-PREFERENCE flag
Refreshes the preferences for BMC Remedy User. The flag options are:
1Saves all modified preferences from BMC Remedy User to the preference
server, and then reloads from the preference server.
0Discards all modified preferences in BMC Remedy User and reloads from
the preference server.
Appendix C
275
1Canceled
2Failed
For filters and escalations, the file is saved on the server machine. The field ID must
be an attachment field, and the file name is required.
For active links:
Note: If you use this command in a filter with a Run Process action instead of in a
Set Fields action, you must use the filter phase override naming convention
filterName`!. This causes the action to run in filter phase 1. See Using a
special override naming convention on page 185.
+
Note: In the web client, an Open Window active link action can open a form in the
current window. This window does not have a parent window, so a target
value of @ is not valid in this case.
# The pound sign character signifies all child windows of the current window.
*The asterisk character signifies all windows managed by the client
environment, even the current window.
eventTypeThe name of the event. This is an arbitrary string defined by the
application author (for example, ChildClosed). The receiving workflow can
access the value of eventType through the EVENTTYPE keyword.
eventDataThe data for the event.
FdataVisualizationModuleFieldIDThe target for sending events is the
module field in the current form.
For more information, see Sending events between windows on page 295 and
Ability to highlight required fields through workflow on page 286.
276
Returns
a value
+
Process commands
Returns
a value
value is stored in the corresponding field (for example the User Locale field in
the Locale tab).
This is the format or value you specify for the value argument.
Appendix C
277
tableFieldIDThe ID of the table field to which to add the row. This value is
required.
rowIndex (Optional)The position (row index) at which to insert the row. (Row
indexes are based on the version of the table in the client memory data
structure.)
The specified index determines the actions that occur as follows:
0Invalid row index. The current selection and highlight are not changed.
Greater than 0 and less than 100,000,000A row is inserted at the specified
index, selected, and highlighted. Workflow is then fired on the new row.
Greater than 100,000,000A row is inserted at rowIndex - 100,000,000. For
example, if the specified index is 100,000,005, the row is inserted at index 5.
The new row is selected but not highlighted. Workflow is then fired on the
new row.
Less than 0 and greater than -100,000,000A row is inserted at the specified
index multiplied by -1. For example, if the specified index is -500, a row is
inserted at index 500. The new row is selected and highlighted. Workflow is
then fired on the new row.
Less than -100,000,000A row is inserted at rowIndex + 100,000,000. For
example, if the specified index is -100,000,500, a row is inserted at index -500.
The new row is selected, but it is not highlighted. Workflow is not fired.
This value can come at runtime from a field on the form (for example, use
PERFORM-ACTION-TABLE-ADD-ROW $Field1$ $Field2$).
If a row already occupies the specified position, this command pushes the
existing row and all the rows that follow it down one position.
If the specified index is greater than the number of existing rows, the row is
inserted at the end of the table.
If a row index is not specified, a row is inserted at the end of the table, selected,
and highlighted. Workflow is then fired on the new row.
See the Form and Application Objects Guide, Updating tables on-screen only,
page 284.
+
PERFORM-ACTION-TABLE-CHANGE-ROW-COL-VISIBILITY tableFieldID
[0 | 1] columnFieldID
Hides (1) or shows (0) the contents of a column field for the current row.
278
Returns
a value
Process commands
Returns
a value
PERFORM-ACTION-TABLE-CLEAR tableFieldID
Clears the contents of the table field.
For list view table fields, tree view table fields, and alert list fields, returns the table
to its initial state.
For results list fields, fires workflow and then resets the mode to Query. This is
equivalent to pressing the New Search form action button.
PERFORM-ACTION-TABLE-CLEAR-ROWCHANGED tableFieldID
Clears the ROWCHANGED flag for the current row.
Important: This command was removed from AR System 7.6.02 and later releases.
Appendix C
279
tableFieldIDThe ID of the table field from which to delete the row. This value
is required.
rowIndexThe position (row index) of the row to delete. This value is required.
(Row indexes are based on the version of the table in the client memory data
structure.)
This value can come at runtime from a field on the form (for example, use
PERFORM-ACTION-TABLE-ADD-ROW $Field1$ $Field2$).
0Invalid row index. The current selection is not changed, but the highlight
is removed.
NULLThe current selection and highlight are not changed unless the
highlighted row is deleted. In that case, the highlight is removed.
Greater than 0 and less than 100,000,000The row at the specified index is
selected and highlighted, and workflow is fired.
Greater than 100,000,000The row at rowToSelect - 100,000,000 is selected but
not highlighted, and workflow is fired. For example, if the specified index is
100,000,005, row 5 is selected but not highlighted, and workflow is fired.
Less than 0 and greater than -100,000,000The row at the specified index
multiplied by -1 is selected and highlighted, and workflow is not fired. For
example, if the specified index is -5, the row at index 5 is selected and
highlighted.
Less than -100,000,000The row at rowIndex + 100,000,000 is selected but not
highlighted, and workflow is not fired. For example, if the specified index is
-100,000,500, row -500 is selected but not highlighted, and workflow is not
fired.
PERFORM-ACTION-TABLE-DESELECTALL tableFieldID
Deselects all entries in a table field. This command is valid for all types of table
fields.
280
Returns
a value
Process commands
Returns
a value
PERFORM-ACTION-TABLE-GET-CURRENT-CHUNK tableFieldID
PERFORM-ACTION-TABLE-GET-SELECTED-COLUMN fieldID
[ returnType ]
Returns the field ID or level of the selected node, which starts at 1. If root is
selected, the command returns 0. If nothing is selected, the command returns
NULL. This command works only with tree view table fields.
The arguments for this command are:
PERFORM-ACTION-TABLE-IS-LEAF-SELECTED tableFieldID
Returns 1 if selected node is a leaf, and returns 0 if the selected node is not a leaf
or if nothing is selected.
+
PERFORM-ACTION-TABLE-NEXT-CHUNK tableFieldID
Displays the next chunk of data in a table.
If the action is for a results list, use reserved field ID 1020.
PERFORM-ACTION-TABLE-PREV-CHUNK tableFieldID
Displays the next chunk of data in a table.
If the action is for a results list, use reserved field ID 1020.
This command is ignored for tree view table fields.
Appendix C
281
PERFORM-ACTION-TABLE-REPORT tableFieldID
Runs a report on the selected rows in a table. If no rows are selected, the report is
on the entire table.
This command is ignored for tree view table fields.
PERFORM-ACTION-TABLE-SELECTALL tableFieldID
Selects all the entries in a table field. This command is valid for all types of table
fields.
For a tree view table field, the command selects the root label, which represents all
data. If there is no root label, the command selects nothing.
282
Returns
a value
Process commands
Returns
a value
tableFieldIDThe ID of the table field from which to delete the row. This value
is required.
rowIndex (Optional)The position of the row to apply the state to. (Row
indexes are based on the version of the table in the client memory data
structure.)
If this value is not specified, one of these actions occurs:
If this command is run under a table loop guide, the state is applied to the
current row in the guide.
Otherwise, the state is applied to all the rows in the table.
This value can come at runtime from a field on the form (for example, use
PERFORM-ACTION-TABLE-ADD-ROW $Field1$ $Field2$).
This command is valid for list view, tree view, and cell-based tables.
See the Form and Application Objects Guide, Updating tables on-screen only,
page 284.
Appendix C
283
Returns
a value
PERFORM-ACTION-VALIDATE-NULL-REQUIRED-FIELDS [display]
[fieldIDsSeparatedByBackslashes]
Validates missing values or the $NULL$ value in the data fields. If the Run Process
action returns true, it stops the workflow, highlights the field with a colored
border (for example, a red border), and displays an error message.
The display parameter has two options to determine where to place the
message: PROMPT (in the prompt bar) or POPUP (in a pop-up box).
The fieldID parameter takes a list of field IDs separated by backslashes to
validate specific fields. If this parameter is not specified, the parameter verifies all
data fields on the form (but automatically excludes non-data fields, such as table
fields, column fields, and panel holders). If a field in a specified parameter list is
not a data field or not a required field, the Run Process action ignores those fields.
Note: If a field listed in the command is a default field and the value was not
changed, the fields value is not validated. If that default field is changed and
empty, then the fields value is validated.
The validation is performed on the browser (client) before passing the value to the
server.
In the following example, the server validates two fields (8 and 536870913), and
the message appears in the prompt bar.
PERFORM-ACTION-VALIDATE-NULL-REQUIRED-FIELDS
8\536870913
PROMPT
SET-CHANGE-FLAG [ 0 | 1 ]
Sets the change flag status of the current window to on (1) or off (0).
SET-RO-COLOR redCode,greenCode,blueCode
Sets the background color of read-only fields according to red, green, blue (RGB)
color coding. For example, an RGB code for blue is 0,0,255.
284
Process commands
allow users to edit a view form that is being displayed in a container form.
hide the entry list or create a custom entry list user interface that can reside on a
different form, such as, a cell-based table.
If the user has modified fields and not saved, that is, the change flag is active
when the command is called, AR System prompts the user to save the record or
cancel the edit.
If the result list is shown when the command is called, AR System displays the
emptied result list to the user with an empty row.
For example, assume that you have a table field on Form A. The table field contains
entry IDs describing entries in Form B. Form B is loaded into a view field or a
browser window. You can create an active link that sends an event to Form B and
includes an entry ID as a parameter of the event. You can then create another active
link that acts as an event handler on Form B, which has the PERFORM-ACTION-GETENTRY run process command. The command enables Form B to load the requested
entry only. For information about how to define a run process active link, see
Creating a Run Process action on page 125.
display the toolbar automatically according to criteria that you provide in the
workflow
For example, assume that you want to open Form B on a view field from Form A
and you do not want to display the toolbar. Using the PERFORM-ACTION-SHOWTOOLBAR command, you can define a run process action to hide the toolbar on
Form B. For information about how to define a run process active link, see
Creating a Run Process action on page 125.
Appendix C
285
NOTE
The workflow highlights required fields in browser clients only. The PERFORMACTION-VALIDATE-NULL-REQUIRED-FIELDS command is not supported in BMC
Remedy User.
In BMC Remedy Mid Tier, the browser validates the Required fields when the
following actions are executed:
For more information about how to use the process commands, see Table on
page 257.
5 Click OK to close the Expression Editor dialog box.
6 Save the active link.
286
module field.
PERFORM-ACTION-SEND-EVENT FdataVisualizationFieldID eventType
[eventData]
For example:
PERFORM-ACTION-SEND-EVENT F536870914 "DisplayItem" $ItemName$
Where:
$ItemName$ is a field on the form that contains the name of the item to be
Appendix C
287
288
Appendix
Workflow extras
This section describes additional workflow capabilities you can use in AR System.
The following topics are provided:
Appendix D
Workflow extras
289
You can use several properties, keywords, and functions to create drag-and-drop
functionality:
Field properties
Draggable
Droppable
See the Form and Application Objects Guide, Field properties, page 501.
Drag
Drop
Keywords
$DRAGSRCFIELDID$
$DROPTGTFIELDID$
Functions
AR_FUNCTION_DROPPEDROWINDEX
AR_FUNCTION_DROPPEDCOLUMNINDEX
290
Example 1: Dragging and dropping data between character fields on page 292
Draggable
(the source
field)
Droppable
(the target
field)
Horizontal Line
Vertical Line
Trim Text
Trim Box
Button
View
Data Visualization
Application List
Horizontal Navigation
Vertical Navigation
Table fields (list, tree, and
cell-based)
Alert List
Results List
Attachment Pool
Attachment Field
Panels and Panel Holders
Columns
NOTE
For data fields, users must initiate a drag from the label portion of the field (not
from the data portion).
Appendix D
Workflow extras
291
Bill To
Ship To
3 Create an active link that copies the data to the drop target when the mouse button
is released.
a In the Execution Options panel, enter the Ship To field in the Field field.
b Select the Drop execution option.
c Create a Set Fields active link that sets the Ship To field to contain the contents
This active link is written once per drop target field and will accommodate any
number of drag source data fields. The developer avoids having to write one active
link per drag source field to copy data to the drop target field.
For more information, see Process commands on page 261.
TIP
To move instead of copy the data, create another Set Fields action where the Bill To
field is set to NULL when the drop action occurs.
292
sequence, set the Draggable and Droppable field properties for the table fields.
2 Set the Row Label and Row Label Plural properties for the table whose rows will
be dragged.
Field property
Description
What to enter
Row Label
labelText{0}labelText
{0}items selected
For example:
Using this example,
appears when three rows are selected.
).
3 Create an active link with the following actions that occur when the Drop
Set FieldsSet the values of the cells in the new row. This means setting the
value for each column in the drop target table to the value of each column field
in the row being dragged.
Appendix D
Workflow extras
293
Figure D-1 shows an example of the Column fields being set to the value of the
Inventory ID, Description, and Name column fields being dragged.
Figure D-1: Setting the values for columns
294
dragged.
In this example, the field is Order List Table should not be droppable.
c From the Field Drop list, select Disable.
7 Save the active link.
WARNING
In some cases, event driven workflow can fail when executed on the mid tier. To
avoid this issue, explicitly define the parent-child relationship.
To send events between windows, you coordinate the following mechanisms in
BMC Remedy Developer Studio:
On Event active link execute condition. (For more information, see Defining
workflow execution options on page 37.)
Appendix D
Workflow extras
295
NOTE
In a web browser, opening windows from workflow is not synchronous. For
example, if an active link contains an Open Window action and the next action is
a Send Event Run Process action, the child window does not receive the event. (The
active link works correctly in BMC Remedy User.) To solve this issue for the web
client, create the workflow so that the parent or child window is loaded, and then
the send event action is executed.
Using an Open Window active link action that reloads new data into an existing
window, causing the form to be unloaded.
An example of Run Process syntax that sends the ChildClosed event to the
current windows parent is:
PERFORM-ACTION-SEND-EVENT @ ChildClosed
The syntax that sends the ParentClosed event to the current windows children
is:
PERFORM-ACTION-SEND-EVENT # ParentClosed
NOTE
Quotation marks are optional in the Run Process command if the eventType does
not contain a space. For example, they are optional for:
PERFORM-ACTION-SEND-EVENT @ EventA
If you are using field references for the target and eventType, make sure the field
is set properly prior to executing the Run Process command.
296
The concepts used in the following procedures are straightforward, so that you can
easily reverse sending the event from a parent window to a child window.
NOTE
You cannot have workflow that opens a dialog box and then sends an event to the
dialog box. Dialog boxes are modal, and subsequent Send Event actions or active
links do not fire until the dialog box closes. In this case, the dialog box no longer
exists. Instead, use an On Loaded active link condition in the dialog box to send an
event to itself, using the keyword $LASTOPENEDWINID$ as the target.
Appendix D
Workflow extras
297
button.
b Enter Child Window in the Form Name field.
The columns of the table field in Parent Form must point back to the Child
Window form.
c Add the following fields to the Table Columns list:
Request ID (Column)
Submitter (Column2)
Assigned To (Column4)
These columns help you identify which records in the table field to modify.
6 Create an active link (Child Send Event to Parent After Modify) with a Run Process
action.
a Configure the settings in the following panels:
You want the active link in the child window to fire if the submitter and assignee
are not the same user.
b Right-click on the If Actions tab, and choose Add Action > Run Process.
c In the Command Line field, enter:
PERFORM-ACTION-SEND-EVENT @ RefreshTable
This Run Process command sends the RefreshTable event to the parent window.
You will use this same event string later in active link workflow to catch the sent
event in the parent window.
TIP
Make sure the target symbols (@, # , *) are used correctly. If you are trying to send
an event to a parent window, do not use # .
This Run Process command and its special syntax can send messages to one or
more windows. For example, to send an event to all windows, use
PERFORM-ACTION-SEND-EVENT * All Windows. You can also send events to a
specific window:
PERFORM-ACTION-SEND-EVENT
PERFORM-ACTION-SEND-EVENT
PERFORM-ACTION-SEND-EVENT
PERFORM-ACTION-SEND-EVENT
298
$536870921$ Processing
$Short Description$ "network is down"
$My Field$ "process request"
$LASTOPENEDWINID$ "close now"
NOTE
Events are asynchronous, and the Run Process command returns immediately.
Other windows receive the events and process the workflow at a later time.
7 Create an active link (Parent Catch Event) with a Change Field action to catch the
sent event.
a Configure the settings in the following panels:
Because event names are intended to be unique, this active link fires only if it
receives the RefreshTable event.
NOTE
You must use quotation marks in the Run If qualification for the event type.
You can trigger active links by examining the values of the EVENTSRCWINID,
CURRENTWINID, or EVENTTYPE keywords in the Run If qualification. Here, the
EVENTTYPE keyword is used in the Run If qualification to fire the active link if
the parent window catches the RefreshTable event sent by the child window.
b Right-click on the If Actions tab, and choose Add Action > Change Field.
c Enter the table fields name in the Field field.
d Select the Refresh Tree/Table check box.
Here the rows in the table field are automatically refreshed after changes are made
to the underlying request.
8 Log in to BMC Remedy User, and open the Child Window form.
9 As a test, create several tickets in the Child Window form, but create one ticket
with John as the value of the Submitter and Assigned To fields.
10 Open the Parent Window form, and click the table field to refresh it.
11 Double-click the request assigned to John in the Results List to open the Child
Window form.
12 Change the assignee to another name and make changes in the Short Description
field (for example, enter Catch event in parent window), and then save the
request.
When you modify the request, the active link workflow is triggered and sends the
child window event to the parent window. The table field in the parent window is
refreshed automatically.
Appendix D
Workflow extras
299
TIP
If the active links do not fire in the target window, make sure the event type string
in the Run If qualification matches the event type string in the Run Process
command.
NOTE
Do not use the Set Fields action to set a table row inside a table loop when
performing the following procedures. For more information how to create an
active link guide that loops through a table field, see Using active link guides in
client-side table fields on page 151.
button.
b In the Expression Editor, select the table field, and click Add Field.
c Click OK.
The field name appears in the Value column in the proper format (for example,
$Help Desk Requests$).
When the active link is executed, the number of the selected row is entered in the
field from step 2. For example, if row 5 is selected, 5 is entered.
select a row.
3 In the Value column, enter one of the following:
300
A variable for a field that contains an integer (for example, $Select Row$)
An integer
If you enter an integer in the Value column, use the following table to learn how to
enter values that determine whether the user sees the row highlighted and
whether the active link (which is executed through the Row Choice execution
option) is executed.
Table D-2: Examples of values that selects a row
Value column
contents
Result
-n
Selects and highlights row n and does not execute the active link.
The user sees the row highlighted.
n + 100000000
-(n + 100000000) Selects row n and does not execute the active link.
The user does not see the row highlighted. If a row is selected and is
already highlighted, the highlighting does not move.
ServerRun the filter with the permissions of the Administrator. This is the
default setting.
UserRun the filter with the permissions of the user that called the filter.
For example, suppose there are two groups with data on a single form that
contains salaries for different job levels. Each group should not be aware of the
other group's data. In this case, row-level security might be used to identify the
records within the form that each group can access.
Appendix D
Workflow extras
301
Without the Get Data As property set to User, a filter cannot avoid accessing all
records in the form that match the qualifications in the filter, so it manipulates
information for both groups indiscriminately. Operations that should be
performed only on records for one group must have additional qualifications to
restrict the data, and those additional qualifications must be revisited each time
permissions on any element of the form are changed.
With Get Data As set to User, filter operations can be restricted to retrieving only
information visible to the groups whose user executed the filter. This is the case
regardless of changes made to the form after the filter has been created.
editor.
2 In the Properties tab, expand the Data Access section, and then click the down-
302
Workflow Functions
In addition to the Set Fields, Push Fields, and Call Guide actions, setting Get Data
As to User affects the workflow functions COLCOUNT, COLAVG, COLMIN, and COLMAX.
These functions operate over the columns in a table field. When performed in a
guide that was called by a filter with the Get Data As User set, the entries and fields
used to populate columns in the table field are limited to those visible to the calling
user.
Appendix D
Workflow extras
303
304
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Index
Symbols
! 216
- 218
!= 218
" 218
% 218
&& 216
* 218
+ 218
/ 218
= 219
>, >= 218
|| 216
A
about 87
accelerator keys 169
actions
See workflow actions
active link actions
changing order 67
Close Dialog 81
Commit Changes 82
Run Process 124
types 75
Wait 136
active link execution options
After Modify 39
After Submit 39
Button/Menu Field 41
Collapse 41
Copy to New 39
Display 39, 177
Drag 41
Drop 41
Event 40
Expand 41
Gain Focus 42
Hover 42
Level Choice 42
Level Double Click or Return 42
Lose Focus 42
Menu Choice 42
Modify 40
Return 43
Row Choice 43
Row Double Click or Return 43
Search 40
Set Default 40
Submit 40
Table Refresh 43
Un-Display 40
Window Closed 40
Window Loaded 41
Window Open 41
active link guides 140, 148
adding workflow 142
BMC Remedy User and 154
client-side table fields 151
creating a table loop 152
defining 140
entry point 148
example uses 148
interactive 148, 154
interactive, creating 155
looping 151
overview 148
properties 145
table loop performance 154
active link menu items
permissions 170
properties 167
active links
See also active link actions; active link actions,
using; active link execution options; active link
menu items
about 17
adding workflow actions to 66
buttons 170
Change Field action 77
Index
305
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Close Window action 81
Commit Changes action 82
DDE action 83
defining execution options 38
deleting 67
Direct SQL action 83
execution conditions 176
execution options for 37
execution options for request and window
actions 39
execution order 38, 44
Exit Guide action 86
field based execution options 41
Go to Guide Label action 86
Goto action 87
guides and 149
logging modes 191
menu items 170
Message action 88
modifying 67
OLE Automation action 101
Open Window action 102
processing 176
Push Field action 119
Run If qualifications in 50
Run Macro action 123
Run Process action 124
Run Process action, syntax 126
sending events 295
Service action 127
Set Fields action 129
toolbar button 165
Wait action 136
add operator 218
adding menus, menu items, and separators 167
After Modify active link execution option 39
After Submit active link execution option 39
Analyze Objects wizard 206
Analyzer
about 194
Analyze Objects wizard 206
analyzing server objects 206
messages 196
rules 194
View tab 209
AND operator 216
ANSI SQL standards, using 84, 244
Application commands 261
APPLICATION keyword 221
arerror.log file 191
arescl.log file 191
arguments with comma as decimal separator,
306
specifying 252
arithmetic operations, using in a Set Fields action 255
arithmetic operators 218
B
BMC Remedy Developer Studio
basics 19
content assist 50, 52, 71
creating expressions and Run If qualifications 50
creating workflow 65, 72
creating workflow actions 68
expression editor 50, 51, 70
field mapping table 68
field selector dialog box 68
If Actions and Else Actions panels 64
mapping fields to values 68
SAMPLE DATA data source 72
selecting process commands 261
using a dynamic data source in workflow 71
using fields in workflow 68
using menu options 19
workflow editor 20, 64, 65
workflow editor panels 22
BMC Software, contacting 2
BROWSER keyword 222
bulk updates 225
button fields
See also toolbar buttons
active links 170
deleting 171
show close 104, 118
Button/Menu Field active link execution option 41
C
Call Guide action
about 76
defining 76
Get Data As user property 303
using a guide 148
using in filter guides 159
using SAMPLE DATA 72
workflow types 75
Change Field action
about 77
defining 78
workflow types 75
chunks
returning index of current table 281
CLIENT-TYPE keyword 222
Close Dialog action 81
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Close Window action
about 81
defining 81
using buttons with 82
workflow types 75
COLAVG function 230
COLCOUNT function 230
Collapse active link execution option 41
COLMAX function 230
COLMIN function 230
COLSUM function 230
command line syntax guidelines for Run Process
action 126
commands
$PROCESS$ 258
Run Process 258
Commit Changes action
about 82
defining 82
using with a dialog box 83
workflow types 75
content assist 52, 71
controlling row selection 300
Copy To New active link execution option 39
copying workflow objects 48
creating
filter guides that loop through server-side table
fields 162
requests (Push Fields) 121
CURRCONVERT function 231
CURRENTWINID keyword 222
CURRSETDATE function 231
CURRSETTYPE function 231
CURRSETVALUE function 232
customer support 3
DDE action
about 83
workflow types 75
debug mode, using log files 191
DECRYPT function 233
DEFAULT keyword 223
defining 140
Delete filter execution option 44
deleting
buttons 171
menus 171
deployable applications 33
dialog boxes
closing 81
creating 83
opening 102
using Open Window action 103
writing data back to parent form 83
Direct SQL action
about 83
ANSI SQL standards, using 84
defining 84
security 84
workflow types 75
Display active link execution option 39, 177
displaying
any match error (Push Fields) 121
no match error (Push Fields) 121
divide operator 218
documentation, AR System 11
Drag active link execution option 41
dragging and dropping data 290
Drop active link execution option 41
DSO action 85
dynamic data exchange. See DDE action
307
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
defining execution options, interval 47
defining execution options, time 45
deleting 67
Direct SQL action 83
DSO action 85
execution options for 45
execution order 38, 44
Log to File action 88
logging activity 191
logging modes 191
modifying 67
Notify action 95
performance impact of unqualified Run If
statements 57
Push Field action 119
Run If qualifications in 50
Run Process action 124
Service action 127
Set Fields action 129
Event active link execution option 40, 295
Event, sending to Data Visualization field 287
EVENTDATA keyword 223
EVENTSRCWINID keyword 223
EVENTTYPE keyword 224
examples
active link guide table loop 152
creating a Set Fields action 70
creating an interactive active link guide 156
filter processing 180
filter qualifications 59
guides, creating interactive 155
If Actions and Else Actions 65
Notify action 98
sending events 297
server-side table field 160
shared guides 147
shared workflow 34
execution options 37
active links 37, 39, 41
After Modify 39
After Submit 39
Button/Menu Field 41
Collapse 41
Copy to New 39
Delete 44
Display 39
Drag 41
Drop 41
escalations 45
Event 40
Expand 41
filters 43, 44, 177
308
Gain Focus 42
Get Entry 44
guides and 149
Hover 42
Interval 45
Level Choice 42
Level Double Click or Return 42
Lose Focus 42
Menu Choice 42
Merge 44
Modify 40, 44
Return 43
Row Choice 43
Row Double Click or Return 43
Search 40
Service 44
Set Default 40
Submit 40, 44
Table Refresh 43
Time 45
Un-Display 40
Window Closed 40
Window Loaded 41
Window Open 41, 177
execution order
active links 38, 177
filters 44, 177
Exit Guide action
about 86
defining 86
using in a guide 149
using in filter guides 159
workflow types 75
Expand active link execution option 41
expression editor 50
expressions. See qualifications
extension, views and 119
EXTERNAL () operator 217
F
field mapping table 68
field values, assigning from
function results 251
process results 253
FIELDHELP keyword 224
FIELDID keyword 224
FIELDLABEL keyword 224
FIELDNAME keyword 224
fields
changing characteristics in an active link 77
in qualifications 53
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
qualifications 53
using names and values in workflow 68
files
arescl.log 191
name (Log to File action) 88
filter actions
changing order 67
Log to File 88
types 75
Filter API 249
filter execution options
Delete 44
Get Entry 44
Merge 44
Modify 44
Service 44
Submit 44
filter guides
about 158
actions in 159
adding workflow 142
creating a server-side table loop 162
defining 140
properties 145
filter phases
about 178
exceptions 184
overriding 184
overriding, special naming convention 185
phase 1 actions 178
phase 2 actions 179
phase 3 actions 179
releasing pending operations 185
FILTER-ERRAPPENDMSG keyword 224
FILTER-ERRMSG keyword 224
FILTER-ERRNO keyword 223, 224
filters
See also filter actions; filter actions, using; filter
conditions
about 17
adding workflow actions to 66
defining execution options 43
deleting 67
Direct SQL action 83
DSO action 85
execution options 43, 44
execution order 38, 44, 178
Exit Guide action 86
Get Data As property 301
Go to Guide Label action 86
Goto action 87
how AR System processes 180
Index
309
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
LOWER 235
LPAD 235
LPADC 236
LTRIM 236
MAX 236
MIN 237
MINUTE 237
MONTH 237
REPLACE 237
RIGHT 237
RIGHTC 238
ROUND 238
RPAD 238
RPADC 238
RTRIM 238
SECOND 238
SELECTEDROWCOUNT 238
STRSTR 239
STRSTRC 239
SUBSTR 239
SUBSTRC 240
TEMPLATE 240
TIME 240
TRUNC 240
UPPER 240, 251
using in Set Fields action 251
WEEKDAY 240
YEAR 240
G
Gain Focus active link execution option 42
Get Data As filter property 301
Get Entry filter execution option 44
Go to Guide Label action
about 86
defining 87
using in a guide 148
using in filter guides 159
workflow types 75
Goto action 75, 87
greater than (or equal to) operators 218
GROUPIDS keyword 224
GROUPS keyword 224
GUIDE keyword 150, 224
guides
about 138
active link 148
active link interaction 149
adding help text 145
adding labels 142
adding workflow 142
310
H
HARDWARE keyword 126, 225, 254
help on menus 168
hiding a menu bar 168
home pages and Run Process commands 274
HOMEURL keyword 225
HOUR function 234
Hover active link execution option 42
HOVER function
about 91
description 234
tooltips and 91
I
If Actions about 64
if any requests match, Push Fields 121
if no requests match, Push Fields 121
INBULKTRANSACTION keyword 225
indexes
returning current table chunk 281
interactive guides, creating 155
interactive messages 88
Interval escalation execution option 45
K
keywords
APPLICATION 221
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
BROWSER 222
CLIENT-TYPE 222
CURRENTWINID 222
DATABASE 222
DATE 223
DEFAULT 223
EVENTDATA 223
EVENTSRCWINID 223
EVENTTYPE 224
FIELDHELP 224
FIELDID 224
FIELDLABEL 224
FIELDNAME 224
FILTER-ERRAPPENDMSG 224
FILTER-ERRMSG 224
FILTER-ERRNO 223, 224
GROUPIDS 224
GROUPS 224
GUIDE 150, 224
GUIDETEXT 224
HARDWARE 126, 225, 254
HOMEURL 225
in qualifications 55
INBULKTRANSACTION 225
LASTCOUNT 225
LASTID 225
LASTOPENEDWINID 226
list of 221
LOCALE 226
NULL 226
OPERATION 226, 228
OS 126, 226, 254
PROCESS 258
ROLES 226
SCHEMA 226
SCHEMA-ALIAS 227
SERVER 227
SERVERTIMESTAMP 227
TCPPORT 227
TIME 227
TIMESTAMP 227
USER 227
VERSION 228
VUI 228
VUI-TYPE 228
WEEKDAY 228
L
labels and guides 86
LASTCOUNT keyword 225
LASTID keyword 225
M
macros, executing through active link 123
MAX function 236
menu bar items 165
Menu Choice active link execution option 42
menu items
active links 170
deleting 171
menus
active link properties 167
active links 170
help 168
Merge filter execution option 44
Message action
about 88
defining 89
HOVER function 91
Prompt Bar and 93
tooltips and 90
Index
311
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
workflow types 75
MIN function 237
MINUTE function 237
Modify
active link execution option 40
filter execution option 44
modulo operator 218
MONTH function 237
multiply operator 218
N
name, Push Fields 121
navigation guides, creating 155
not equal operator 218
NOT operator 216
Notify action
about 95
creating 96
defining 96
dynamic delivery method 101
email information 99
example 98
notification mechanisms 96
run time definitions 101
using email addresses with 97
using external delivery mechanism 101
using fields, keywords, and expressions with 98
using user names and group names 97
workflow types 75
NULL keyword 226
NULL values
and relational algebra 241
in the AR System, using 241
O
object relationships and Analyzer 194
OLE Automation action
about 101
workflow types 75
Open Window action
about 102
creating dialog boxes 103
defining 103, 106, 108, 112
dynamic data source 119
extension, for views 119
mapping fields to values 68
Modify or Display windows 108
modify or display windows 108
Report windows 112
report windows 112
312
P
PERFORM-ACTION commands 271
PERFORM-ACTION-SEND-EVENT
Data Visualization fields 287
PERFORM-ACTION-TABLE-ADD-ROW 278
PERFORM-ACTION-TABLE-DELETE-ROW 280
PERFORM-ACTION-TABLE-GET-CURRENT-CHU
NK 281
PERFORM-ACTION-TABLE-SET-ROWSTATE 283
performance tips
optimize Set Field If qualifications 133
SQL searches 248
using Analyzer 194
permissions
guides 145
Run Process action 125
workflow objects 47
plug-ins 249
precedence, operator 219
primary form 36
$PROCESS$
commands 258
using 253
process commands
about 258
Application command descriptions 261
Application commands 259
case sensitivity 260
descriptions 261
PERFORM-ACTION 259
PERFORM-ACTION command descriptions 271
syntax 259
types 259
using quotation marks 260
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
workflow command descriptions 271
workflow commands 259
PROCESS keyword 258
differences from Run Process action 258
when to use 258
process results
$PROCESS$, using 253
assigning values from 253
processing
active links 176
filters 177
product support 3
Prompt Bar and Message action 93
properties and workflow objects 47
Push Fields action
about 119
defining 119
dynamic data source 122
Get Data As user property 303
mapping fields to values 68
SAMPLE DATA 122
using SAMPLE DATA 72
workflow types 75
pushing data to another form 119
Q
qualifications 50
about 50
assigning field values 70
checking with Analyzer 194
content assist 52
database values in 58
determining If and Else Actions 64
escalations 50, 57
expression editor 70
filter examples 59
formatting conventions 53
keyword values 221
keywords in 55
nonnumeric values in 55
NULL values 55
operators, list of 216
optimizing performance 57
status history in 56
syntax 51
system performance, improving 56
transaction values in 58
using fields in 53, 55
using quotes in 55
wildcards 220
workflow 50
R
Record Object Relationships 194
relational algebra and NULL values 241
REPLACE function 237
reporting
embedded, saving to disk 114
Open Window active link action 112
type (Open Window action) 113
requests, matching 121
restricting filter data retrieval 301
Return active link execution option 43
reusable workflow 32
RIGHT function 237
RIGHTC function 238
ROLES keyword 226
ROUND function 238
Row Choice active link execution option 43
Row Double Click or Return active link execution
option 43
row selection, controlling 300
rows
inserting empty in on-screen table 278
removing from on-screen tables 280
setting state in tables 283
RPAD function 238
RPADC function 238
RTRIM function 238
rules
Analyzer 194
SQL operations 248
Run If qualifications. See qualifications
Run Macro action
about 123
defining 123
workflow types 75
Run Process action
about 124, 258
access control and 125
active link syntax 126
Application command descriptions 261
checking client environment 126
command syntax 259
defining 124, 125
differences from Set Fields with $PROCESS$ 258
filter phasing and 258
overview 258
permissions 125
process commands 259
sending events to Data Visualization field 287
Index
313
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
special commands 258
syntax guidelines 126
UNIX servers and 126
when to use 258
Windows servers and 126
workflow command descriptions 271
workflow types 75
Run Process command
browsers and 125
performance 125
Runtime Server Value. See SAMPLE DATA data
source
S
SAMPLE DATA data source 71, 73
saving embedded reports to disk 114
SCHEMA keyword 226
SCHEMA-ALIAS keyword 227
Search active link execution option 40
SECOND function 238
security
databases 249
Direct SQL actions 249
SQL commands 84
SELECTEDROWCOUNT function 238
sending events
about 295
additional considerations 296
CURRENTWINID keyword 222
Event execution option 40
EVENTSRCWINID keyword 223
EVENTTYPE keyword 224
example procedure 297
LASTOPENEDWINID keyword 226
PERFORM-ACTION-SEND-EVENT
command 276
SERVER keyword 227
server-side table fields
creating a filter guide using 162
implementation 164
limitations 164
looping with a filter guide 160
SERVERTIMESTAMP keyword 227
Service action
about 127
defining 128
mapping fields to values 68
using SAMPLE DATA 72
Service filter execution option 44
Set Default active link execution option 40
Set Fields action
314
about 129
assigning values by issuing request to a plug-in
service 249
assigning values by using arithmetic
operations 255
assigning values from a process 253
assigning values through SQL statements 244
CURRENT SCREEN data source 131
CURRENT TRANSACTION data source 131
data sources 129
defining 130, 131, 132
Filter API plug-in server 249
filter phasing and 258
Get Data As user property 302
mapping fields to values 68, 70
SAMPLE DATA data source 135
SERVER data source 132
special considerations 136
using functions 251
using SAMPLE DATA 72
using the $PROCESS$ keyword 258
workflow types 75
shared guides, examples 147
shared workflow
about 32
deployable applications warning 33
examples 34, 147
guides 146
show Close button in dialog box 104, 118
SQL
ANSI standards, using 84, 244
command (Direct SQL action) 85
result column (set fields) 247
rules for operation 248
SQL commands, security 84
status history in qualifications 56
STRSTR function 239
STRSTRC function 239
Submit
active link execution option 40
filter execution option 44
SUBSTR function 239
SUBSTRC function 240
subtract operator 218
support, customer 3
syntax
Application commands with qualifications 260
process commands 259
T
table fields
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
controlling row selection 300
server-side looping 160
table loops
active link guides and 151
performance 154
Table Refresh active link execution option 43
tables
inserting empty row on-screen 278
removing rows on-screen only 280
returning index of current chunk 281
setting row state 283
take no action (Push Fields) 121
TCPPORT keyword 227
technical support 3
TEMPLATE function 240
Time escalation execution option 45
TIME function 240
TIME keyword 227
TIMESTAMP keyword 185, 227
toolbar buttons
appearance 170
deleting 171
tooltips
accessibility support 93
creating 90
formatting 92
HOVER function 91
wait time 92
transaction values 58
troubleshooting, checking workflow with
Analyzer 194
TRUNC function 240
U
Un-Display active link execution option 40
UPPER function 240, 251
Use First Matching Request Based On Locale
setting 134
USER keyword 227
V
values
assigning with plug-in 249
qualifications and 55
VERSION keyword 228
View Extension preference 119
views, selecting with Open Window action 119
VUI keyword 228
VUI-TYPE keyword 228
W
Wait action 136
about 136
defining 136
workflow types 75
warnings
ANSI SQL standards, using 84, 244
Application-Release-Pending command, use
with caution 270
WEEKDAY
function 240
keyword 228
wildcards 220
Window Closed active link execution option 40
Window Loaded active link execution option 41
Window Open active link execution option 41, 177
windows
events. See Default Para Font> sending events
modify or display 108
report 112
search or submit 106
workflow
$PROCESS$ commands 257
about 16
comparison 18
creating 19, 65
creating qualifications 50
dynamic data destination 71
dynamic data source 71
editing 20
events, sending 295
execution options 37
execution order 177
expressions 50
field names and values in 68
mapping fields to values 68, 70
object relationships 194
objects 16
procedures 19
qualifications 50
reusable 32
Run If qualifications 50
Run Process commands 257
run time design 71
selecting fields 68
shared 32
shared workflow 146
shared, examples of 34
types of actions 75
using Analyzer to check object relationships 194
workflow actions
Index
315
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Call Guide 75, 76
Change Field 75, 77
changing order 67
Close Dialog 81
Close Window 75, 81
Commit Changes 75, 82
creating 66
creating and modifying 65
DDE 75, 83
deleting 67
Direct SQL 75, 83
DSO 85
Exit Guide 75, 86
Go to Guide Label 75, 86
Goto 75, 87
If and Else 64
Log to File 75, 88
Message 75, 88
modifying 67
Notify 75, 95
OLE Automation 75, 101
Open Window 75, 102
Push Fields 75, 119
Run Macro 75, 123
Run Process 75, 124
Service 127
Set Fields 75, 129
types 75
Wait 75, 136
workflow editor 20, 22, 64
workflow objects
analyzing 206
associating to a form 36
copying 48
permissions 47
properties 47
saving 48
workflow process commands 271
Y
YEAR function 240
316
*183986*
*183986*
*183986*
*183986*
*183986*