Hello,
I'm working with Oracle BPM 12c (12.2.1.0.0) and trying to start a BPM process instance using the REST API:
POST URL: http://127.0.0.1:7101/bpm/api/2.0/processes
Request body (JSON):
{
"processDefId": "default/EmployeesRegBpm!1.0*soa_ff424228-b729-406b-a732-dace9f027488/Process",
"serviceName": "Process.service",
"operation": "start",
"action": "Submit",
"params": {
"empDetails": {
"name": "Abc",
"dept": "IT",
"position": "Developer",
"salary": 2000.0
}
}
}
But I get the following error response:
500 Internal Server Error
The XML data is invalid.
There is an error while parsing the XML data.
And in the Jdeveloper log:
java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:50)
at com.collaxa.cube.xml.dom.DOMUtil.createInMemoryDocument(DOMUtil.java:154)
at oracle.bpm.rest.processdef.ProcessInstancesResource.postMessage(ProcessInstancesResource.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Please advise.