Package org.activiti.workflow.simple.alfresco.step

Examples of org.activiti.workflow.simple.alfresco.step.AlfrescoReviewStepDefinition


  @Test
  public void testReviewStep() throws Exception {
    WorkflowDefinition definition = new WorkflowDefinition();
    definition.setId("process");
   
    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();
    new File("target/repo").mkdir();
View Full Code Here

TOP

Related Classes of org.activiti.workflow.simple.alfresco.step.AlfrescoReviewStepDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.