Documente Academic
Documente Profesional
Documente Cultură
15 % of EXAM
Drag and Define parameters List of pages Define security and Document your
Drop steps for this activity it will access activity “type” rule here
Show/hide
method arguments
Show/Hide Delete
Insert Append DisplayRule
Looping / Preconditions / Transitions row/step
a step a step description
• How to create activities for flows
• The value of the Activity Type field on the Security tab determines which Visio
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.
• Identify standard methods
• Some of the standard methods we have in PRPC are as follows:
• Property-Set
• Page-New
• Obj-Open
• Show-Page
• Page-Remove
• call ActivityName
• call ClassName.ActivityName
• Obj-Save and many more
• Passing Parameters in Activities
• Parameters are variables used as inputs or outputs for the activity
• Not every activity has parameters
• When an activity is called PRPC places parameter names and values
on a page
• Is known as the parameter page
• Has no name or class associated
• Referred to by using prefix keyword param.
• Example: param.depth refers to the depth parameter
• The Page name we specify reflects in the step page of steps tab.
• Method: Property-Set Expand
Property-Set
Method
* Indicates
required
parameters
Append rows to
set multiple
properties
What is a Page-New?
• The Page-New method is used to create a new page on the clipboard
• Click the Expand Method Step icon for Page-New to see the optional
arguments, including:
• Execute a Model on the new page
• Specify the Class of the new page
• 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
Name: pyWorkPage
Execute Activity
1. Create a test
page or test without
Value set
Temporary page
created by clicking
“Create Page and Run
Rule”
• Conclusion: Unit Testing an Activity
• 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.