public Invocation(String name, int[] index, Invocation parent, StatusReport<?, ?> report) { this.name = name; this.index = index; this.parent = parent; this.report = report; invocations = new TreeSet<>(); inputs = new TreeMap<>(); for (Port port : report.getSubject().getInputPorts()) inputs.put(port.getName(), null); outputs = new TreeMap<>(); for (Port port : report.getSubject().getOutputPorts()) outputs.put(port.getName(), null); setStartedDate(new Date()); if (parent != null) parent.getInvocations().add(this); report.addInvocation(this); }
Date startedDate = getDate(json, "startedDate"); if (startedDate != null) invocation.setStartedDate(startedDate); Date completedDate = getDate(json, "completedDate"); if (completedDate != null)
wfReport.setStartedDate(date(2013,1,2,14,50)); Invocation wfInvocation = new Invocation("wf0", null, wfReport); wfInvocation.setStartedDate(date(2013,1,2,14,51)); wfInvocation.setCompletedDate(date(2013,12,30,23,50)); pInvocation.setStartedDate(date(2013,2,2,11,0)); pInvocation.setCompletedDate(date(2013,2,2,13,0)); Invocation aInvocation = new Invocation("act-" + p.getName() + "0", pInvocation, activityReport); aInvocation.setStartedDate(date(2013,2,20,11,30));