Examples of addFormProperty()


Examples of org.activiti.rest.service.api.form.FormDataResponse.addFormProperty()

            }
          }
        } else if ("date".equals(restFormProp.getType())) {
          restFormProp.setDatePattern((String) formProp.getType().getInformation("datePattern"));
        }
        result.addFormProperty(restFormProp);
      }
    }
    if (formData instanceof StartFormData) {
      StartFormData startFormData = (StartFormData) formData;
      if (startFormData.getProcessDefinition() != null) {
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.FormDefinition.addFormProperty()

   
    TextPropertyDefinition textProp = new TextPropertyDefinition();
    textProp.setMandatory(true);
    textProp.setName("textProp");
    textProp.setWritable(false);
    formDefinition.addFormProperty(textProp);
    textProp.getParameters().put("custom-parameter", "This is a test");
   
    NumberPropertyDefinition numberProp = new NumberPropertyDefinition();
    numberProp.setMandatory(true);
    numberProp.setName("numberProp");
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.FormDefinition.addFormProperty()

   
    NumberPropertyDefinition numberProp = new NumberPropertyDefinition();
    numberProp.setMandatory(true);
    numberProp.setName("numberProp");
    numberProp.setWritable(false);
    formDefinition.addFormProperty(numberProp);
   
    ReferencePropertyDefinition reference = new ReferencePropertyDefinition();
    reference.setMandatory(true);
    reference.setName("referenceProp");
    reference.setWritable(false);
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.FormDefinition.addFormProperty()

    ReferencePropertyDefinition reference = new ReferencePropertyDefinition();
    reference.setMandatory(true);
    reference.setName("referenceProp");
    reference.setWritable(false);
    reference.setType("referencedType");
    formDefinition.addFormProperty(reference);
   
    ListPropertyDefinition itemType = new ListPropertyDefinition();
    itemType.setMandatory(true);
    itemType.setName("referenceProp");
    itemType.setWritable(false);
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.FormDefinition.addFormProperty()

    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);
    converter.writeWorkflowDefinition(workflowDefinition, writer);
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.FormDefinition.addFormProperty()

        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");
        formDefinition.addFormProperty(reason);
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.FormDefinition.addFormProperty()

        formDefinition.addFormProperty(approveEnum);

        TextPropertyDefinition reason = new TextPropertyDefinition();
        reason.setName("Reason");
        reason.setType("string");
        formDefinition.addFormProperty(reason);

        List<FormProperty> properties = converter.convertProperties(formDefinition);
        assertTrue(properties.size() == 2);

        FormProperty firstProperty = properties.get(0);
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.FormDefinition.addFormProperty()

    FormDefinition formDefinition = new FormDefinition();
    for (Object itemId : propertyTable.getItemIds()) {
     
      Item item = propertyTable.getItem(itemId);
      FormPropertyDefinition formPropertyDefinition = getFormPropertyDefinition(item);
      formDefinition.addFormProperty(formPropertyDefinition);
    }
    return formDefinition;
  }

  protected FormPropertyDefinition getFormPropertyDefinition(Item item) {
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.FormDefinition.addFormProperty()

    if (stepDefinition.getForm() != null) {
      finalForm = stepDefinition.getForm().clone();
    } else {
      finalForm = new FormDefinition();
    }
    finalForm.addFormProperty(createTransitionsProperty());
    reviewTask.setForm(finalForm);
   
   
    // Assignment
    if(stepDefinition.getAssignmentType() == HumanStepAssignmentType.USER) {
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.FormPropertyGroup.addFormProperty()

   
    // Add simple text
    TextPropertyDefinition textProperty = new TextPropertyDefinition();
    textProperty.setName("text");
    textProperty.setMandatory(true);
    group.addFormProperty(textProperty);
   
   
    definition.addStep(humanStep);
   
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(definition);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.