Trick To Tranverse multiple relationships in Maximo
Recently i came a scenario where i wanted to traverse multiple object.And i got to know a trick to use "Dot relationship" to traverse multiple object only if there is 1:1 relationship
This can be used in conditions,actions,java/automation script in maximo
Consider that you want to traverse from Workorder to asset and then to location
OOB relationship from WO -> Asset=ASSET
OOB relationship from Asset -> Location=LOCATION
In Condition to check location is operating
:ASSET.LOCATION.STATUS='OPERATING'
In Action to set location description to 'Paris Storeroom' with setvalue action type
Parameter will be :ASSET.LOCATION.DESCRIPTION
Value will "Paris Storeroom"
In Java/Automation script to get value of status through dot relationship
mbo.getString("ASSET.LOCATION.STATUS")
This way we can traverse n number of relationship
Through this we can avoid creating new relationship and use existing relationship to fetch/update the data ✌☺
This can be used in conditions,actions,java/automation script in maximo
Consider that you want to traverse from Workorder to asset and then to location
OOB relationship from WO -> Asset=ASSET
OOB relationship from Asset -> Location=LOCATION
In Condition to check location is operating
:ASSET.LOCATION.STATUS='OPERATING'
In Action to set location description to 'Paris Storeroom' with setvalue action type
Parameter will be :ASSET.LOCATION.DESCRIPTION
Value will "Paris Storeroom"
In Java/Automation script to get value of status through dot relationship
mbo.getString("ASSET.LOCATION.STATUS")
This way we can traverse n number of relationship
Through this we can avoid creating new relationship and use existing relationship to fetch/update the data ✌☺
It was nice to know the dot operator extended feature.chetan can u provide a sample custom class to create a role if assignment scenario's are complex in some workflow?
ReplyDeleteRefer this link
Deletehttp://maximodev.blogspot.in/2012/11/custom-java-class-role.html
Yeah It was really helpfull.
Delete