• No se han encontrado resultados

3. ANÁLISIS DE CASO

3.3 COMERCIALES DE EGO

Map the properties from Page Context Class to index Class.

ACTIVITIES

Activities automate processing. Activity rules contain a sequence of structured steps. Each step calls a method rule or contains a control instruction such as Call or Branch.

0 contain a sequence of procedural, atomic steps that are by default executed top down 1 reference a specific instruction (known as a method) in each step

2 can perform calculations

3 can retrieve, update and save data 4 can call other activities

5 can contain loops or iterations

Note: We cannot create our own methods and we have to use the given set of methods only.

0 Page-New and Show-Page: Creates a new page in Clipboard and Show-Page shows the page in XML Format. Show-page is normally used during debugging, because it blocks the flow. We should remove the Created page by using Page-Remove method if it’s not used further. This keeps the performance good.

In Pages & Classes:

give page name: SamplePage

page class : The class name where the properties mentioned are defined.

Here, we have created a new page called SamplePage and called a decision table, which returns a value.

We capture the returned value in SamplePage.RollNo. Show –page displays the output as below.

OutPut:

Note: If we have used a model for a class, then if we declare a page and class in pages and classes tab, then the model will also b called when the page is created.

Model: Represents the model of the class for which we create the page. It’ll initialize all the properties of the class in the page.

PageList: To save the name of the new page as the final element in a list, identify a Value Listproperty (not a PageList property). Use the notation pagename.propertyname. The system appends the name of the new page as the value of the last element of the Value List property.

NewClass: Optional. Identify a class — in most cases concrete class — for the new page. Enter the keyword $NONE to create a classless page. If left blank, the system creates the new page using the class of the page specified in the Step Page column of the activity step being executed. (It retrieves the class of this page from the array entered in the Pages & Classes tab of the Activity form.) If the Step Page field is also blank, the system creates the new page of the class that is the first key part of the current activity.

0 Page-Clear-Message: Clears all the messages in the page. Normally validation/error messages.

1 Page-Unlock:

Use this method to unlock a page in the unusual situation that the page was locked during the Obj-Open operation but the ReleaseOnCommit parameter was not selected.

Typically, when the Obj-Open method opens and locks an object from the database, the ReleaseOnCommit parameter is selected. When a later Commit method executes, the system automatically releases the lock.

However, when the ReleaseOnCommit parameter is not selected, the Commit operation has no effect on the lock, which remains in force. This capability facilitates multiple Commit operations on one page without the need to re-acquire the lock.

You can also use this method to release a lock that is no longer needed, regardless of the ReleaseOnCommit parameter value.

4) Page-Validate

Use the Page-Validate method to force validation (or revalidation) of the value of all properties on the step page. The system adds a message to each clipboard property that fails validation against the restrictions in its property rule.

If the page has hundreds or thousands of properties, this method can be expensive in terms of system resources. The properties on the page already set (through the Property-Set method or similar methods) may already be validated. This method validates them again, and also validates any property values not changed since the page was opened.

Unless the content of the page was altered by Java code or by unorthodox means, the Page-Validate method is not necessary.

0 It actually refers the Rule-Edit-Validate and Rule-Declare-Constraints to validate the properties on the Page.

Use the Obj-Validate method, not the Page-Validate method, to validate specific properties identified in a Rule-Obj-Validate rule.

-A Page-Clear-Messages method applied later to the page removes the messages set by this method.

4.3) Property-Validate

Uses Rule-Edit-Validate. Continue -> Continue if error found else stop. Default -> Set a value if null.

Required -> Value is required else set an error message “value not present”.

4.5) Obj-Validate:

Use this method to apply a validate rule (Rule-Obj-Validate rule type) for the object identified on the primary page or step page.

This is different from Page-Validate in one case. It only validates the selected property not all the property. But Page-Validate validate all the properties.

Validate: The Rule-Obj-Validate rule

OverrideClass: The class name from which the search for the above rule will start.

5) Property-Set-HTML

Use this method to save the contents of an HTML stream as the value of a Single Value property. The property value can then be mapped as output for transmission to an external system.

Parameter Description

PropertyName Enter a Single Value target property reference. Identify the property that to receive its value from stream processing.

Typically, choose a property that has a Text type.

HTMLStream

Enter the Stream Name key part of an HTML rule (Rule-Obj-HTML rule type) to be processed to produce the value of the property.

6) Show-HTML

Use the Show-HTML method to cause the activity to process an HTML rule and send the resulting HTML to a user for display by Internet Explorer. Known as stream processing. this may involve the interpretation of JSP tags (or the older directives), which can access the clipboard to obtain property values, or can insert other HTML rules, and so on.

Parameter Description HTMLStream

Identify the Stream Name key part of an HTML rule (Rule-Obj-HTML rule type) to be processed. The system uses the class of the step page as the Applies To key part of the HTML rule.

7) Show-Stream

Use the Show-Stream method to apply stream processing to an HTML rule, correspondence rule, or XML Stream rule, and send the results to a browser-based requestor session.

Parameter Description

StreamClass Optional. Identify the class of a rule type derived from the Rule-Stream class. such as:

Rule-Obj-Corr

Rule-Obj-HTML

Rule-Obj-XML

If blank, the default value is Rule-Obj-HTML.

Do not use this method with list view or summary view rules.

StreamName Enter the second key part of the rule to be processed. To locate the rule using rule resolution, the system uses the class of the of the step page as the Applies To class of the rule.

StreamType

Optional. If you selected Rule-Obj-Corr or Rule-Obj-XML as the StreamClass value, enter here the third key part of the rule (the Correspondence Type or XML Type).

8) History Add

We can append the history details of a work object.

Documento similar