Escolar Documentos
Profissional Documentos
Cultura Documentos
Harness ( Rule-HTML-Harness)
Harness Rules define the form structure and the layout , specifying the sections that include
in the harnesses and other elements to be added.
Harness rule basically assembles all required sections, streams and fragments.
To display a work object form defined by a harness rule in your own activities, call the
standard Show-Harness activity.
2
USER INTERFACE % of EXAM - 10%
We can specify the name of the harness rule for creating the new work object on the
process tab of the flow form in the field Harness for work object creation
At each assignment of the flow also we can specify the harness to be used for
presentation to user
Any class that inherits from Work-Object-, Work-Cover- or Work-Folder- also inherits all the
harnesses. When we enter a new work object or review, the harness automatically presents
the appropriate form for the object type.
For harness and section rules, process commander automatically generates the HTML source(
Which we can tailor as we need ). But we write the HTML for other html rules
To understand the structure of a work object form, use the Rules Inspector tool to identify
the underlying harness, section, and property rules.
3
USER INTERFACE % of EXAM - 10%
Section ( Rule-HTML-Section)
Section Rules define the form content, consisting the discrete section that you include in the
harness.
Section rules are referenced in harness rules, and may also be referenced in other section
rules.
A section rule defines the appearance and contents of one horizontal portion of a work
object form.
Streams
Streams define the class specific content to be included in a section ( Such as dynamic HTML
and repeating group ), as well as supporting forms for filed specific user input
Fragments ( Rule-HTML-Fragment)
Fragments are supporting pieces of HTML that you include in the sections, streams, or other
fragments. We need to use fragments if we want to share the html across classes, such as
buttons for performing the actions.
4
USER INTERFACE % of EXAM - 10%
Text files ( CSS and JS etc ) are not subjected to rule resolution where as the binary
files ( JPG, JPEG, images etc ) are subjected to rule resolution
5
USER INTERFACE % of EXAM - 10%
Use HTML Property rules to control how properties appear on work object forms,
correspondence, and other HTML forms, for both display and for accepting user input.
It is not good practice to hardcode the list of field values inside the Rule-HTML-
Property, Instead we have to use Rule-Obj-Field value or Table edit of the property.
Date
DateTime
Decimal
Integer
Percentage
PromptSelect
Text
TextArea
Time
6
USER INTERFACE % of EXAM - 10%
7
USER INTERFACE % of EXAM - 10%
The top-level harness rule (Rule-HTML-Harness) or HTML rule (Rule-Obj-HTML rule type)
that produced any window or form you are viewing.
Other section rules (Rule-HTML-Section), HTML rules or fragments (Rule-HTML-Fragment)
that the top-level rule incorporates through the Include directive, and the HTML rules or
fragments referenced by these and so on.
Properties referenced in any of the HTML rules or Fragment rules.
Properties displayed that are computed automatically by Declare Expression rules.
A top-left yellow icon ( ) identifies the harness rule. Other icons identify the start of the
visible presentation of a section rule or flow action rule.
A small H identifies the visible presentation of an HTML rule or HTML fragment rule.
A small red P identifies a property reference.
A small red D identifies a property computed by a Declare Expression rule.
8
USER INTERFACE % of EXAM - 10%
An Edit Input rule ( Rule-Edit-Input )provides a conversion facility. Use Edit Input rules
to convert data entered by a user (or received from an external system) from a format
that your application doesn't use into another format.
Edit input rules perform conversions, not validations. This rule type does not cause any
response to a user about the validity of the input. Use validate rules and edit validate
rules for validations.
You can reference an edit input rule in the Edit Input Value field on the Property form.
9
USER INTERFACE % of EXAM - 10%
Validation
Client side validation will not replace validation that occurs on the engine side, but allows
validation to occur on a form before submit is hit. This can be done at stream level with
Checkbox at HARNESS level under HTML tab, when checked the client validation
would be enabled for the entire harness
Checkbox at Flow Action level under HTML tab, when checked the client validation
would be enabled for the flow action
For Sections, client side validation is enabled with Required? check box on a field
by field basis setting
Client side validation is valid only when the streams are in JSP mode.
The availability of client side validation will reduce the server load by capturing
errors before having to hit submit while providing developers an enhanced way of
implementing form validations.
10
USER INTERFACE % of EXAM - 10%
Validation Rule
A validation rule is an instance of the Rule-Obj-Validate rule type. These rules test property
values, typically immediately after they are submitted on a browser form.
To validate a property or a page means to check its value against certain rules, and add
a message to the property or page if validation fails.
Don't confuse validate rules with edit validate rules, which require Java programming
skills to develop. Validate rules call edit validate rules.
An activity can use the Obj-Validate method to execute validate rules. Validate rules
may be referenced on the Flow Action form, the Params tab of the Flow form, and in a
few other rules .
11
USER INTERFACE % of EXAM - 10%
Directives
To work with properties, we can use the flowing directives in the HTML.
Reference
Lookup
With
Save
Reference
Reference directive is used to display the values of the properties, to allow the users to
enter the values for the properties and to insert the parameter values. Syntax for
reference directive is
12
USER INTERFACE % of EXAM - 10%
{anotherPage.myProperty}
{myPage.myProperty(1)}
{myPage.myProperty (mySubscript)
13
USER INTERFACE % of EXAM - 10%
Lookup directive can be used retrieve and display a property value of an instance that is stored
in the database, but that is not open on the clipboard. If the value is already in the clipboard,
we can better use the reference directive. The complete syntax of Lookup directive is,
For example,
{LOOKUP pxCreateOperator Rule-Obj-HTML pyClassName = Work- pyStreamName = New}
14
USER INTERFACE % of EXAM - 10%
To add with the HTML rules that provide parts of the form , we can use include directive.
Literal directive: Use the Literal directive around JavaScript, VBScript, or Cascading Style Sheet
text that contains curly brace characters. The Literal directive identifies a part of the source
HTML that is to be copied to the generated stream exactly as entered. The system does not
process the text within the directive, except to find the end of the directive.
Example :
{= style sheet or script goes here =}
Optionally you can also add key word called LITERAL
{ LITERAL [ comments ] }
style sheet or script goes here
{/LITERAL [comments] }
15
USER INTERFACE % of EXAM - 10%
Summary of directives
16
USER INTERFACE % of EXAM - 10%
17
USER INTERFACE % of EXAM - 10%
Portal
The Portal is the standard Internet Explorer-based user interface for Process Commander Workers,
managers, and developers. The Portal rule (Instance of Rule-Portal class) defines the tabs,
arrangement, and labeling of anchors and features, known as gadgets .
We can always create new portal layouts by defining new instances of the class Rule-Portal.
Portal rules are referenced in the Settings tab of the access group form. Users associated with
that access group see the corresponding portal layout.
Standard Portals:
Developer See the details below.
Work Manager Supports managers, who can use monitor activity layout.
Work User Accesses Process work layout only
SysAdminDD Older portal, Deprecated
18
USER INTERFACE % of EXAM - 10%
The Developer portal provides five to seven menus for rapid access to information, tools, and
objects needed by application developers.
The toolbar provides access to the forms and tools in use.
You can personalize the behavior of the portal to match your working conditions and style.
Choose Edit Menu Preferences
19
USER INTERFACE % of EXAM - 10%
Search Facility
You can personalize the defaults and other settings of this facility through preferences.
Choose Edit Menu Preferences Search.
20
USER INTERFACE % of EXAM - 10%
My Checked Out
To list all rules checked out to you by type, click the check icon
No search parameters are used.
21
USER INTERFACE % of EXAM - 10%
22
USER INTERFACE % of EXAM - 10%
Bulk Check in
A check box appears at the left of each row, corresponding to a checked out rule.
Select one or more check boxes before clicking any button, or click the Select All link to
select all rows.
Enter comments for any selected rules that you are to check in or delete.
Optionally, enter text in the Bulk Prefix field and click the Insert button to copy this
text as a comment for each selected rule.
Select Check In, Open or Delete and click the Start button to apply this operation to
selected rules.
(When you choose Delete, you are deleting only the rule in your personal
RuleSet, not the original rule.)
Click the Refresh button to redisplay the current list of checked out rules.
Click the Disable Bulk button to return to the Rules Checked Out By Me display.
23