Professional Documents
Culture Documents
15 % of EXAM
Determine who to route a work object to, send correspondence, access database,
etc.
Callable function that has access to properties related to the object it is called to
work on
If a page has been created from a certain class, you can call an activity
defined to work on that type of page
Contains logic, control constructs, local variables, etc.
Code is not entered the same way forms are used to specify steps
Passage of information to and from
Can accept parameters
Can return one or more parameters using a parameter page and
even entire clipboard pages
Can call other activities or Java code segments
Activity Look-N-Fell
Drag and Define parameters
Drop steps
for this activity
List of pages
it will access
Document your
rule here
Show/hide
method arguments
Insert Append DisplayRule
a step a step description
Show/Hide
Looping / Preconditions / Transitions
Delete
row/step
shapes (task types) accept this activity. To create an activity for a flow, set the
Activity Type field to Utility, Connect, Assign, Notify, or Router as appropriate.
Once after completing this configuration in the activity we can simply select the
activity name in the one of the property configurations of the smart shape.
Property-Set
Page-New
Obj-Open
Show-Page
Page-Remove
call ActivityName
call ClassName.ActivityName
Obj-Save and many more
Parameter Name
Input or Output
Within the called activity, its primary page is what it was called to work on
Similar to the keyword this in Java and C++
The Page name we specify reflects in the step page of steps tab.
Expand
Property-Set
Method
Method: Property-Set
* Indicates
required
parameters
Append rows to
set multiple
properties
What is a Page-New?
Use the Step Page field to perform an operation (method) on that page
Unnamed pages are used less frequently than named pages
Otherwise, the page will be subject to garbage collection (should it run) once the
Click the Down Arrow after you type in call to see a list of activity
rules in the specified class.
If the source page cannot be found, the method does not fail. It does
not alter any pages. The resulting method status value is Good
If the destination page (identified in the CopyInto parameter value)
does not already exist, the system creates a blank page of the same
class as the source page. It may be a top-level page or an embedded
page
IF the Model parameter is not blank, the system finds the model
(using rule resolution) and applies the model to the destination page.
Properties already on the destination page are never affected by the
application of the model
Next, the system copies properties from the source page into the
destination page. This copying may create new properties on the
destination page or update the value of existing properties both
those originally on the destination page and those created through
the model. As the copying occurs, each property is validated against
its definition (its Rule-Obi-Property instance). If a property value
fails validation, the system adds a message to the destination page
Obj-Open method is used to open an instance stored in the rulebase and save
it as a clipboard page. If it finds the specified step page, the system clears
any data that is on it and re-uses the page. If no existing page has a name
matching the specified step page, the system creates a new page as part of
the Obj-Open method. When used on a primary page, the Obj-Open method
always clears any data on the page and reuses its name. If the key supplied
does not match the key of an object in the database, the system creates a
page of the indicated class that is empty except for the pxObjClass property,
and indicates failure in the pxMethodStatus property. The parameters for this
method are
Open Class : Identify the class of the instance to be opened
Lock : Check this box to acquire a lock. Lock the instance if you plan
to change and save the instance or delete it
RleaseOnCommit : Check this box if you checked the Lock box and
want the system to release the lock whenever the next Commit
method occurs for this instance.
PropertyName and PropertyValue :Enter in this array the name of
each property or properties and the associated values that together
make up the key of the instance to be opened. Type a period before
the property name
Call step method can be used execute an activity based on the class of the step page
being passed to the called activity. When that activity completes, control returns to
the calling activity. The calling activity can provide input parameters to the called
activity, or or it can share its own parameter page with the called activity, an
approach known as call-by-reference.
The Exit-Activity method ends the current activity and returns control to the calling
activity. If there is no calling activity, the system starts the next activity in the
pxActivityList property. Where as the End-Activity also closes the calling activity
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. Note : Use the standard
activity @baseclass. Show-Harness, not this method, to display a work object form
defined by a harness rule (Rule-HTML-Harness rule type).
StartNewFlow activity from the Work- class can be used from to start a new flow
from an activity
RDB-Save method can be used to save the contents of a clipboard page into a
row of a relational database. The system saves the properties on the
specified step page to the specified table in the database. This method works
in conjunction with a Connect SQL rule that contains SQL statements such as
INSERT, UPDATE, and CREATE statements on the Save tab. The parameters of
this step method are pretty much same as that of RDB-List
2.
3.
Routing activities :
ToCreateOperator : Route the assignment to the user who entered the work object
ToCurrentOperator : Routes the assignment to the worklist of the user who owns the
work object.
ToDefaultWorkBasket : Routes the assignment to the workbasket of the work group that
this user belongs to.
ToWorkParty : the assignment to the worklist of a work party in the work object,
identified through a parameter
Requestor Functionality
Security
RuleSet list
Available Work Pools
HTTP protocol parameters
And so forth
The Code- base class contains all the classes that define the objects used
by PRPCs own implementation
Page Responsibility
Typically has:
A name
A class
A list of properties and their values
Class: BIG-HR-TimeOff
PTOAvailable
PTOTotal
PTORemainder
25
0
25
Execute Activity
1. Create a test
page or test without
Value set
Temporary page
created by clicking
Create Page and Run
Rule
First, using the Clipboard tool or other means, set up clipboard pages
and property values or other initial conditions if needed.
Next, start the Tracer if you want to monitor or debug execution
Click the Run button ( ) on the toolbar. A pop-up form appears.
Complete the Test Page area. You can identify an existing clipboard
page of an appropriate class as a source of values, or create a new page
of that class and initialize values on that page using a model.
If the activity uses parameters, the system presents an input form for
parameters. Enter constants for input parameters as prompted. (Some
input parameters may be optional.)
Click Run to start execution of the activity in your own requestor
session.
As it runs, the activity may examine and update your clipboard, open
and alter instances, display HTML forms, and so on. It uses your own
RuleSet list and access roles.
If the execution causes internal errors, an error form appears. Use the
Clipboard tool and the Tracer to find the error and exception.