Statechart Checks : (C1085) Elements not declared as parameters or as variables

(C1085) Elements not declared as parameters or as variables

There are elements used in the tested procedural statechart/flowchart that are not declared as local variables, parameters, or global data of the connected procedure.
Error In:
Correctness
Example:

data-item L2
condition C

Erroneous Elements:
Data-items and conditions