工作灯适配器

时间:2013-03-11 14:10:23

标签: ibm-mobilefirst worklight-adapters

我在worklight适配器中遇到问题,在下面的http适配器方法中 ,它显示The mandatory parameter 'action' is missing,返回statusCode为 500和statusReason为“Internal Server Error”。我已经提供了所有用户凭据 正确地在适配器xml文件中,但我不知道为什么我收到此错误。

代码:

function actionOnProcessInstance()
{

var param = "/rest/bpm/bfm/v1/process/_PI:9003013d.4387342e.1efe573f.7c20307?action=resume";

var input = 
{
  method : 'put',
  returnedContentType : 'json',
  path : param,
};

var response = WL.Server.invokeHttp(input);

return response;

}

1 个答案:

答案 0 :(得分:2)

在5.0.5.x中,invokeHttp将获取put和post路径上提供的任何参数,并将它们放在http主体中,而不是将它们保留在路径上作为查询参数(如开发人员所预期的那样)。此行为将在即将发布的版本中更新,但目前无法强制这些行为保留为查询参数。

相关问题