More about Harness rules |
Use the standard activity @baseclass.Show-Harness to display harness forms. This activity and the standard harness rules expect to find (by convention) objects on the following page names:
pyWorkPage
— Conventional name for the
page that contains a work object. This page usually has a
class derived from the Work-Object- class.pyWorkCover
— Conventional name for
the page that contains a covering work object, if one exists.
This page has a class derived from the
Work-Cover- class.NewAssignPage
— Conventional name for
the page that contains an assignment object. This page has a
class derived from the Assign- base class.These page name conventions need not apply to applications that do not depend on harness rules; the work object page may have any name established in the flow.
When you save a harness rule, the system converts your HTML and JSP tags or directives to Java source code. As a learning or debugging aid, you can review this Java code.
Click the Show Java toolbar button () to see the system-generated Java code that implements the harness rule. The window presents a read-only preview of the Java that implements this rule instance. This Java code is not identical to the Java that executes at runtime, which includes Java code inlined from other rule instances and reflects rules in the requestor's RuleSet list.
After you save this rule form, click the Preview toolbar
button () or type the equivalent keyboard shortcut
CTRL
+ALT
+P
to see a more
faithful split-screen presentation of the runtime appearance of
the harness. (Many harness rules depend on context. Even when
the rule is correctly configured, the Preview display may fail
and report JSP errors if this harness rule depends on clipboard
contents that do not exist or other rules that cannot be
found.)
Click the Run toolbar button () to test the harness with data from the clipboard. See How to test a harness rule.
As with the Layout tab, the system renders both the Preview and Run displays using the styles of the skin rule identified in the Skins field of the Run Process In group of your General preferences. If the Skins field is blank, these displays use the styles marked Work on the Styles tab of the skin identified in your current portal rule. See Developer Portal — Setting preferences.Through directed inheritance, the immediate parent class of the Rule-HTML-Harness class is the Rule-Obj-HTML class.
active property, breadcrumbs control, fragment, harness, source HTMLsection | |
JavaServer Pages
tags Directives Using work object forms How stream processing works Source HTML tags |