Param and Local Layman Term
Think of Local like a rough paper you keep on the side while doing a math problem:
-
You do your calculations there.
-
Once you’re done, you throw it away.
-
No one outside the exam hall will ever see it.
While Parameters are like the values given in the question and the answer you write in the answer sheet, they go in and out of the function (or activity).
Technical wrap-up
Parameters: Can be passed in (input) or out (output) of an activity.
Can be dynamic (runtime values) or static (fixed values from other rules).
Reusable outside the activity since they are part of the rule interface.
Locals: Exist only inside the activity (rule scope only).
Are temporary holders for intermediate values, flags, counters, etc.
Cannot be passed in or out, purely for manipulations within steps.
Not stored on the clipboard, only in memory during execution.