on 05-02-2017 8:44 AM
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.
odata service is auto generated based on the start event, once it gets called, your bpm process is started.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.