-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Approval of processmaker task over email in GLPI #82
Comments
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, |
Hello @rohit-ambre-uno To start:
So in the use-case of an email it will be something like:
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:
For me this solution is the only one that is possible to do. Thank you to give your feedback Regards, |
Of course this will be feasible when bundled with #77 which will permit dedicated notification template to tasks. |
Hi, Thank you for replying @tomolimo I tried to make very few changes in Processmaker plugin and mainly used GLPI Below I will explain How I solved it.
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
<a href="mailto:@=mailRec?subject=@=mailsubject&body=Approved%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0APlease%20Do%20not%20clear%20following%20line%0D%0A_%2A@=approval%2A_" target="blank">Click to Approve</a> 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 This is my solution to this problem Thank You |
Hello @rohit-ambre
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 |
Hi, Thank you for considering my solution. Replies to your points:
Hope my explanation helps you Thank You |
is this been added to GLPI 10? |
Hello @kintaro1981 |
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.
The text was updated successfully, but these errors were encountered: