2026x Server side simulation

Hello,

I was able to create a server side simulation using an instance table. There is one part of the simulation that is not working. I have a script that executes as part of a rollup pattern that performs a simple table lookup that fails.The rollup pattern uses a constraint block that has a Groovy script that performs the lookup. The simulation works just fine when executed within Cameo.

Here is an excerpt of the script:

project = Application.getInstance().getProject()
profileCI = StereotypesHelper.getProfile(project, "Configured Item")       
NGCI_Stereotype = StereotypesHelper.getStereotype(project, "NG Configured Item", profileCI)  
owner=_context_

hw=hwtype
mat=maturity
//hwindex=hwType.findIndexOf{it.contains(hw)}
//matindex=maturityType.findIndexOf{it.contains(mat)}
hwindex=hwType.findIndexOf{it ==hw}
matindex=maturityType.findIndexOf{it ==mat}

contingencyValue=matrix[matindex][hwindex]  
   
return

 

The table is defined in the script.

 

Thank you,

Maria D'Agostino