I see the same behavior, this might be a limitation of using to create events. Maybe you could write in an EventProcedure to convert the string to type int (e.g. ToUInteger({S 1}) )
Is there a way to use custom event codes? Everytime I try to use a non-CA default event code I get the following tomcat log output
Nov 21, 2013 9:34:26 AM (http-bio-443-exec-1100) (RESTFULWEBSERVICES) - (DEBUG) - processing createEventByXML
Nov 21, 2013 9:34:26 AM (http-bio-443-exec-1100) (RESTFULWEBSERVICES) - (DEBUG) - number of events to create: 1
user:
host:
Nov 21, 2013 9:34:26 AM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
WARNING: WebApplicationException has been caught : no cause is available
Also is there any documentation on using the rest events api? The official REST API doc mentions nothing about the events URL.