Code example for MutablePropertyValues

Methods: addPropertyValue

0
        assertEquals("15/02/2012", dateFormat.format(info.getAttachmentDate()));
    } 
 
    @Test
    public void testBindMapNestedList() throws Exception {
        MutablePropertyValues values = new MutablePropertyValues();
        values.addPropertyValue("resultsMap['USERACTION']", "RELEASE");
        values.addPropertyValue("resultsMap['ATTACHMENTS'][0].attachSequence", "1");
        values.addPropertyValue("resultsMap['ATTACHMENTS'][0].attachStatus", "var_status");
        values.addPropertyValue("resultsMap['ATTACHMENTS'][0].attachmentID", "var_attachmentID");
        values.addPropertyValue("resultsMap['ATTACHMENTS'][0].attachmentDate", "15/02/2012");
 
        org.jboss.processFlow.console.binding.spring.InternalMapBean target = new org.jboss.processFlow.console.binding.spring.InternalMapBean();
        HashMap<String, Object> sourceMap = new HashMap<String, Object>();
        sourceMap.put("MAINCASEID", null);
        sourceMap.put("USERACTION", "INIT");
        sourceMap.put("ATTACHMENTS",
                ListUtils.lazyList(new ArrayList(), FactoryUtils.instantiateFactory(AttachmentInfo.class)));
        target.setResultsMap(sourceMap);
 
Connect your IDE to all the code out there  Get Codota for Java