# Event Registry object payload mapping

**URL:** <https://forum.flowable.org/t/event-registry-object-payload-mapping/10122>\
**Category:** Flowable Engine\
**Created:** [January 17, 2023, 9:35am UTC](https://forum.flowable.org/t/event-registry-object-payload-mapping/10122 "2023-01-17T09:35:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jy006](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/jy006/32/3070_2.png) [@jy006](https://forum.flowable.org/u/jy006)\
**Post date:** [January 17, 2023, 9:35am UTC](https://forum.flowable.org/t/event-registry-object-payload-mapping/10122/1 "2023-01-17T09:35:40Z")

</div>

Currently, mapping an event payload to variable can only be done with ‘string’, ‘integer’, ‘double’, and ‘boolean’. Can event payload be mapped into JPA Entity, the same way Message Events can be thrown with JPA Entities as its variables? How can I achieve this?

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [February 24, 2023, 12:30pm UTC](https://forum.flowable.org/t/event-registry-object-payload-mapping/10122/2 "2023-02-24T12:30:42Z")

</div>

Hey @jy006,

How does the event come to Flowable?

If you are using internal events then you can pass any object for the value. However, if an event comes over JMS, Kafka etc. then Flowable needs to perform some kind of a transformation from the bytes to objects.

Can you please provide some examples?

Cheers,  
Filip
