简体   繁体   English

JBPM:执行过程的POST请求出错

[英]JBPM : POST request for execute process go wrong

I am new to jBPM. 我是jBPM的新手。

I reference jbpm.org for tutorial. 我参考jbpm.org进行教学。 And I tried " My First Business Application " example. 我尝试了“ 我的第一个业务应用程序 ”示例。 It is OK. 没关系。

And then I tried the next tutorial " Business Application with Business Asset ". 然后,我尝试了下一个教程“ 带有业务资产的业务应用程序 ”。 The first steps are going well. 第一步进展顺利。 I successfully done installation of jBPM Console, drawing business process asset in KIE process and starting the application are going well. 我成功完成了jBPM Console的安装,在KIE流程中绘制业务流程资产并启动了应用程序,一切顺利。

And I tested according to reference. 并且我根据参考进行了测试。 I got a problem for sending POST request to my application. 我在向我的应用程序发送POST请求时遇到问题。 I use Chrome Postman client for sending POST request. 我使用Chrome Postman客户端发送POST请求。

In tutorial, they give the following link to make POST request. 在教程中,他们提供以下链接以发出POST请求。

http://localhost:8090/rest/server/containers/business-application-kjar/processes/business-application-kjar.process/instances

I do but I always get " 415 Unsupported Media Type " in every time. 我可以,但是每次都总是得到“ 415不支持的媒体类型 ”。 I also research for error. 我也研究错误。 I can't find anywhere. 我找不到任何地方。

Please help me. 请帮我。

I am trouble for continue the next examples. 我为继续下一个示例感到麻烦。

I want to know is any way to continue or am I wrong in sending request. 我想知道有什么继续的方法,或者我在发送请求时错了。

邮差

Thanks. 谢谢。

415 - Unsupported Media Type error occurs when the request is in a format not supported by the server. 415-当请求采用服务器不支持的格式时,会出现Unsupported Media Type错误。

Add the following http header parameters to your request. 将以下http标头参数添加到您的请求中。

Accept: application/json

Content-type: application/json

X-KIE-ContentType: JSON

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM