<<Back
Activity is
rule under technical category. It is an instance of the class
Rule-Obj-Activity.
Activity is
used to implement business logic.
PRPC
provides a set of predefined methods which we use through activity in order to
implement business logic.
Activity
contains a sequence of steps like 1, 2, 3, and 4….and so on… At each and every
step we can call one predefined method and pass the parameters to it.
The below
are basic methods which we can use in activities.
1) Page-New:
- This method can be used to create new user pages on the clipboard.
2) Page-Remove:
- This method can be used to delete user pages from the clipboard.
3)
Property-Set: - This method can be used to perform assignment operation i.e to
assign the values to properties.
Tracer: - Tracer is one of the main
debugging tools in PRPC using which we can debug many types of rules to see
step by step execution.
How to Invoke One Activity from
another Activity.
An Activity
can be invoked from another activity by using below two instructions.
1) Call
2) Branch.
If we have
two activity ‘ChildActiity’ and ‘ParentActivity’, and if we want to invoke
ChildActivity from parentActivity the syntax is.
Within
ParentActivity step we need to write below code. 1) Call ChildActivity. 2)
Branch ChildActivity.
Difference between Call and Branch:-
Call Branch
Call invokes the child activity, executes it Call invokes the child activity,
executes it then comes back to the parent activity and then comes back to the
parent activity and executes remaining steps after call step. End the exception
of parent activity at the branch step itself i.e., it will not execute any
steps which are written after branch step.
Activity
Types: - 1. Activity
2.Utility 3. On Change 4.Notify 5.Trigger 6.Connect etc.….
Activity
Type can be chosen under the Usage Dropdown field in the Security Tab of
Activity Rule Form.
Activity
types identifies where this activity should be invoked from.
Activity
Type Invoked From
1. Activity 1.
Activity / HTML Controls.
2. Utility 2.
Flow Using Utility Flow Shape.
3. OnChange 3. Declare
Onchange Rule
4. Trigger 4.
Declare Trigger Rule
5. Connect 5. Flow
Using Integrator Shape.
6. Notify 6.
Flow using Assignment Shape under Notification Tab.
Pre-Condition and Post-Condition in
activity steps
·
In
an activity, at each and every step it provides when (before step), jump (after
step)
·
At
the when and jump we can enable the condition and call a when condition rule
·
Based
on the condition satisfied, we can
-
Continue
to execute step
-
Skip
step
-
Jump
to another step etc.…
·
The
condition called at when is said to be Pre-Condition whereas the condition
called at jump is said to be Post-Condition/Transition
No comments:
Post a Comment