Adding a Send Event Diagram Element for a Flow
Functions
This diagram element is for sending events using a preset API. These events can be captured by other flows, BPMs, state machines, and triggers.
Using the Send Event Diagram Element
- On the flow designer, choose Basic and drag the Send Event diagram element to the canvas.
- Click the Send Event diagram element, click
, and set basic information.
Table 1 Parameter description Parameter
Description
Label
Label of the diagram element, which is displayed on the flow design page. The system automatically assigns a value in a specific Eventsequence number format, with the sequence number starting at 0 for each type of diagram element.
Name
Diagram element name, which must be unique in the current flow. The naming requirements are as follows:
- Value: 1–80 characters.
- Start with a letter and can contain letters, digits, and underscores (_). It cannot end with an underscore (_).
Description
Description of the diagram element.
Value: 1–255 characters.
- Click
and complete the configuration.
Figure 1 Configuring the send event diagram elementTable 2 Parameters of the send event diagram element Parameter
Description
Event
Select the event to be sent from the drop-down list.
Partition Key
If a custom parameter is selected from the event as the partition key of the Kafka, events will be routed based on this key. Events with the same key will be routed to the same Kafka. If no key is specified, events will be randomly routed to different partitions to enhance concurrent processing performance.
You are advised to select key fields with differentiation. The field must be a custom field of the event.
Send to external
The system provides a Kafka topic named BINGO_SYS_TOPIC for connections to Huawei Cloud Astro Zero.
- If this parameter is not selected, event data is sent to the default topic.
- If this parameter is selected, event data will be sent to other Kafka topics connected to Huawei Cloud Astro Zero. In this case, you must configure these other topics.
This parameter is deselected by default.
Delay sending event until transaction ends (committed or rolled back)
Event sending can be delayed until a transaction ends.
By default, this parameter is not selected, indicating that an event is sent immediately when the process reaches this diagram element.
Topic
This parameter is displayed only when Send to external is selected, indicating the default topic is not used.
You need to obtain other topics from Kafka connected to Huawei Cloud Astro Zero.
Target/Source
Assign a value to a custom parameter of the event. That is, assign the value of Source to Target. Click Add Row to add a parameter and assign a value to it.
- Target: Select a custom parameter of the event from the drop-down list.
- Source: Drag a variable from the context or enter {!Variable name}.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot