private void updateInstanceStatus(final WorkflowExecutionContext context) throws FalconException { if (context.getContextType() == WorkflowExecutionContext.Type.COORDINATOR_ACTION) { // TODO(yzheng): FALCON-1776 Instance update on titan DB based on JMS notifications on // coordinator actions return; } WorkflowExecutionContext.EntityOperations entityOperation = context.getOperation(); switch (entityOperation) { case GENERATE: updateProcessInstance(context); break; case REPLICATE: updateReplicatedFeedInstance(context); break; case DELETE: updateEvictedFeedInstance(context); break; case IMPORT: updateImportedFeedInstance(context); break; case EXPORT: updateExportedFeedInstance(context); break; default: throw new IllegalArgumentException("Invalid EntityOperation - " + entityOperation); } }