AlfrescoReviewStepDefinition review = new AlfrescoReviewStepDefinition();
review.setName("Review");
review.setAssignmentPropertyName("bpm:people");
review.setAssignmentType(HumanStepAssignmentType.USERS);
review.setRequiredApprovalCount("1");
AlfrescoEmailStepDefinition emailStepDefinition = new AlfrescoEmailStepDefinition();
emailStepDefinition.setName("Send rejection email");
review.getRejectionSteps().add(emailStepDefinition);
definition.addStep(review);
WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
conversion.convert();