Check if a type has a given action

#1

I’m writing a test and was hitting by this error:

ActionError: function metadata was not found for action Target [supertenant/prettytag/AwesomeType?action=evalMetric

How can I check that a given type accepts a given action (e.g. evalMetric) before calling it?

0 Likes

#2

This should work !

AwesomeType.isA(MetricEvaluatable)

Also when you have only the typeName (i.e. a string), you can use c3Type(typeName).

0 Likes