Quantcast
Channel: SCN : Popular Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 583

Not able to complete a task by bpm odata service

$
0
0

Hi experts,

 

    I try to build my own UI follow this blog(BPM OData: Implementing a Basic Custom Task Execution UI).

    But I got 500 Error,when I try to complete a task.

  

    The task is to get display name and age and confirm(or reject).I can display the name and age value successfully.

    This is my code when call the complete url:

   

/*Get id*/    
   var url = location.href;
   var params =url.split("?");     
   var id=params[1].split("=")[1];
 
   var odataModel = this.getView().getModel();
 
   var outputData = {};
   var context = odataModel.getProperty("/InputData('" + id + "')/ContextTypeINPUT/Context");
   outputData.OutputData=context; 
   odataModel.create("/OutputData", outputData, null,function() {
  }, function(oEvent) {
  alert("Complete failed.");
  });

The xsd file

 

I guess this is because I use wrong odata. Because  the reject function which send empty data works well:

I try different way to get the odata,but all failed.Is anyone know what is wrong with my code?

 

Many thanks.

 

Aria


Viewing all articles
Browse latest Browse all 583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>