tomolimo / processmaker

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

GLPI PM wrong decisions #99

Closed momohamed770 closed 5 years ago

momohamed770 commented 5 years ago

HI, I'm facing some strange issues related to gateways and conditions when running the case from GLPI is not doing the same when running the case from PM. I'm sure that PM is working normal as I've other GLPI /PM staging servers and tested with the same workflow and works fine.

Have you faced issue like this when using gateways & conditions?

tomolimo commented 5 years ago

Hello, Could you give more details? I'm aware an issue, but not sure that matches yours. Thank you, Regards, Tomolimo

momohamed770 commented 5 years ago

I've a task with a dynaform as the example below (task 1) the form contain a radio button with a question yes/no I've an exclusive gateway that should check if the value of radio button and take a decision to go to task 2 or 3 @@var == '1' The case is running normally taking the right decision if run from PM and give a wrong decision when run from GLPI

Also I've GLPI/PM staging servers and it is working fine.

image

tomolimo commented 5 years ago

Hello @momohamed770 I remember that the troubles was when there were two gateways, one after another one. This isn't the case here... So let's take a look at the conditions for the gateway itself. Could you export your process? And send it to my professional email? Thank you Regards, Tommolimo

momohamed770 commented 5 years ago

I've also other case with two gateways one after another can you share this issue.

tomolimo commented 5 years ago

Hello @momohamed770,

To give more details about the issue, see: https://github.com/tomolimo/processmaker/issues/72#issuecomment-458180907 where there is a picture of a process which is running correctly via GLPI and PM, but if the 'Review of evaluations' task is not present (i.e. the gateways are one after another) then routing via GLPI is not correct, even if the routing via PM is correct. To explain the apparent root cause: GLPI is using the web service API to request PM to do the routing, and PM is not internally using the same functions, but it uses another set of functions.

I'm going to search for a clean solution:

Regards, Tomolimo

momohamed770 commented 5 years ago

Thanks, is there any recommendations from GLPI side to use with gateways, conditions and triggers?

momohamed770 commented 5 years ago

Issue resolved finally after removing the plugin, DB tables and redeploying again. Also i've started working differently with gateways to eliminate having 2 gateways after each other.