Message Event Received with REST and Pojo
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2016 11:57 AM
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:
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
Should I create my RestVariableConverter?
Does anyone have a better idea or has had this problem before?
Thanks,
Jorge
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
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2016 06:28 AM
Yes, if you add a custom POJO you will need that indeed.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2016 06:31 AM
Yes, just did that and it's working fine.
Thanks
Thanks
