Link task with insstance

Suppose I have to orchestrate a transaction
orchestration has 2 steps/tasks
Task/Step #1 Rest Call
Task/Step#2 Karka consumer

My Question is
In 2 different transation how Kafka links transaction to respective consumer
Like
Execution 1, task 1,Rest Call, task 2 Kafka consumer
Execution 2, task 1,Rest Call, task 2 Kafka consumer

How kafka knows task2 i.e Kafka consumer belongs to execution 1 or 2