Skip to Content
0

Error while starting BPM Process though BPMOData

May 19, 2017 at 01:56 PM

45

avatar image

Hi Team,

I am trying to trigger the BPM process from my UI5 application. But I am getting an error.

I have followed the same data structure in process context. I tried triggering the BPM /StartData with empty object. But that is also not working. Kindly suggest some solutions.

SAP UI5 Code:

var serv = "/bpmodata/startprocess.svc/demo.sap.com/initialbpm/custProcess";

this.processStartODataModel = new sap.ui.model.odata.ODataModel(startProcessSvcURL, true);

var startData = {}; startData.ProcessStartEvent = {}; startData.ProcessStartEvent.start = {"Name": "XXX", "Age" :"26", "Country": "YYY"};

this.processStartODataModel.create("/StartData", startData,null,

function success(oData, response)

{ alert("Task has been completed successfully"); },

function error(oError)

{ alert("Task could not be completed"); });

Error :

"error":{"code":"INVALID_DATA","message":{"lang":"en","value":"An error occurred. 500 Internal Server Error."

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers