Statechart Checks : (C1077) Procedures/Functions that are used incorrectly

(C1077) Procedures/Functions that are used incorrectly

Either procedures are used as functions (treated in some expression as if they return a value), or functions are used as procedures (called in expression where an action is expected).
Error In:
Correctness
Example:
Function FACTORIAL used as Procedure in definition of SCH_ADA:ACTION: FACTORIAL(Y)
Erroneous Elements:
Subroutines