tomolimo / processmaker

GLPI plugin that provides an interface with ProcessMaker (http://www.processmaker.com/)
30 stars 11 forks source link

Question #177

Closed jorge-madrigal closed 7 months ago

jorge-madrigal commented 7 months ago

Hello @tomolimo:

A question, not a issue. Is it possible to open a process with an anonymous user? Or open a process with a default user when the user is not logged into GLPI.

How would it be done?

We use processmaker with formcreator. Formcreator allows public forms, without the user having logged in to GLPI.

For example: a person external to the organization who does not have a GLPI user, who could open a process without logging into GLPI.

Thank you Jorge Madrigal

tomolimo commented 7 months ago

Hello @jorge-madrigal

In fact you always need a user to start a process case, but if you combine this feature (https://github.com/tomolimo/processmaker/wiki/Automatic-start-of-cases) with the use of a dedicated ticket writer then you should be able to start a process at ticket creation even if the requester is anonymous.

You just need to have a dedicated user who's going to be used as ticket writer (this is not he ticket "Requester", but the ticket "By"). This user must be existing in PM server (GLPI<->PM synchro, see automatic cron pmusers), and this user must have the right (depending on profile + entities) to start the needed process, and it must be in the "Assignment Rules" of the process first task.

Thank you, Regards, Tomolimo

tomolimo commented 7 months ago

Hello @jorge-madrigal I made a try with formcreator and a process, but I'm not sure it answers completely your question... Could you post more details? Thank you Regards, Tomolimo

jorge-madrigal commented 7 months ago

Hello @tomolimo:

I use formcreator in the following way. I create a form with a hidden section called processmaker. In the processmaker section I introduce 4 hidden fields; type, itilcategories_id,_from_helpdesk,entities_id. Shown in the image:

image

I have modified formcreator (file userform.html.twig) so that, if it detects a section called processesmaker, the submit button, redirects to processmaker/front/tracking.inyector.php. Then processmaker plugin starts a process.

The above works perfectly.


My idea is to launch a public form without a user having logged in to GLPI. As you say, I want to use a dedicated user who will be used as a ticket writer.

I will try what you say, entering ##TicketProcess: #xxxxxxxxxxxxxxxx## in the description of the template associated with the process of the processmaker plugin.

Imagine that you, from Grenoble, want to use a process of my GLPI.

You don't have a user in my GLPI, but I want you to request, using a formcreator public form, something in my GLPI. I want to accept your request by creating a process with a dedicated user (for example: processmaker.anonymous) of my GLPI with ticket creator permissions.

Thank you Jorge

jorge-madrigal commented 7 months ago

Hello @tomolimo:

It's not as easy as I thought. I will continue testing, if at any time I find a solution, I will publish it in this section.

Thank you Regards,