Package org.jbpm.process.audit

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


        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

TOP

Related Classes of org.jbpm.process.audit.VariableInstanceLog

Copyright © 2018 www.massapicom. 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.