cancel
Showing results for 
Search instead for 
Did you mean: 

How to Trigger Start event in BPM from custom UI5 application

former_member190063
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

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

former_member190063
Participant
0 Kudos

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

junwu
Active Contributor
0 Kudos

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

former_member190063
Participant
0 Kudos

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

Muniyappan
Active Contributor
0 Kudos

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.

former_member190063
Participant
0 Kudos

Hi Muniyappan,

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

Regards

Karthik S