Search in sources :

Example 1 with HtmlFormEngine

use of org.camunda.bpm.engine.impl.form.engine.HtmlFormEngine in project camunda-bpm-platform by camunda.

the class ProcessEngineConfigurationImpl method initFormEngines.

protected void initFormEngines() {
    if (formEngines == null) {
        formEngines = new HashMap<String, FormEngine>();
        // html form engine = default form engine
        FormEngine defaultFormEngine = new HtmlFormEngine();
        // default form engine is looked up with null
        formEngines.put(null, defaultFormEngine);
        formEngines.put(defaultFormEngine.getName(), defaultFormEngine);
        FormEngine juelFormEngine = new JuelFormEngine();
        formEngines.put(juelFormEngine.getName(), juelFormEngine);
    }
    if (customFormEngines != null) {
        for (FormEngine formEngine : customFormEngines) {
            formEngines.put(formEngine.getName(), formEngine);
        }
    }
}
Also used : JuelFormEngine(org.camunda.bpm.engine.impl.form.engine.JuelFormEngine) HtmlFormEngine(org.camunda.bpm.engine.impl.form.engine.HtmlFormEngine) FormEngine(org.camunda.bpm.engine.impl.form.engine.FormEngine) HtmlFormEngine(org.camunda.bpm.engine.impl.form.engine.HtmlFormEngine) JuelFormEngine(org.camunda.bpm.engine.impl.form.engine.JuelFormEngine)

Example 2 with HtmlFormEngine

use of org.camunda.bpm.engine.impl.form.engine.HtmlFormEngine in project camunda-bpm-platform by camunda.

the class HtmlFormEngineTest method testTransformNullFormData.

public void testTransformNullFormData() {
    HtmlFormEngine formEngine = new HtmlFormEngine();
    assertNull(formEngine.renderStartForm(null));
    assertNull(formEngine.renderTaskForm(null));
}
Also used : HtmlFormEngine(org.camunda.bpm.engine.impl.form.engine.HtmlFormEngine)

Aggregations

HtmlFormEngine (org.camunda.bpm.engine.impl.form.engine.HtmlFormEngine)2 FormEngine (org.camunda.bpm.engine.impl.form.engine.FormEngine)1 JuelFormEngine (org.camunda.bpm.engine.impl.form.engine.JuelFormEngine)1