cancel
Showing results for 
Search instead for 
Did you mean: 

Message Event Received with REST and Pojo

jorge_serrao
Champ in-the-making
Champ in-the-making
Hi everyone,

I need to send a MessageCatchingEvent via Activiti REST API with a Java Pojo but I'm facing a problem with that.

The request I was trying to send (via PUT) is the following:

     {         "action":"messageEventReceived",          "messageName": "myMessage",           "variables" : [                 "name":"serviceGroup",                 "type":"serializable",            ]       }‍‍‍‍‍‍‍‍‍‍‍‍



This request made me wonder how should I include the Pojo in this JSON so I decided to investigate the code in Activiti.
I realized that Activiti is looking for a
RestVariableConverter‍
based on the variable type but since there isn't a RestVariableConverter for a varibale type of serializable an error would be thrown.

Should I create my RestVariableConverter?
Does anyone have a better idea or has had this problem before?

Thanks,
Jorge

2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
Yes, if you add a custom POJO you will need that indeed.

jorge_serrao
Champ in-the-making
Champ in-the-making
Yes, just did that and it's working fine.

Thanks
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.