JBpm processes REST build and deploy through REST API

858 views
Skip to first unread message

Laura delli Paoli

unread,
Sep 5, 2017, 11:08:49 AM9/5/17
to jBPM Usage

Hi,

I'd like to automate my deployment process.

  

I'm using the following rest services in order to undeploy and deploy again my processes:

 

1) Undeploy:

http://hostname:port/jbpm-console/rest/deployment/org.myProject:MyProject:1.0/undeploy

 

2) Compile (Maven):

http://hostname:port/jbpm-console/rest/repositories/MyRepo/projects/MyProject/maven/compile

 

3) Install (Maven):

http://hostname:port/jbpm-console/rest/repositories/MyRepo/projects/MyProject/maven/install


4) Install (Maven):

http://hostname:port/jbpm-console/rest/repositories/MyRepo/projects/MyProject/maven/deploy


5) Deploy:

http://hostname:port/jbpm-console/rest/deployment/org.myProject:MyProject:1.0/deploy?strategy=PER_PROCESS_INSTANCE


 

Steps 1,2,3, and 4 work fine. The latest REST call fails with error code 400 (BAD REQUEST) and the message java.io.EOFException: No content to map to Object due to end of input


Can anyone help me?

Maciej Swiderski

unread,
Sep 5, 2017, 11:58:28 AM9/5/17
to Laura delli Paoli, jBPM Usage
Include in the POST body following content:

<deployment-descriptor/>

Maciej 
--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/1026ba3b-f473-4e2e-b17b-10fe6301106b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nonSonoPaola

unread,
Sep 7, 2017, 10:44:34 AM9/7/17
to Maciej Swiderski, jBPM Usage
Hi,
It didi not work.

Now I have this error:

 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-27) RESTEASY002010: Failed to execute: javax.ws.rs.NotSupportedException: RESTEASY003200: Could not find message body reader for type: class org.kie.services.client.serialization.jaxb.impl.deploy.JaxbDeploymentDescriptor of content type: application/x-www-form-urlencoded


Best,
Laura

2017-09-05 17:58 GMT+02:00 Maciej Swiderski <swidersk...@gmail.com>:
Include in the POST body following content:

<deployment-descriptor/>

Maciej 

Dnia 05.09.2017 o godz. 17:08 Laura delli Paoli <nonson...@gmail.com> napisał(a):

Hi,

I'd like to automate my deployment process.

  

I'm using the following rest services in order to undeploy and deploy again my processes:

 

1) Undeploy:

http://hostname:port/jbpm-console/rest/deployment/org.myProject:MyProject:1.0/undeploy

 

2) Compile (Maven):

http://hostname:port/jbpm-console/rest/repositories/MyRepo/projects/MyProject/maven/compile

 

3) Install (Maven):

http://hostname:port/jbpm-console/rest/repositories/MyRepo/projects/MyProject/maven/install


4) Install (Maven):

http://hostname:port/jbpm-console/rest/repositories/MyRepo/projects/MyProject/maven/deploy


5) Deploy:

http://hostname:port/jbpm-console/rest/deployment/org.myProject:MyProject:1.0/deploy?strategy=PER_PROCESS_INSTANCE


 

Steps 1,2,3, and 4 work fine. The latest REST call fails with error code 400 (BAD REQUEST) and the message java.io.EOFException: No content to map to Object due to end of input


Can anyone help me?

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+unsubscribe@googlegroups.com.

Maciej Swiderski

unread,
Sep 7, 2017, 10:58:12 AM9/7/17
to nonSonoPaola, jBPM Usage
set content type header properly - application/xml

Maciej

nonSonoPaola

unread,
Sep 8, 2017, 3:56:20 AM9/8/17
to Maciej Swiderski, jBPM Usage
it works, Thanks!

Laura

Richard A

unread,
Sep 12, 2017, 7:48:56 AM9/12/17
to jBPM Usage
Maciej
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.

To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/1026ba3b-f473-4e2e-b17b-10fe6301106b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi @Maciej ,
                          I am using Jbpm version 7.1.0, i want to  deploy my excising project after some design changes in the client side  using  iframe url " http://localhost:8080/jbpm-console/?tandalone=&perspective=AuthoringPerspective&header=AppNavBar
But after modifying my design i need to update on my workflow, so i am using in REST api, but what are the link mention in the above its showing 404 only, could you tell me , further i need to add anything for Rest api support in the wildfly server, or kie workbench configuration,
Reply all
Reply to author
Forward
0 new messages