Activity form
|
The Method Parameters section allows you to pass information from an activity to a method or instruction specified in the Method field of a step.
To complete the Method Parameters section in a step:
Call
, Branch
, Collect
, Queue
, Flow-New
, or Rule
, followed by a rule name are examples of instructions.Java
instruction, a text area appears where you can enter inline, Java source code. Enter values in each field, using the SmartPrompt to help you select an option from a list where available. Icons appear next to a field when appropriate:
At run time, the system passes the values specified in the Method Parameters section to the method or instruction. If applicable, a parameter page is created for the step that is separate from the parameter page of the activity. This separate parameter page is destroyed when the step completes.
In some cases, you can use the parameter page of the activity to pass information instead of explicitly setting values in the Method Parameters section. This technique is referred to as passing parameters by reference.
To pass parameters by reference:
Ensure that the parameter values required by the method or instruction are present on the parameter page of the activity before the step executes.
This is typically done by a previous Property-Set
step in the activity or a rule higher up in the call stack.
At run time, the parameter page of the current activity is passed to the method or instruction. This page returns to the activity when the step completes.
Be aware that passing parameters by references allows the called method or instruction to modify the parameter page.
Branching to another activity
Calling another activity Methods and instructions by name Using the Queue instruction to run an activity asynchronously |