How to use different tag in groovy

I have some feature with different tags. It is possible to run these tests in groovy using the tags?

no idea.
kindly read a certain pinned topic (i won’t say which one), follow the guidance there and describe better what do you want to do.
after that you may get some relevant help.

Feature: Title of your feature
I want to use this template for my feature file

Scenario Outline: Title of your scenario outline
Given I want to write a step with
When I check for the in step
Then I verify the in step

  | name  | value | status  |
  | name1 |     5 | success |
  | name2 |     7 | Fail    |


is it possible to call the tag (hook) in groovy?