Can we configure the receive task as the inbound connector?

I want to configure the receive task as the inbound connector can we do that?
Like wise we do it for the message start event , start event, intermediate catch event.

Yes, you can configure a receive task as an inbound connector in Camunda 8, similar to how you do it for message start events and intermediate catch events!

How to Configure a Receive Task with Inbound Connector

Here’s how you can set up a receive task as an inbound connector:

Steps:

  1. Add a receive task to your BPMN diagram
  2. Change the template to your desired inbound connector (e.g., HTTP webhook, Amazon SQS, etc.)
  3. Configure the required properties:
    • Message name: The name of the message the task should wait for
    • Correlation key: An expression to match the incoming message to the correct process instance (e.g., =orderId)
    • Variable mapping: How to map incoming data to process variables
  4. Deploy your BPMN diagram

Example Configuration:

<bpmn:message id="Message_1iz5qtq" name="Money collected">
  <bpmn:extensionElements>
    <zeebe:subscription correlationKey="=orderId" />
  </bpmn:extensionElements>
</bpmn:message>

<bpmn:receiveTask id="money-collected" name="Money collected"
  messageRef="Message_1iz5qtq">
</bpmn:receiveTask>

How it Works:

  • When the process reaches the receive task, a message subscription is created
  • The process instance waits until a message with the correct name and correlation key is received
  • Once the message arrives, the receive task completes and the process continues

Key Differences from Other Elements:

  • Message Start Event: Starts a new process instance when a message is received
  • Intermediate Catch Event: Waits for a message during process execution (similar to receive task)
  • Receive Task: Also waits for a message during execution, but represents a specific task/activity

All three can be configured with inbound connectors using the same general approach!

References:

Is there a specific inbound connector type you’d like to configure with your receive task?

Hey @bharat3 with 8.8 we fully support Receive Tasks for Connectors including the element template generator. You can already find the Receive Task based element templates for Connectors in our repository. For example the Webhook Connector: connectors/connectors/webhook/element-templates/webhook-connector-receive.json at 8707c999ef305cca161bde021ccaf721ade47d0a · camunda/connectors · GitHub