martaActionDeclaration

Method isApplicable()

fun ActionDeclaration:isApplicable(context: ActionContext): Boolean

Optional method

Check if the action is applicable to a given context.

Return true if the action should be executed, false otherwise. The default implementation always returns true.

isApplicable() returns false if the function suspends, or if there is a runtime error.