Package org.activiti.workflow.simple.converter

Examples of org.activiti.workflow.simple.converter.WorkflowDefinitionConversion


    form.setFormKey("myform");
    humanStep.setForm(form);
   
    definition.addStep(humanStep);
   
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
    conversion.convert();
   
    Process process = conversion.getProcess();
    assertNotNull(process);
   
    boolean listenerFound = false;
    for(FlowElement flowElement : process.getFlowElements()) {
      if(flowElement instanceof UserTask) {
View Full Code Here


    form.getFormGroups().add(group);
    group.getFormPropertyDefinitions().add(text);
   
    definition.addStep(humanStep);
   
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
    conversion.convert();
   
    Process process = conversion.getProcess();
    assertNotNull(process);
   
    boolean listenerFound = false;
    for(FlowElement flowElement : process.getFlowElements()) {
      if(flowElement instanceof UserTask) {
View Full Code Here

    form.setFormKey("wf:activitiAdhoc");
    humanStep.setForm(form);
   
    definition.addStep(humanStep);
   
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
    conversion.convert();
   
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    conversionFactory.getArtifactExporter().writeBpmnModel(stream, conversion);
    byte[] byteArray = stream.toByteArray();
    assertTrue(byteArray.length > 0);
View Full Code Here

    group.addFormProperty(textProperty);
   
   
    definition.addStep(humanStep);
   
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
    conversion.convert();
   
    // Check content-model
    M2Model model = AlfrescoConversionUtil.getContentModel(conversion);
    assertNotNull(model);
    M2Type type = model.getTypes().get(0);
View Full Code Here

    textProperty.setType("cm:person");
    group.addFormProperty(textProperty);
   
    definition.addStep(humanStep);
   
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
    conversion.convert();
   
    // Check content-model
    M2Model model = AlfrescoConversionUtil.getContentModel(conversion);
    assertNotNull(model);
    M2Type type = model.getTypes().get(0);
View Full Code Here

    emailStep.setTo("fred");
    emailStep.setSubject("jos");
   
    definition.addStep(emailStep);
   
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
    conversion.convert();
   
    // Process should contain a single service-task
    ServiceTask task = null;
   
    for(FlowElement element : conversion.getProcess().getFlowElements()) {
      if(element instanceof ServiceTask) {
        if(task != null) {
          Assert.fail("More than one service-task found");
        }
        task = (ServiceTask) element;
View Full Code Here

    transition.addEntry(new ListPropertyEntry("Two", "Two"));
    humanStep.getForm().addFormProperty(transition);
   
    definition.addStep(humanStep);
   
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
    conversion.convert();

    M2Model model = AlfrescoConversionUtil.getContentModel(conversion);
    assertEquals(1L, model.getTypes().size());
   
    M2Type taskType = model.getTypes().get(0);
View Full Code Here

    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();
    new File("target/share").mkdir();
    conversionFactory.getArtifactExporter().exportArtifacts(conversion, new File("target/repo"), new File("target/share"), false);
  }
View Full Code Here

TOP

Related Classes of org.activiti.workflow.simple.converter.WorkflowDefinitionConversion

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.