state.beginWrites();
Workflow workflow = Query.from(Workflow.class).where("contentTypes = ?", state.getType()).first();
if (workflow != null) {
WorkflowTransition transition = workflow.getTransitions().get(action);
if (transition != null) {
WorkflowLog log = new WorkflowLog();
updateUsingParameters(object);