Problems with process instantiation via Rest API (case with variable)

Considering a process that has a constraint “processo”, when POSTing http://localhost:8080/bonita/API/bpm/case/ with payload:

{
    "processDefinitionId": "5587267619558473643",
    "variables":[  
      {  
         "name":"processo",
         "value":"PI0100001"
      }
   ]
}

I get an error 500 with:

{
    "exception": "class org.bonitasoft.web.toolkit.client.common.exception.api.APIException",
    "message": "Error occured when starting process 5587267619558473643",
    "stacktrace": "[org.bonitasoft.web.rest.server.engineclient.CaseEngineClient.start(CaseEngineClient.java:81), org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.startCaseWithVariables(CaseSarter.java:89), org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.start(CaseSarter.java:65), org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseDatastore.add(CaseDatastore.java:166), org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:53), org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:44), org.bonitasoft.web.rest.server.framework.API.runAdd(API.java:156), org.bonitasoft.web.rest.server.framework.APIServletCall.doPost(APIServletCall.java:213), org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPost(ToolkitHttpServlet.java:188), javax.servlet.http.HttpServlet.service(HttpServlet.java:650), org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:75), javax.servlet.http.HttpServlet.service(HttpServlet.java:731), org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:226), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176), org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145), org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92), org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747), org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485), org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410), org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337), org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213), org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171), org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145), org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92), org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208), org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220), org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122), org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505), org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169), org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103), org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77), org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116), org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423), org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079), org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625), org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316), java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source), java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source), org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61), java.lang.Thread.run(Unknown Source)]",
    "cause": {
        "exception": "class org.bonitasoft.engine.bpm.process.ProcessExecutionException",
        "message": "USERNAME=walter.bates | org.bonitasoft.engine.exception.RetrieveException: org.bonitasoft.engine.core.process.instance.api.exceptions.SContractViolationException: Error while validating expected inputs: [Expected input [processo] is missing]",
        "stacktrace": [
            "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3097)",
            "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3038)",
            "sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
            "sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)",
            "sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)",
            "java.lang.reflect.Method.invoke(Unknown Source)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:462)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl$2.call(ServerAPIImpl.java:431)",
            "org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:312)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:438)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:272)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:124)",
            "org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86)",
            "com.sun.proxy.$Proxy111.startProcess(Unknown Source)",
            "org.bonitasoft.web.rest.server.engineclient.CaseEngineClient.start(CaseEngineClient.java:73)",
            "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.startCaseWithVariables(CaseSarter.java:89)",
            "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.start(CaseSarter.java:65)",
            "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseDatastore.add(CaseDatastore.java:166)",
            "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:53)",
            "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:44)",
            "org.bonitasoft.web.rest.server.framework.API.runAdd(API.java:156)",
            "org.bonitasoft.web.rest.server.framework.APIServletCall.doPost(APIServletCall.java:213)",
            "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPost(ToolkitHttpServlet.java:188)",
            "javax.servlet.http.HttpServlet.service(HttpServlet.java:650)",
            "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:75)",
            "javax.servlet.http.HttpServlet.service(HttpServlet.java:731)",
            "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:226)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)",
            "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
            "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
            "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)",
            "org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)",
            "org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)",
            "org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)",
            "org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)",
            "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)",
            "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
            "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
            "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)",
            "org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)",
            "org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)",
            "org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)",
            "org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)",
            "org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)",
            "org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)",
            "org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)",
            "org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)",
            "org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)",
            "org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)",
            "java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)",
            "java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)",
            "org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)",
            "java.lang.Thread.run(Unknown Source)"
        ],
        "cause": {
            "exception": "class org.bonitasoft.engine.exception.RetrieveException",
            "message": "org.bonitasoft.engine.core.process.instance.api.exceptions.SContractViolationException: Error while validating expected inputs: [Expected input [processo] is missing]",
            "stacktrace": [
                "org.bonitasoft.engine.api.impl.ProcessStarter.start(ProcessStarter.java:106)",
                "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3106)",
                "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3095)",
                "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3038)",
                "sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
                "sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)",
                "sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)",
                "java.lang.reflect.Method.invoke(Unknown Source)",
                "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:462)",
                "org.bonitasoft.engine.api.impl.ServerAPIImpl$2.call(ServerAPIImpl.java:431)",
                "org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:312)",
                "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:438)",
                "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:272)",
                "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:124)",
                "org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86)",
                "com.sun.proxy.$Proxy111.startProcess(Unknown Source)",
                "org.bonitasoft.web.rest.server.engineclient.CaseEngineClient.start(CaseEngineClient.java:73)",
                "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.startCaseWithVariables(CaseSarter.java:89)",
                "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.start(CaseSarter.java:65)",
                "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseDatastore.add(CaseDatastore.java:166)",
                "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:53)",
                "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:44)",
                "org.bonitasoft.web.rest.server.framework.API.runAdd(API.java:156)",
                "org.bonitasoft.web.rest.server.framework.APIServletCall.doPost(APIServletCall.java:213)",
                "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPost(ToolkitHttpServlet.java:188)",
                "javax.servlet.http.HttpServlet.service(HttpServlet.java:650)",
                "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:75)",
                "javax.servlet.http.HttpServlet.service(HttpServlet.java:731)",
                "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:226)",
                "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)",
                "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                "org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)",
                "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)",
                "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
                "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
                "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
                "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
                "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                "org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)",
                "org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)",
                "org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)",
                "org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)",
                "org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)",
                "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)",
                "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
                "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
                "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
                "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
                "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
                "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                "org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)",
                "org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)",
                "org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)",
                "org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)",
                "org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)",
                "org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)",
                "org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)",
                "org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)",
                "org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)",
                "org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)",
                "org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)",
                "java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)",
                "java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)",
                "org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)",
                "java.lang.Thread.run(Unknown Source)"
            ],
            "cause": {
                "exception": "class org.bonitasoft.engine.core.process.instance.api.exceptions.SContractViolationException",
                "message": "Error while validating expected inputs: [Expected input [processo] is missing]",
                "stacktrace": [
                    "org.bonitasoft.engine.bpm.contract.validation.ContractStructureValidator.validate(ContractStructureValidator.java:45)",
                    "org.bonitasoft.engine.bpm.contract.validation.ContractValidator.validate(ContractValidator.java:40)",
                    "org.bonitasoft.engine.execution.ProcessExecutorImpl.validateContractInputs(ProcessExecutorImpl.java:819)",
                    "org.bonitasoft.engine.execution.ProcessExecutorImpl.start(ProcessExecutorImpl.java:775)",
                    "org.bonitasoft.engine.execution.ProcessExecutorImpl.start(ProcessExecutorImpl.java:741)",
                    "org.bonitasoft.engine.api.impl.ProcessStarter.start(ProcessStarter.java:129)",
                    "org.bonitasoft.engine.api.impl.ProcessStarter.start(ProcessStarter.java:102)",
                    "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3106)",
                    "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3095)",
                    "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3038)",
                    "sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
                    "sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)",
                    "sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)",
                    "java.lang.reflect.Method.invoke(Unknown Source)",
                    "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:462)",
                    "org.bonitasoft.engine.api.impl.ServerAPIImpl$2.call(ServerAPIImpl.java:431)",
                    "org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:312)",
                    "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:438)",
                    "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:272)",
                    "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:124)",
                    "org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86)",
                    "com.sun.proxy.$Proxy111.startProcess(Unknown Source)",
                    "org.bonitasoft.web.rest.server.engineclient.CaseEngineClient.start(CaseEngineClient.java:73)",
                    "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.startCaseWithVariables(CaseSarter.java:89)",
                    "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.start(CaseSarter.java:65)",
                    "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseDatastore.add(CaseDatastore.java:166)",
                    "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:53)",
                    "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:44)",
                    "org.bonitasoft.web.rest.server.framework.API.runAdd(API.java:156)",
                    "org.bonitasoft.web.rest.server.framework.APIServletCall.doPost(APIServletCall.java:213)",
                    "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPost(ToolkitHttpServlet.java:188)",
                    "javax.servlet.http.HttpServlet.service(HttpServlet.java:650)",
                    "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:75)",
                    "javax.servlet.http.HttpServlet.service(HttpServlet.java:731)",
                    "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:226)",
                    "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)",
                    "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                    "org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)",
                    "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                    "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                    "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)",
                    "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
                    "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
                    "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
                    "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                    "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                    "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
                    "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                    "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                    "org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)",
                    "org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)",
                    "org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)",
                    "org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)",
                    "org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)",
                    "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)",
                    "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
                    "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
                    "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
                    "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                    "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                    "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
                    "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                    "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                    "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
                    "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
                    "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
                    "org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)",
                    "org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)",
                    "org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)",
                    "org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)",
                    "org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)",
                    "org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)",
                    "org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)",
                    "org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)",
                    "org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)",
                    "org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)",
                    "org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)",
                    "java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)",
                    "java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)",
                    "org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)",
                    "java.lang.Thread.run(Unknown Source)"
                ]
            }
        }
    },
    "api": "bpm",
    "resource": "case"
}

