There is a node in our workorder WFs which is WCOMP and will not resume WF until the status is changed to COMP - the status at these stage is INPRG (this when when the workorders are reviewed after the work is completed. The trouble we have is the option of CLOSED is available and sometimes people select this by mistake.
I thought the following would work for me but when testing this in my DEV system the option of CLOSED still show up.
Has anyone any ideas on what I am missing?
- Using Conditional Expression Manager (Go To -> Administrations -> Conditional Expression Manager) and set the following :-
Condition: WOCLOSE
Description: Hide option to change a WO status to CLOSED if in workflow.
Type: EXPRESSION
Always Evaluate: Y
Expression: istask = 0 and exists (select 1 from wfinstance where active=1 and ownertable ='workorder' and ownerid = workorderid)
- Go To -> System Configuration -> Platform Configuration -> Domains
Search for 'WOSTATUS'
Select the 'CLOSED' Internal Value and set the condition to WOCLOSE and set the Object Name to WORKORDER.
------------------------------
Stefano Giorgi
------------------------------
#Maximo#AssetandFacilitiesManagement