All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openl.codegen.template.IRulesRuntimeContextUtils-properties.vm Maven / Gradle / Ivy

There is a newer version: 5.19.9
Show newest version
#foreach( $contextPropertyDefinition in $contextPropertyDefinitions )
        Object $contextPropertyDefinition.Name = execution.getVariable("$contextPropertyDefinition.Name");
        if ($contextPropertyDefinition.Name != null){
            if ($contextPropertyDefinition.Name instanceof $tool.getTypeName($contextPropertyDefinition.Type.InstanceClass)) {
                defaultRulesRuntimeContext.setValue("$contextPropertyDefinition.Name", $contextPropertyDefinition.Name);
            }else{
                IOpenCast opencast = ObjectToDataOpenCastConvertor.getConvertor($tool.getTypeName($contextPropertyDefinition.Type.InstanceClass) .class, ($contextPropertyDefinition.Name).getClass());
                if (opencast != null){
                    Object o = opencast.convert($contextPropertyDefinition.Name);
                    defaultRulesRuntimeContext.setValue("$contextPropertyDefinition.Name", o);
                }
            }
        }
#end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy