How to claim a ReceiveTask

How to claim a ReceiveTask using Camunda java library

@santosh_kumar_Kotako only user tasks can be claimed. Receive task can’t be claimed.

How do I restrict accessing ReceiveTask by multiple users?

@santosh_kumar_Kotako Eventhough recieve task has a waiting state, task can’t be assignable to the human performer. RecieveTask notation is meant for receiving messages from external systems or messaging systems like Kafka,RabbitMQ, etc.

If you want to assign to a user, then convert it to user task or else you need to handle it in the application itself that who can send messages to the receive activity.

Thank you Aravindh for clarification, I will handle the claim process in the application.