• RESTFull or API access to workflows

  • He we will discuss about how to make customization and improvement to the OpenKM source code.
He we will discuss about how to make customization and improvement to the OpenKM source code.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #43929  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
Last edited by Petr_Valenta on Sun Aug 13, 2017 3:52 pm, edited 1 time in total.
 #43946  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 ).
 #44003  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
 #44028  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.
 #47231  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.
 #47232  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;

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.