# Send/Receive event tasks + wrong XML generation

**URL:** <https://forum.flowable.org/t/send-receive-event-tasks-wrong-xml-generation/8014>\
**Category:** Flowable Engine\
**Created:** [June 20, 2021, 7:39pm UTC](https://forum.flowable.org/t/send-receive-event-tasks-wrong-xml-generation/8014 "2021-06-20T19:39:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mykeul](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mykeul](https://forum.flowable.org/u/mykeul)\
**Post date:** [June 20, 2021, 7:39pm UTC](https://forum.flowable.org/t/send-receive-event-tasks-wrong-xml-generation/8014/1 "2021-06-20T19:39:42Z")

</div>

Hi,  
I am using the “Send event service task” and the “receive task” to send and receive message through kafka Topic. See screenshot.  
 ![flow](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/3/3bc48538a1728f67e8065d5e620ffa902549a853.png)

I was wondering if this is necessary/useful to have a connection (arrow) between those 2 tasks since the receiveTask has both channel key and event key defined and “knows” from who to get the message.

Related question:  
The connection exists between the 3 boxes but when I save the flow and look at the view mode (before I export it), the connection disappear. See second screenshot.  
 ![flow_in_view_mode](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/3/39d1bc986b2660e7839373818ebbb3437f1d57f9.png)

The result is that the generated xml is not valid since there is one waypoint instead of a minimum of 2.  
So I have to add a fictive waypoint in order to make the XML valid.

By the way, I am using Flowable 6.6.0

Thanks for your help!

\<bpmndi:BPMNEdge bpmnElement=“sid-4455ABD6-3135-4434-B4B8-DFDD69CC06DE” id=“BPMNEdge\_sid-4455ABD6-3135-4434-B4B8-DFDD69CC06DE”\>  
\<omgdi:waypoint x=“550.9499999999999” y=“81.92592592592592”\>\</omgdi:waypoint\>  
\</bpmndi:BPMNEdge\>

---

<div class="post-metadata">

**Author:** ![mykeul](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mykeul](https://forum.flowable.org/u/mykeul)\
**Post date:** [June 27, 2021, 6:59am UTC](https://forum.flowable.org/t/send-receive-event-tasks-wrong-xml-generation/8014/2 "2021-06-27T06:59:28Z")

</div>

Should I post this issue on GitHub?

---

<div class="post-metadata">

**Author:** ![mykeul](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mykeul](https://forum.flowable.org/u/mykeul)\
**Post date:** [June 28, 2021, 9:40am UTC](https://forum.flowable.org/t/send-receive-event-tasks-wrong-xml-generation/8014/3 "2021-06-28T09:40:24Z")

</div>

I see there is a issued open for this bug:

> <https://github.com/flowable/flowable-engine/issues/2668>
>
> \*\*Describe the bug\*\*
> When I export .bpmn the file is missing one part of the wa…ypoints that describes the line between tasks only in case od receive event task. When I switch the same task for other one like sendEventTask that doesn't heppen. 
> 
> \*\*Expected behavior\*\*
> The generated .bpmn code should have all needed waypoints. Generated with flowable modeler.
> \*\*Code\*\*
> Wrong code \* currently exists":
> !\[image\](https://user-images.githubusercontent.com/16398511/97430414-258ff400-1919-11eb-8f9b-c05dd1aeb591.png)
> Expected code:
> !\[image\](https://user-images.githubusercontent.com/16398511/97430483-3ccee180-1919-11eb-882d-3f0e8439fca4.png)
> 
> \*\*Additional context\*\*
> Flowable 6.6. Only heppens with new type of task - receive event task.
