Statechart Checks : (C2058) Elements affected (generated or modified) by the chart, but are neither “out” parameter nor used internally

(C2058) Elements affected (generated or modified) by the chart, but are neither “out” parameter nor used internally

Elements affected by the statechart are neither output parameters nor used internally.
Error In:
Completeness
Erroneous Elements:
Events, conditions, data-items, and activities