Skip to Content
0

How to Trigger Start event in BPM from custom UI5 application

May 02, 2017 at 07:44 AM

208

avatar image

Hi,

I am working on triggering the BPM start event from custom UI5 application. My requirement is Action(Submit Button) from custom UI5 application should trigger the BPM start event automatically. The Submit button in custom UI5 application tries to post some data through BPM Odata service. After that, it should trigger my BPM start event automatically. My doubt is how to use the BPM OData service to initiate the start event in BPM process. How to use this service in BPM especially in Start event in BPM process.

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

2 Answers

Muni M May 02, 2017 at 01:53 PM
0

you can either create soap or rest interface and give that to UI5 application team.mostly they would prefer rest. they can call the service after submit button is clicked.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Muniyappan,

We are using BPM odata instead of REST in our BPM process.

Regards

Karthik S

0
0
Jun Wu May 02, 2017 at 02:09 PM
0

odata service is auto generated based on the start event, once it gets called, your bpm process is started.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Jun Wu,

You mean whenever I call the BPM startData in my ui5 application will automatically trigger my BPM process? So no need to map any url in my StartEventTrigger in BPM process. Correct me If I am wrong.

Regards

Karthik S

0

yes......................

0

Hi Jun Wu,

We are trying to trigger the BPM process from the UI5 application. But it is not working. Please see the below snippet.

var outputData = {FirstName : "XXX" , LastName : "YYY"};

var taskId = "5425b28c268111e7a8e00000003beec6";

var oBPMModel = new sap.ui.model.odata.ODataModel(

"http://HostName:Port/bpmodata/taskdata.svc/5425b28c268111e7a8e00000003beec6/");

oBPMModel.create("/OutputData", outputData, null,

function sendData_OnSuccess(oData, response) {

alert("Task has been completed successfully");

},

function sendData_OnError(oError) {

alert("Task could not be completed");

});

Regards

Karthik S

0