AnsweredAssumed Answered

how to create deployment with tenantId using cxf ?

Question asked by kafeitu on Jun 14, 2014
Latest reply on Jun 28, 2014 by kafeitu

WebClient client = createClient("repository/deployments");

InputStream resourceAsStream = RestRequestTandem.class.getClassLoader().getResourceAsStream("diagrams/leave.bpmn");
client.type("multipart/form-data");
ContentDisposition cd = new ContentDisposition("form-data;name=bpmn;filename=leave.bpmn;");
Attachment att = new Attachment("leave.bpmn", resourceAsStream, cd);
MultipartBody body = new MultipartBody(att);
Response response = client.post(body);


response:
<javascript>
{
  "id" : "905",
  "name" : "leave.bpmn",
  "deploymentTime" : "2014-06-14T07:30:27.441+0000",
  "category" : null,
  "url" : "http://localhost:8089/activiti-rest/service/repository/deployments/905",
  "tenantId" : ""
}
</javascript>

—-

How to set parameter tenantId using cxf ?

Outcomes