We have a content type where there is a term reference field which a user must set to reference a specific term. The referenced term already has a predefined "group_audience" field value. I would like to know how we can set a process variable by fetching this value through the referenced term.

This capability is derived from rules, for example, where one can add an action to "fetch entity by id," the entity type value can be set to "group," and the identifier data selector can be set to "node:field-term-reference:group:gid"

Would it be possible to plug this capability into a process variable either through a content field result or by some other means? Thanks.