Can I return state of item defined in ArrayList?

Hi,
I define an ArrayList with a list of items, I would like to be able to retrieve the items state value so that I can manipulate if required and set it again.
currently the rule below fails and I am simply trying to show that I can grab the item .state value successfully and display it using logInfo.
Once I have this sorted I will populate the ArrayList by placing items in a group and then all items will perform the rule.

// Work with a list of items that require rounding
val round_up = newArrayList(
    "BR1_DMax_Temp",
    "BR1_DMin_Temp",
    "BR1_DTgt_Temp"
)

rule "Floatingpoint Roundup Maintenance"
when
    Item Roundup_Action received command
then 
	logInfo("roundup.rules", "FP DP Maintenance: " + receivedCommand)
    for (String item_id : round_up) {
				logInfo("roundup.rules", "FP DP Maintenance: item = " + item_id)
				logInfo("roundup.rules", "   D Places: " + receivedCommand)
				logInfo("roundup.rules", "   State Value: " + (item_id as DecimalType).state)
				logInfo("roundup.rules", "FP DP Maintenance: item = " + item_id + "value: " + item_id.state)
    }
    Roundup_Action.postUpdate(NULL)
	logInfo("roundup.rules", "FP DP Maintenance exit")
end

Thanks

Paul

I would suggest not using an array,
Define you groups and work with these

Thank you after i posted , i saw the Design pattern for using groups for consolidation and that put the idea in my head which I have now got eary beta running.

So thank you for adding your feedback in support of using groups and forEach loop rather than list arrays

Thanks

Paul