And when I try the same post with payload:

{
    "processDefinitionId": "5587267619558473643",
    "variables":[  
      {  
         "name":"processo",
         "value":"PI0100001"
      }
   ]
}

I get the error 500:

{
    "exception": "class org.bonitasoft.engine.exception.RetrieveException",
    "message": "USERNAME=walter.bates | org.bonitasoft.engine.core.process.instance.api.exceptions.SContractViolationException: Error while validating expected inputs: [Expected input [processo] is missing]",
    "stacktrace": [
        "org.bonitasoft.engine.api.impl.ProcessStarter.start(ProcessStarter.java:106)",
        "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3106)",
        "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:955)",
        "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:946)",
        "sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
        "sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)",
        "sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)",
        "java.lang.reflect.Method.invoke(Unknown Source)",
        "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:462)",
        "org.bonitasoft.engine.api.impl.ServerAPIImpl$2.call(ServerAPIImpl.java:431)",
        "org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:312)",
        "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:438)",
        "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:272)",
        "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:124)",
        "org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86)",
        "com.sun.proxy.$Proxy111.startProcess(Unknown Source)",
        "org.bonitasoft.web.rest.server.engineclient.CaseEngineClient.start(CaseEngineClient.java:71)",
        "org.bonitasoft.web.rest.server.engineclient.CaseEngineClient.start(CaseEngineClient.java:58)",
        "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.startCase(CaseSarter.java:94)",
        "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.start(CaseSarter.java:63)",
        "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseDatastore.add(CaseDatastore.java:166)",
        "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:53)",
        "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:44)",
        "org.bonitasoft.web.rest.server.framework.API.runAdd(API.java:156)",
        "org.bonitasoft.web.rest.server.framework.APIServletCall.doPost(APIServletCall.java:213)",
        "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPost(ToolkitHttpServlet.java:188)",
        "javax.servlet.http.HttpServlet.service(HttpServlet.java:650)",
        "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:75)",
        "javax.servlet.http.HttpServlet.service(HttpServlet.java:731)",
        "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:226)",
        "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)",
        "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
        "org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)",
        "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
        "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
        "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)",
        "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
        "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
        "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
        "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
        "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
        "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
        "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
        "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
        "org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)",
        "org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)",
        "org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)",
        "org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)",
        "org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)",
        "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)",
        "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
        "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
        "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
        "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
        "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
        "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
        "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
        "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
        "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
        "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
        "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
        "org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)",
        "org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)",
        "org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)",
        "org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)",
        "org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)",
        "org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)",
        "org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)",
        "org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)",
        "org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)",
        "org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)",
        "org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)",
        "java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)",
        "java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)",
        "org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)",
        "java.lang.Thread.run(Unknown Source)"
    ],
    "cause": {
        "exception": "class org.bonitasoft.engine.core.process.instance.api.exceptions.SContractViolationException",
        "message": "Error while validating expected inputs: [Expected input [processo] is missing]",
        "stacktrace": [
            "org.bonitasoft.engine.bpm.contract.validation.ContractStructureValidator.validate(ContractStructureValidator.java:45)",
            "org.bonitasoft.engine.bpm.contract.validation.ContractValidator.validate(ContractValidator.java:40)",
            "org.bonitasoft.engine.execution.ProcessExecutorImpl.validateContractInputs(ProcessExecutorImpl.java:819)",
            "org.bonitasoft.engine.execution.ProcessExecutorImpl.start(ProcessExecutorImpl.java:775)",
            "org.bonitasoft.engine.execution.ProcessExecutorImpl.start(ProcessExecutorImpl.java:741)",
            "org.bonitasoft.engine.api.impl.ProcessStarter.start(ProcessStarter.java:129)",
            "org.bonitasoft.engine.api.impl.ProcessStarter.start(ProcessStarter.java:102)",
            "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:3106)",
            "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:955)",
            "org.bonitasoft.engine.api.impl.ProcessAPIImpl.startProcess(ProcessAPIImpl.java:946)",
            "sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
            "sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)",
            "sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)",
            "java.lang.reflect.Method.invoke(Unknown Source)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:462)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl$2.call(ServerAPIImpl.java:431)",
            "org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:312)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIInTransaction(ServerAPIImpl.java:438)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:272)",
            "org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:124)",
            "org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86)",
            "com.sun.proxy.$Proxy111.startProcess(Unknown Source)",
            "org.bonitasoft.web.rest.server.engineclient.CaseEngineClient.start(CaseEngineClient.java:71)",
            "org.bonitasoft.web.rest.server.engineclient.CaseEngineClient.start(CaseEngineClient.java:58)",
            "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.startCase(CaseSarter.java:94)",
            "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseSarter.start(CaseSarter.java:63)",
            "org.bonitasoft.web.rest.server.datastore.bpm.cases.CaseDatastore.add(CaseDatastore.java:166)",
            "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:53)",
            "org.bonitasoft.web.rest.server.api.bpm.cases.APICase.add(APICase.java:44)",
            "org.bonitasoft.web.rest.server.framework.API.runAdd(API.java:156)",
            "org.bonitasoft.web.rest.server.framework.APIServletCall.doPost(APIServletCall.java:213)",
            "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.doPost(ToolkitHttpServlet.java:188)",
            "javax.servlet.http.HttpServlet.service(HttpServlet.java:650)",
            "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:75)",
            "javax.servlet.http.HttpServlet.service(HttpServlet.java:731)",
            "org.bonitasoft.web.toolkit.server.servlet.ToolkitHttpServlet.service(ToolkitHttpServlet.java:226)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)",
            "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
            "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
            "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)",
            "org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)",
            "org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)",
            "org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)",
            "org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)",
            "org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)",
            "org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)",
            "org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)",
            "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.bonitasoft.console.common.server.login.filter.AbstractAuthorizationFilter.doFilter(AbstractAuthorizationFilter.java:60)",
            "org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)",
            "org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)",
            "org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)",
            "org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)",
            "org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)",
            "org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)",
            "org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)",
            "org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)",
            "org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)",
            "org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)",
            "org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)",
            "org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)",
            "org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)",
            "java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)",
            "java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)",
            "org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)",
            "java.lang.Thread.run(Unknown Source)"
        ]
    }
}

Hi,

You are trying to start a process but you are violating the contract defined for your instantiation form. On the logs I see:

org.bonitasoft.engine.core.process.instance.api.exceptions.SContractViolationException: Error while validating expected inputs: [Expected input [processo] is missing

That means that the bonita engine expects an input with name “processo”.

You have to use other API entry for instantiate your process, use this:

/bonita/API/bpm/process/5587267619558473643/instantiation

And for the payload use this:

{ "processo" : "PI0100001" }

For more information read here on the section “Start a process using an instantiation contract”.

I hope it helps, bye.

Excellent. It worked. Thanks.