Java procedure call in a workflow

OpenKM a de nombreuses fonctionnalités interessantes, mais demande un minimum de configuration pour être pleinement exploité.

Moderator: dedisoft

Forum rules
Avant de poser une question, merci de regarder la documentation du wiki ou d'utiliser la fonction recherche du forum. Et rappelez vous que nous n'avons ni boule de cristal ni possibilité de lire dans les pensées, aussi pensez à spécifier quelle version d'OpenKM vous utilisez ainsi que la version du navigateur web et du système d'exploitation. Pour de plus amples informations lisez Comment reporter un bug efficacement (anglais).
Post Reply
kouadio
Senior Boarder
Senior Boarder
Posts: 68
Joined: Wed Jan 09, 2019 9:26 am

Java procedure call in a workflow

Post by kouadio »

Hello,
After several attempts, I do not know where to turn, I come back to you. In fact, being really new, I can't run a single java class API.
For example, following this tutorial (https://docs.openkm.com/kcenter/view/wf ... -node.html), here is the error I get in my catalina.log file:
org.jbpm.instanciation.Delegation.instanciate couldnt't instanciate class 'com.openkm.sample.ValueAction'. While the file ValueAction.java does exist in the "/src/main/java" directory

jllort
Moderator
Moderator
Posts: 11151
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Java procedure call in a workflow

Post by jllort »

Did you added the Action class in your par file ? you can check unzip the par file ( really is a zip )

kouadio
Senior Boarder
Senior Boarder
Posts: 68
Joined: Wed Jan 09, 2019 9:26 am

Re: Java procedure call in a workflow

Post by kouadio »

Indeed, I did not add the path of the Action class to the project. But when I add it, I get the following error when creating the PAR file: There was a problem creating the process archive to deploy.

I add the java class according to the following attachment
Attachments
Class java.PNG
PAR File.PNG

kouadio
Senior Boarder
Senior Boarder
Posts: 68
Joined: Wed Jan 09, 2019 9:26 am

Re: Java procedure call in a workflow

Post by kouadio »

When I restart my virtual development machine and also restart Eclipse, I get the following error: "Initializing.java Tooling" has encountered a problem. A internal error occurred during "Initializing.java Tooling".
Attachments
Error.PNG
Error.PNG (15.57 KiB) Viewed 12810 times

jllort
Moderator
Moderator
Posts: 11151
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Java procedure call in a workflow

Post by jllort »

Sometimes eclipse turns crazy, I suggest periodical backups of the projects and in case you get disconfigured or errors like it you can go back. I suggest start a empty project and repeat the process again.

Post Reply