activityReport.setCreatedDate(date(2013,2,20,0,0)); activityReport.setStartedDate(date(2013,2,20,11,00)); activityReport.setCancelledDate(date(2013,2,21,11,30)); Invocation aInvocation = new Invocation("act-" + p.getName() + "0", pInvocation, activityReport);