martaAction

Method isApplicable()

fun Action:isApplicable(context: ActionContext): Boolean

Checks if the action is applicable to a given context. The function is guaranteed to be called before apply().

Returns true if the action should run, false otherwise. The default implementation always returns true.

isApplicable() automatically returns false if the provided implementation suspends, or if a runtime error occurred.