Original Message:
Sent: 06-21-2023 12:22
From: Carlos Mestre
Subject: Conditional Expression on Security Group
Same thing happens. I am able to Complete the WO unless both requirements are met. Your expression makes total sense, so I don't understand why it isn't being applied correctly.
------------------------------
Carlos Mestre
Home Depot
Original Message:
Sent: 06-21-2023 11:21
From: Dragos Chitu
Subject: Conditional Expression on Security Group
Try this:
(:WORKTYPE!='IL') or (:THD_WORKCODE not in ('MECH CONTRACT LABOR','MECH PARTS MGT'))
------------------------------
Dragos Chitu
EL
Original Message:
Sent: 06-21-2023 11:08
From: Carlos Mestre
Subject: Conditional Expression on Security Group
Thanks Dragos. I have tested your expression, but I am still able to Complete the WO unless both requirements are met. I don't know why the "OR" is not being triggered. The system is processing the OR as an AND, and it shouldn't. Has anyone else experienced this with conditional expressions?
------------------------------
Carlos Mestre
Home Depot
Original Message:
Sent: 06-21-2023 11:00
From: Dragos Chitu
Subject: Conditional Expression on Security Group
I think you are missing the colon sign (:) in front of field names.
Something like:
:WORKTYPE!='IL' or :THD_WORKCODE not in ('MECH CONTRACT LABOR','MECH PARTS MGT')
------------------------------
Dragos Chitu
EL
Original Message:
Sent: 06-21-2023 10:19
From: Carlos Mestre
Subject: Conditional Expression on Security Group
Hi,
I have applied a Conditional Expression on a Security Group for the "Complete Work Order" option in the Work Order Tracking application. The purpose of this condition is to restrict users in this Security Group from completing a work order unless one of the following requirements is met:
- The work type is not equal to 'IL'.
- The work code is not equal to 'MECH CONTRACT LABOR' or 'MECH PARTS MGT'.
The condition I have written is as follows: WORKTYPE!='IL' or THD_WORKCODE not in ('MECH CONTRACT LABOR','MECH PARTS MGT').
However, during testing, I have observed that a user in this security group is unable to complete a work order when both requirements are met. I am seeking assistance to understand why the condition is not functioning as expected. I would appreciate any insights or guidance you can provide to help resolve this issue.
#MaximoApplicationSuite
------------------------------
Carlos Mestre
Home Depot
------------------------------