• Exporter données formulaire workflow

  • OpenKM a de nombreuses fonctionnalités interessantes, mais demande un minimum de configuration pour être pleinement exploité.
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).
 #48326  by kouadio
 
Bonjour,

J'ai créé un workflow avec Eclipse/JBPM qui fonctionne bien.
J'ai créé un formulaire qui est renseigné et validé dans le processus du workflow (voir fichier joint).
Je voudrais, à la fin du workflow, exporter les données du formulaire vers un fichier (word, pdf, etc.).
Est-ce possible?
Attachments
Workflow.PNG
Workflow.PNG (29.85 KiB) Viewed 22972 times
 #48346  by jllort
 
Yes in the last transaction you should execute a JAVA Class for doing it. Might be the easiest is creating a temporary HTML file ( build the contents there ) and uploading at the end.

In this section of the documentation, https://docs.openkm.com/kcenter/view/wf ... -node.html is shown a class named ShowMessageAction, you should implement something similar. Link a class with a transaction and build your own code into for creating and uploading the file.

here you have a sample about how to use variables ( forms ) stored into the context of the instance ( might be you have values what you are interested to using for building the HTLM file )
https://docs.openkm.com/kcenter/view/wf ... ample.html
 #48354  by kouadio
 
Bien reçu mais je pense que cela ne résout pas mon problème ou c'est moi qui exprime mal ma préoccupation.
En fait, je veux concerner les données du formulaire et les consulter en cas de besoin. L'objectif, c'est d'avoir une preuve au cas où un utilisateur nie avoir validé ou renseigné un formulaire.
 #48413  by jllort
 
Take a look at administration > workflow > from there you can take a look at all the actions and steps done by each user. There's a search icon. If the information shown there is not enough then might be used workflow log or similar solution.
Selección_185.png
Selección_185.png (114.38 KiB) Viewed 22848 times
Selección_186.png
Selección_186.png (111.95 KiB) Viewed 22848 times
 #48419  by kouadio
 
Merci pour l'information qui m'est très utile. J'ai le récapitulatif de toutes les informations dont j'ai besoin.
Mais pour une question d'ergonomie, je voudrais mettre ces informations dans un fichier tel que Microsoft Word afin d'avoir un tableau ou un fichier plus facile à lire. J'ai donc créé un fichier LibreOffice qui est connecté à ma base de données Mysql de OpenKM via ODBC. Cela foncntionne bien. Mon soucis, c'est que je ne sais pas quelle table et/ou champ interroger pour récupérer les données dont j'ai besoin (Nom utilisateur, date, les informations saisies du formulaire du workflow, etc.).
 #48880  by kouadio
 
You have already done a lot but still more information because I do not find myself at all.
I have a form like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 2.4//EN"
                                "http://www.openkm.com/dtd/workflow-forms-2.4.dtd">
<workflow-forms>
  <workflow-form task="avis favorable">
    <input label="Date" name="date" data="date" readonly="true" />
    <input label="Direction" name="direction" data="direction" readonly="true" />
    <input label="Quantité" name="quantite" data="quantite" readonly="true" />
    <textarea label="Observation" name="observation" data="observation" readonly="true" />
    <input label="Avis responsable supérieur" name="responsable" data="responsable" readonly="true" />
    <input label="Avis controle de gestion" name="cgai" data="cgai" readonly="true" />
    <input label="Avis DAF" name="daf" data="daf" readonly="true" />
    <button name="supprimer" label="supprimer" transition="supprimer"/>
  </workflow-form>  
</workflow-forms>
And I would like to find in the database information filled in the different fields of my form.
Thank you for everything.

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.