Statechart Checks : (C1071) Tasks/Procedures that are used incorrectly

(C1071) Tasks/Procedures that are used incorrectly

Tasks can be bound only to activities. Any other usage (for example, in expressions) is incorrect. Procedures and functions cannot be bound to activities.
Error In:
Correctness
Example:
TASK PRINTER is used as procedure/function in the definition of SCH:AN1.
Erroneous Elements:
Subroutines