cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting to Activity Server remotely

xzminx
Champ in-the-making
Champ in-the-making
Hi everyone, I'm just starting with Activiti and I need some help.

I managed to run the server OK and played a little with explorer.

What I'm interested in is this:
- how to connect to server remotely (from Java preferably)
- manage identities
- deploy processes and manage user tasks
- etc..

I wanna do all those from Java code and not from explorer.
Are there web services that do the above mentioned that I can use?

Some example code would be awesome. Thanks!
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Hi,

The Activiti REST API would probably be the best solution if you want to connect remotely.
You can find more info in the user guide and in my Activiti in Action book.

Best regards,

xzminx
Champ in-the-making
Champ in-the-making
Hi Tijs,

thanks for your reply. I did look in the book and the REST API.

But the thing that concerns me is that I can not register new users via REST. Is there a way I can configure ProcessEngine in Java to connect to a remote Activiti server?

Also, is everything persistent? In other words, do I only need to connect to the remote database and change things there to be visible in Activiti Explorer that runs on some remote server?

Basicly, what I want to do is the following.

LOCATION A: Client wants to magage user, processes and stuff on Activiti BPM server located on LOCATION B.

Can this be done?


Regards,
Zoran

xzminx
Champ in-the-making
Champ in-the-making
I checked the REST api once again and I think REST can be used for most of the things I need.

Although, not for managing users and user groups. I noticed that when i create a standalone ProcessEngine from Java and when i create users, they are stored in the DB which is available to the activiti explorer application shipped with Activiti and I can see the newly created users there, which is ok.



Also — I see I can get ProcessEngine via REST, using  "GET /process-engine" from some server B.
Can I use that process engine on client side A?