Formulas allow you to utilize existing conditions defined in Conditional Expression Manager. These have to return a true/false and are often SQL conditions. For example, if you go to conditional expression manager the logic for the condition ASSETMETER is "exists (select 1 from assetmeter where assetnum = :assetnum and orgid =:orgid)" This will use the data on the record you're starting from (IE ASSET or WORKORDER) and look to see if there is a record in the assetmeter table and return true/false back to the formula by executing a SQL query. Then your logic in the IF statement in the formula would take effect.
Conditional expressions can also be written in java or an automation script (by referencing a special java class that invokes the automation script custom condition launch point). In those cases they would not be restricted to SQL expressions. I would imagine you could invoke those too with formulas, though I haven't tried.
To me, this feature is about supporting existing logic you may have already defined in conditional expression manager while also enabling support for some conditions that the formula framework didn't support today (such as comparing ALN values).
------------------------------
Steven Shull
------------------------------
Original Message:
Sent: Mon August 16, 2021 09:13 PM
From: User1971
Subject: Formulas: Conditions can be any valid condition that Maximo allows, including SQL expressions
The original Maximo formulas PDF says:
"...conditions can be any valid condition that Maximo allows, including SQL expressions."
Would someone mind explaining what that means? I don't think I understand how to use SQL expressions in formula conditions.
Thanks.
#Maximo
#AssetandFacilitiesManagement