Title: calling POST request through jBPM
Tags: jbpm
Question: I am trying to call a POST service through jBPM and getting the following error

```Caused by: java.lang.IllegalArgumentException: Content type may not be null```

my POST request is 

```    public String changeOrderStatus(@RequestBody String order){
        System.out.println("Post");
        return "success";
    }
```

and my jBPM service task has these input/output


What is the reason for the error. When I omit the ```@RequestBody```, the post works. but I need to send data. can someone explain.

Also I do not find any online content for different REST calls for jBPM. I am working on a new project and we are planning to use jBPM. Should I use it or try other BPM opensource engine?

Comment: what is the ContentType?

Comment: I mean what is it's value here?

Comment: you will have the same problem in any other BPM engine, the problem is in your code and in how you are calling your service, please provide more details of your code to solve it

Comment: great to hear that

Comment: ContentType variable is the parameter which is added by default when u add REST service Task in jBPM

Comment: application/json

Comment: You were right, there was a trailing SPACE in Variable name for ContentType.


Here is another answer: We can close this question as owner of this question @Afroz Shaikh answered his question inside comments:
&quot;You were right, there was a trailing SPACE in Variable name for ContentType.&quot;


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 7, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2020:00:03/02/20', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<jbpm>', 'Title': 'calling POST request through jBPM', 'ViewCount': 359, 'id': 60487447, 'user_AboutMe': '<p>In a Start-Up exploring New Frame works and Languages</p>\n', 'user_AccountId': 5531599.0, 'user_DisplayName': 'Afroz Shaikh', 'user_Reputation': 342.0, 'user_Views': 85.0, 'user_id': 4391420.0}}