Showing posts with label PEGA Interview Questions. Show all posts
Showing posts with label PEGA Interview Questions. Show all posts

Friday, 27 June 2014

The various standard attachments PRPC supports are

a. File ( Data-WorkAttach-File)
b. Note ( Data-WorkAttach-Note)
c. Scanned document ( Data-WorkAttach-ScannDocument)
d. Screenshot ( Data-WorkAttach-ScreenShot)
e. URL ( Data-WorkAttach-URL)

Some of the important property streams are

i. CurrencyAmount : Formats the number as currency based on the default locale
ii. Date-Time-CalanderHarness : dd-MMM-yy HH:mm format plus calendar control
iii. FixedSize : Accepts the input for the no. of characters specified in pyMaxLength
iv. TextAreaWithExpand : Default is closed, expandable region.
v. TextAreaWithExpandExpanded : Default is open with two lin e expandable region
vi. PickCorrPreferences : Select from list of correspondence preferences
vii. PickCountry : Select from list of countries
viii. PickResponseMode : Select from the list of preferred ways to be contacted
ix. PickState : Select fro list of states
x. CheckBox : Displays an HTML check box reflecting the property value
xi. Default : If you leave the Property Stream field on the Property form blank, the system uses this HTML Property rule
xii. PickOperator : Displays a drop-down list of all Operator-IDs, for selection.
xiii. PromptSelect : On input, allows the user to pick from a drop-down list defined in the Table Edit tab of the property form as a Local List or Prompt List. On output, displays the value selected by the user
xiv. PromptFieldValue : On input, allows the user to pick from a drop-down list defined by Field Value rules.
xv. TextArea : Displays an HTML textarea containing the property value
xvi. TextAreaSmall : Displays a smaller HTML textarea containing the property value
xvii. Date-Calendar : Date format with calendar control

How does the user validation works for properties in PRPC :

A property value that is supplied by user may be valid or invalid. Pages containing one or more invalid values can not be saved to the database. When process commander detects an invalid value, it adds a message to the page to mark this discovery.
Two important points here are,
        1. The invalid values remain on the clipboard
        2. The user is not automatically notified of the invalid value

Five kinds of rules basically support the user validation:
1. Property Rules ( Rule-Obj-Property ) : It can serve the purpose of validation in 3 ways
a. Table edits constrain the allowable values.
b. Type of property will restrict the format
c. Max allowable length
2. Edit Input values ( Rule-Edit-Input ) : These can convert the user entered input values into an internal format
3. Edit Validate Rules ( Rule-Edit-Validate ) : these are custom java routine functions which can further test the format of the input
4. Field Values ( Rule-Obj-FiledValue ) : These provide configurable list of acceptable values
5. Multii property Validation rules (Rule-Obj-Validate): These rules are used to apply multiple edit validate rules to act at once. If a value fails any of these validations, the system notes this in a message associated with the property or with the clipboard page containing the property

What are the different parsing mechanisms are available in PRPC?

XML Parsing (Apply-Parse-XML method)
Java Parsing

Concentrate on required fields of every rule (Rule that you are familiar with )

For Rule-Obj-Class Rules, history is mandatory.

List some classes in PRPC (like ClipboardPage, ClipboardProperty, etc…..)


How to get a property value from clipboard using Java step?

ClipboardPage workpage = tools.findPage(pagename);
String  propername = workpage.getProperty(".pxResults.Risk").toString();
 Or
 String  propertyname= tools.findPage("WorkListPage").getProperty(".pxResults.Risk").toString();

How to call an Activity from Java step?

HashStringMap activityKeys = new HashStringMap();
activityKeys.putString("pxObjClass", "Rule-Obj-Activity");
activityKeys.putString("pyClassName", workclass);
activityKeys.putString("pyActivityName", "HistoryAndAttachments" );
tools.doActivity(activityKeys , workpage, tools.getParameterPage() );

How to call an Activity from Java Script?

<Script>
Function A ()
{
var urlPath = "./PRServlet" ;
var url = urlPath + "?pyActivity=GHC-HPlan-CS-Work.ABC&CSR=" + CSR;
window.open(urlPath,"_self");
}
</script>

How to jump from one step (4) to other step (2) in an activity?

We can not  go back to the previous step with in activity , even  if you write code such way that to refer  previous step  it  will not through any error,   the execution will be stopped

How to jump from one step (2) to other step (4) in an activity?

By using the “Jump to later step” which is available at precondition as well as at transition condition.
 Or
By using the following    java step which in picture


We have 12 Activity types . from these what types can be used in flows?

We have 12 activity types :
1. Activity  - cannot be used in the flow
2. Assign
3. Connect
4. Locate  - cannot be used in the flow
5. Notify
6. OnChange - cannot be used in the flow
7. Route
8. Validate
9. Trigger - cannot be used in the flow
10. Utility
11. Assembler
12. LoadDeclarativePage - cannot be used in the flow

How to open the work object s

Obj-Open   Open an instance stored in the PegaRULES database or in certain cases an external database.
Obj-Open-by-Handle    Open an instance using a permanent unique key.
Obj-Refresh-and-Lock  Open an instance and acquire a lock.

Tell me how to acquire locking in PRPC?

Process Commander has several locking mechanisms:
=> You can lock a RuleSet version with passwords, preventing any changes to the rules associated with that RuleSet or version.
=> A requestor may acquire temporary exclusive access to an instance, preventing other requestors from updating or deleting it.
=> You can lock an application rule (Rule-Application rule type) with a password, preventing others from changing that rule instance until they enter the password.

Obj-Refresh-and-Lock   Open an instance and acquire a lock.
Page-Unlock            Release a lock held after Commit.

How to create pz, px, py properties?

Standard property names start with px, py, or pz. You can override px and py properties in your application, but cannot create new properties with any of these three prefixes.s

When will pyWorkPage created in clipboard?

When we start creating the work object

What is the use of setting the log-messages?

Tracing the values of properties at run time

Tell me bout different level of log messages?

=> Debug — Record as DEBUG severity, produces the largest number of messages; least severe.
=> Info — Record as INFO severity
=> Warn — Record as WARN severity
=> Error — Record as ERROR severity; most severe. s
=> InfoForced — always record as INFO event.

Tell me about the pz, px,py properties ?

1. PRPC standard properties are prefixed either with px or py or pz
i. Px – Computed properties that users can see on a form, but can’t directly enter or change ( Such as pxCreateDateTime). To alter this values activities can use a step method called Property-Set-Special metod
ii. Py – Properties that users can enter or change via direct input ( such as pyDescription ) . To assign these values programmatically, activities can use step method called Property-Set method
iii. Pz – Properties that are reserved for internal use ( such as pzInsKey). User can’t see, enter or change these properties

Tell me is there any tool for class structure design in PPRC ?

Inheritance viewer