- * Each chronic entry for a workitme consists of the following data items:
+ * Each chronic entry for a workitem consists of the following data items:
*
*
* - type : date|history|file|version|
@@ -80,20 +79,17 @@
@ConversationScoped
public class ChronicleController implements Serializable {
- /**
- *
- */
private static final long serialVersionUID = 1L;
- @Inject
- protected WorkflowController workflowController;
private static Logger logger = Logger.getLogger(ChronicleController.class.getName());
List originChronicleList;
List filteredChronicleList;
String filter = null;
-
Map> yearsMonths;
+ @Inject
+ protected WorkflowController workflowController;
+
@Inject
protected DMSController dmsController;
@@ -108,8 +104,11 @@ public class ChronicleController implements Serializable {
private DateFormat dateFormat = null;
+ /**
+ * This helper method is called during the WorkflowEvent.WORKITEM_CHANGED to
+ * update the chronicle view for the current workitem.
+ */
@SuppressWarnings("unchecked")
- @PostConstruct
public void init() {
long l = System.currentTimeMillis();
originChronicleList = new ArrayList();
@@ -132,17 +131,14 @@ public void init() {
// do we have real history entries?
if (history.size() > 0 && history.get(0) instanceof List) {
for (List