Package org.camunda.bpm.engine.form

Examples of org.camunda.bpm.engine.form.StartFormData


    FormType mockFormType = mock(FormType.class);
    when(mockFormType.getName()).thenReturn(EXAMPLE_FORM_PROPERTY_TYPE_NAME);
    when(mockFormField.getType()).thenReturn(mockFormType);

    StartFormData mockFormData = mock(StartFormData.class);
    when(mockFormData.getDeploymentId()).thenReturn(EXAMPLE_DEPLOYMENT_ID);
    when(mockFormData.getProcessDefinition()).thenReturn(definition);

    List<FormField> mockFormFields = new ArrayList<FormField>();
    mockFormFields.add(mockFormField);
    when(mockFormData.getFormFields()).thenReturn(mockFormFields);

    return mockFormData;
  }
View Full Code Here


    super(resourceId, formVariableNames);
  }

  public Map<String, VariableInstance> execute(CommandContext commandContext) {

    StartFormData startFormData = new GetStartFormCmd(resourceId)
      .execute(commandContext);

    Map<String, VariableInstance> result = new HashMap<String, VariableInstance>();

    for (FormField formField : startFormData.getFormFields()) {
      if(formVariableNames == null || formVariableNames.contains(formField.getId())) {
        result.put(formField.getId(), createVariable(formField));
      }
    }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.form.StartFormData

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.