Package org.activiti.workflow.simple.definition.form

Examples of org.activiti.workflow.simple.definition.form.ListPropertyEntry


   
    ListPropertyDefinition itemType = new ListPropertyDefinition();
    itemType.setMandatory(true);
    itemType.setName("referenceProp");
    itemType.setWritable(false);
    itemType.addEntry(new ListPropertyEntry("1", "Item 1"));
    itemType.addEntry(new ListPropertyEntry("2", "Item 2"));
    formDefinition.addFormProperty(itemType);
   
    // Write result to byte-array
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Writer writer = new OutputStreamWriter(baos);
View Full Code Here


        FormDefinition formDefinition = new FormDefinition();

        ListPropertyDefinition approveEnum = new ListPropertyDefinition();
        approveEnum.setName("Approval");
        approveEnum.setType("enum");
        approveEnum.addEntry(new ListPropertyEntry("true", "Approve"));
        approveEnum.addEntry(new ListPropertyEntry("false", "Reject"));
        formDefinition.addFormProperty(approveEnum);

        TextPropertyDefinition reason = new TextPropertyDefinition();
        reason.setName("Reason");
        reason.setType("string");
View Full Code Here

    return new PropertyReference(id + "RequiredApprovalCount").getVariableReference(namespacePrefix);
  }

  protected AlfrescoTransitionsPropertyDefinition createTransitionsProperty() {
    AlfrescoTransitionsPropertyDefinition prop = new AlfrescoTransitionsPropertyDefinition();
    prop.addEntry(new ListPropertyEntry(AlfrescoConversionConstants.TRANSITION_APPROVE,
        AlfrescoConversionConstants.TRANSITION_APPROVE));
    prop.addEntry(new ListPropertyEntry(AlfrescoConversionConstants.TRANSITION_REJECT,
        AlfrescoConversionConstants.TRANSITION_REJECT));
    return prop;
  }
View Full Code Here

    } else {
      entries.clear();
    }
   
    if(propDef.getTransitions() != null) {
      ListPropertyEntry newEntry = null;
      for(ListPropertyEntry entry : propDef.getTransitions()) {
        newEntry = new ListPropertyEntry(entry.getValue(), entry.getName());
        entries.add(newEntry);
      }
    }
   
    if(otherDefinition.getParameters() != null) {
View Full Code Here

    humanStep.setId("step1");
    FormDefinition form = new FormDefinition();
    humanStep.setForm(form);
   
    AlfrescoTransitionsPropertyDefinition transition = new AlfrescoTransitionsPropertyDefinition();
    transition.addEntry(new ListPropertyEntry("One", "One"));
    transition.addEntry(new ListPropertyEntry("Two", "Two"));
    humanStep.getForm().addFormProperty(transition);
   
    definition.addStep(humanStep);
   
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
View Full Code Here

TOP

Related Classes of org.activiti.workflow.simple.definition.form.ListPropertyEntry

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.