Examples of VariableInstanceLog


Examples of org.jbpm.process.audit.VariableInstanceLog

        }
       
        Map<String, VariableInstanceLog> varLogMap = new HashMap<String, VariableInstanceLog>();
        for( VariableInstanceLog varLog: varInstLogList ) {
            String varId = varLog.getVariableId();
            VariableInstanceLog prevVarLog = varLogMap.put(varId, varLog);
            if( prevVarLog != null ) {
                if( prevVarLog.getDate().after(varLog.getDate()) ) {
                  varLogMap.put(varId, prevVarLog);
                }
            }
        }
       
View Full Code Here

Examples of org.jbpm.process.audit.VariableInstanceLog

        AuditLogService logService = new JPAAuditLogService(getEmf());
        List<VariableInstanceLog> vils = logService.findVariableInstances(procInstId);
        assertTrue( "No variable instance logs found", vils != null && ! vils.isEmpty() );
        assertTrue( "Too few variable instance logs found: " + vils.size(), vils.size() >= 3 );
       
        VariableInstanceLog lastVil = null;
        for( VariableInstanceLog vil : vils ) {
            if( ! vil.getVariableId().equals("inputStr") ) {
               continue;
            }
            if( lastVil == null ) {
                lastVil = vil;
            }
            if( lastVil.getId() < vil.getId() ) {
                lastVil = vil;
            }
        }
        assertTrue( lastVil.getVariableId() + ": " + lastVil.getValue(),
                lastVil.getValue().contains("check") || lastVil.getVariableId().equals("otherStr") );
    }
View Full Code Here

Examples of org.kie.api.runtime.manager.audit.VariableInstanceLog

        xmlLog.setCommandName("test-cmd");
        xmlLog.setIndex(2);
        JaxbVariableInstanceLog newXmlLog = testRoundTrip(xmlLog);
        ComparePair.compareObjectsViaFields(xmlLog, newXmlLog, "id");
       
        VariableInstanceLog newLog = newXmlLog.getResult();
        ComparePair.compareOrig((VariableInstanceLog) origLog, newLog, VariableInstanceLog.class);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.