Page 1 of 1

RESTFull or API access to workflows

PostPosted:Tue May 30, 2017 12:51 pm
by Petr_Valenta
Hello

Is there any way to work with workflows and tasks either by RESTFull services or JAVA API?

I have found just web services http://localhost:8080/OpenKM/services/OKMWorkflow but you say, they are deprecated ...

"SOAP API will no longer be supported, we've bit for RESTful, that's actually more complete. We will continue maintaining SOAP for historical reasons, but in the future we will definitely deprecate it and it'll be removed from OpenKM.
We encourage move to RESTful."

Server:
VMWare 12 Pro
Memory 12 GB
1 proc - 4 cores
Centos 7 Server
PostgreSQL 9.2.18
OpenKM 6.3.4

Dev PC:
VMWare 12 Pro
Memory 8 GB
1 proc - 4 cores
Ubuntu 16.04
java 1.6
JBoss Developer Studio 5.0.0.GA - installed according to https://docs.openkm.com/kcenter/view/wf ... io-5x.html (jbdevstudio-product-universal-5.0.0.v20120615-1714-H213-GA.jar + jbpm-installer-3.3.1.GA.jar)

Many thanks in advance for your answer.

Petr Valenta

Re: RESTFull or API access to workflows

PostPosted:Wed May 31, 2017 2:07 pm
by jllort
In professional version we have added REST support for workflow API, but these changes has still not propagated to community version. You can use SOAP meanwhile. The main problem with SOAP happens when you change something from server side, like adding or removing variables from some Object what causes client be non compatible and you must create a new SOAP client. That has been one of the reasons, not only one, why we have decided to do not invest more effors in this direction.

We will not remove from community version, althought we consider is something deprecated, but at the same time consider we will not solve problems on it ( if it happens ).

Re: RESTFull or API access to workflows

PostPosted:Wed Jun 07, 2017 7:59 am
by Petr_Valenta
Hello

1. If I understand it correctly, SOAP is the only way and in case of any trouble, you will not solve it. Right?
2. Is there in Java-SDK any API to work with workflows?
3. Do you plan the near future to offer REST services for workflow in Community?

Best regards

Petr Valenta

Re: RESTFull or API access to workflows

PostPosted:Thu Jun 08, 2017 6:31 am
by jllort
Exists for professional but is still not supported by community. In future we will also add this kind of support, but we have not found still time for it.

Re: RESTFull or API access to workflows

PostPosted:Thu Jun 08, 2017 1:41 pm
by Petr_Valenta
OK - REST is clear now. The last question - Is there in Java-SDK any API to work with workflows?

Re: RESTFull or API access to workflows

PostPosted:Sun Jun 11, 2017 7:46 am
by jllort

Re: RESTFull or API access to workflows

PostPosted:Mon Jul 10, 2017 12:52 pm
by Petr_Valenta
Hello

Thanks a lot.

Petr Valenta

Re: RESTFull or API access to workflows

PostPosted:Fri Jan 04, 2019 4:18 pm
by rdovell
I'd like this feature too, I need to be able to identify users who have open workflows in an automated way. Any idea where I might find that data in a MySQL database? I've been poking around it but I'm not seeing that data.

Re: RESTFull or API access to workflows

PostPosted:Fri Jan 04, 2019 5:27 pm
by rdovell
I solved my problem by watching the database as a file was uploaded. For those interested, you could use this query to find all workflows that have been started but not completed:

SELECT * FROM JBPM_TASKINSTANCE WHERE END_ IS NULL;