public List<ActionItem> getActionItems() { if (this.simulatedActionItems == null || this.simulatedActionItems.isEmpty()) { return (List<ActionItem>) KEWServiceLocator.getActionListService().findByActionRequestId(actionRequestId); } else { return this.simulatedActionItems; } }
private boolean notifyExternalActionList(String actionType, String actionItemId) { LOG.info("actionType: " + actionType + " actionItemId: " + actionItemId); ActionItem actionItem = null; // Get the action item unless it was deleted if (actionType.toString().equalsIgnoreCase(KewApiConstants.ACTION_ITEM_INSERTED) || (actionType.toString().equalsIgnoreCase(KewApiConstants.ACTION_ITEM_UPDATED))) { actionItem = KEWServiceLocator.getActionListService().findByActionItemId(actionItemId); } if (actionType.toString().equalsIgnoreCase(KewApiConstants.ACTION_ITEM_INSERTED)) { LOG.info("Code to INSERT into external action list goes here"); } else if (actionType.toString().equalsIgnoreCase(KewApiConstants.ACTION_ITEM_UPDATED)) { LOG.info("Code to UPDATE external action list goes here"); } else if (actionType.toString().equalsIgnoreCase(KewApiConstants.ACTION_ITEM_DELETED)) { LOG.info("Code to DELETE from external action list goes here"); } // Currently always return true to indicate successful processing. // This may change once the above code is implemented. return true; }
public ActionListService getActionListService() { return KEWServiceLocator.getActionListService(); }