Open rohit-ambre-uno opened 6 years ago
I also wants this function. I hope that you will consider to develop this function into the plugin.
Hi tomolimo, thanks for your considering to add this function into 3.4.0 milestone. Looking forward to use it.
Due to big current workload it will not be for 3.4.0, but for 3.4.x, sorry for that
Hello @rohit-ambre-uno This issue is in progress, and I'd like to have a kind of brainstorming with you about this.
To start: We need to define the way to get back a response from end-user. I propose to use a mechanism like the SMS:
Answer to this SMS with YES if you agree, and NO if you don't agree
So in the use-case of an email it will be something like:
If you approve this request then reply with YES, and if you disagree then reply with NO to this email.
A unique token (like: a2fe782065db6eefaee0d3d37c622e53) that encapsulates mandatory information to manage the answer (case_id, task_id, del_index, and ...) will be present in the email subject to ensure that it will be present in the reply.
So the email subject will look like something below:
[GLPI #0238348] New task - Manager approval [PM a2fe782065db6eefaee0d3d37c622e53]
For me this solution is the only one that is possible to do.
Thank you to give your feedback
Regards, Tomolimo
Of course this will be feasible when bundled with #77 which will permit dedicated notification template to tasks.
Hi, I am the same User who posted this issue but with other github account, I merged my 2 of my accounts.
Thank you for replying @tomolimo As I mentioned in my previous comment that my users wanted to Approve or Reject tasks on mails and this was very crucial for me around the time of feb to integrate this with GLPI and Processmaker. So I started digging to find a way out of this and I did, I don't know how Good is this way is but it did solve my use case Sorry I forgot I have posted about this issue and I didn't share it before
I tried to make very few changes in Processmaker plugin and mainly used GLPI
So now I have emailIDs of users in processmaker-server also.
In Workflow designer if my 3rd task is to be done Over email then I created 2 triggers and set one to run before dynaform and other to run after Dynaform of 2nd task.
As you can see in screenshot above, I created approve string and reject string which has APP_UID, variable to set, value of that variable and variable to check if process has routed and separated them with '=' sign and encoded it in base64.
Now once the second task is completed processmaker server will send an email using the template mentioned in mail send function
\Click to Approve\</a>
\Click to Reject\\
I have also added "" in the start and "" in the end of approval and rejection string, I will explain the use below
Now the assigned user for 3rd task will receive a mail and as he will click on any of the link it will draft new mail and he only has to click on send mail button.
This email will go to emailID which is getting used in GLPI for mail receiving whcih was set in 1st trigger.
Now I made few changes in mailcollector.class.php file to Approve and Reject the task
First I used a regex to filter out Approval mails from other GLPI incoming mails that's where I used above _*String*_
Now I have APP_UID , variable, value of variable so here I used first check whether Process_routed is set to fasle or not if Yes I used sendVariable SOAP api to set variable values and If i get success then I triggered route case SOAP API to route a task.
This is my solution to this problem Please feel free to suggest your thoughts on it
Thank You
Hello @rohit-ambre Thank you for your answer. The process you've developed is more or less what I proposed to do in the use case here: https://github.com/tomolimo/processmaker/issues/82#issuecomment-515382883 The differences are:
Thank very much for the description of your process, it will helped me to define the one for the plugin (and of course I'll try as much as possible to provide something that will give you possibility to migrate to with less effort).
First step for you, would be to migrate the notification template to GLPI using the new Notification feature included into the 3.4.12 release. Let me know if you need more information about it.
Thank you Regards, Tomolimo
Hi,
Thank you for considering my solution.
Hope my explanation helps you If you have anything to discuss please suggest
Thank You
is this been added to GLPI 10?
Hello @kintaro1981 Currently this feature has not been added to the plugin. And currently the plugin is not yet compatible with GLPI 10.0 You'll have to wait a little bit (till automn this year) Thank you, Regards, Tomolimo
Any idea how can we Approve/Reject any task from Email- As Approval tasks will get assign to any head user who will receive email notification about the task but will not login in GLPI to Approve the task instead he/she will send Email with ‘Approve’ or ‘Reject’ written in it, and that task will get completed and process will move onto next step. I know there are possibilities of email forging but consider it is handled. Can we achieve this by setting some value in GLPI by using business rules and then setting GET variables of processmaker plugin to use in PM server. Actually this feature is available in Enterprise version of processmaker. click on this link for some more documentation. I know you are integrating two applications with plugin so it gets more complex. I am also working on this, if I find any way to do this I will post. I am posting it here because your expertise and community can be helpful to me.