Page 1 of 1

Exporter données formulaire workflow

PostPosted:Tue Jul 02, 2019 5:27 pm
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?

Re: Exporter données formulaire workflow

PostPosted:Sun Jul 07, 2019 10:59 am
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

Re: Exporter données formulaire workflow

PostPosted:Mon Jul 08, 2019 12:25 pm
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.

Re: Exporter données formulaire workflow

PostPosted:Sat Jul 13, 2019 9:18 am
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 22840 times
Selección_186.png
Selección_186.png (111.95 KiB) Viewed 22840 times

Re: Exporter données formulaire workflow

PostPosted:Mon Jul 15, 2019 1:17 pm
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.).

Re: Exporter données formulaire workflow

PostPosted:Fri Jul 19, 2019 6:32 pm
by jllort
Should investigate the tables names JBPM_XXXX

Re: Exporter données formulaire workflow

PostPosted:Mon Sep 16, 2019 5:21 pm
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.

Re: Exporter données formulaire workflow

PostPosted:Sat Sep 21, 2019 3:26 pm
by jllort
Hi kouadio

Add another post with you question.