cancel
Showing results for 
Search instead for 
Did you mean: 

activiti rest client

ismail1
Champ in-the-making
Champ in-the-making
Hi folks,
I deployed activit-rest application and tested it with some rest browser test tools, successfully..
Now, I d like to for example start a process from a java client application.
I'd like to construct json parameter object from java objects instaed of one by one adding with some json libraries….

Is there any client java objects mapping requests in rest part of activiti guide that i can use bundled with activi jars?
Or should i have to create a bean for each request type in activi guide?

Thanks….
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
The Java api does not use json to communicate, that's only the REST api.

In Java, youare basically using beans and services, yes.

ismail1
Champ in-the-making
Champ in-the-making
I think i couldn't express myself well…

I mean, in rest api of activiti  , suppose you had something like this for rest server side:

<code>
        @GET
@Consumes(MediaType.APPLICATION_JSON)
        @Produces 
@Path("/dotasksomething)
public Task dotasksomething(Task task) {
             …
         }
</code>

Now , for client if i would like to call that method using rest and json, i need to set up a Json Object and create beans matching server side Object(Task for this example) getters and setter… so that means creating many Beans acc to api guide rest part…I create json representations using those beans…

Do we have any jar something like activiti-rest-client which consists of those beans like Task, User, Service, Process etc…?

Thanks a lot…


trademak
Star Contributor
Star Contributor
These objects are part of the activiti-rest JAR. We don't have a separate activiti-rest-client JAR for these objects.

Best regards,