Error in Form Engine configuration

Following paragraph 2.2 for configuring the Form Engine, I created this flowable.cfg.xml file:

<beans>

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" >
    <property name="driverClassName" value="com.mysql.jdbc.Driver" />
    <property name="url" value="jdbc:mysql://localhost:3306/flowable" />
    <property name="username" value="root" />
    <property name="password" value="mypwd" />
    <property name="defaultAutoCommit" value="false" />
</bean>    

<bean id="formEngineConfiguration" class="org.flowable.form.engine.impl.cfg.StandaloneFormEngineConfiguration">      
    <property name="dataSource" ref="dataSource" />        
</bean>

<bean id="formEngineConfigurator" class="org.flowable.form.engine.configurator.FormEngineConfigurator">        
    <property name="formEngineConfiguration" ref="formEngineConfiguration" />        
</bean>

<bean id="processEngineConfiguration" class="org.flowable.engine.impl.cfg.StandaloneProcessEngineConfiguration">
    <property name="dataSource" ref="dataSource" />
    <property name="configurators">
        <list>
            <ref bean="formEngineConfigurator" />
        </list>
    </property>                                
</bean>

When I start a process using:

runtimeService.startProcessInstanceWithForm

I get this error:

Cannot find class [org.flowable.form.engine.configurator.FormEngineConfigurator] for bean with 
name 'formEngineConfigurator' defined in InputStream resource [resource loaded through InputStream]; nested
exception is ava.lang.ClassNotFoundException: org.flowable.form.engine.configurator.FormEngineConfigurator

I looked the available jar and it seams to me that the class org.flowable.form.engine.configurator.FormEngineConfigurator is missing.

Is it true? Where am I wrong?

Hi Fab.

is present in flowable-form-engine-configurator module. Include this jar into your classpath.

Regards
Martin

Thanks, it works. I searched the jar in the wrong place.

Maybe, you can help me with another issue I am facing. By the way, I am quite new with flowable.

I am working with the HolidayRequest process from the documentation.

I created a form with 3 fields:

employee
nrOfHolidays
description

I put values in an map:

variables.put("employee", "goofy");
variables.put("nrOfHolidays", "2");
variables.put("description", "Bla, bla");

When I start the process with:

ProcessInstance processInstance = runtimeService.startProcessInstanceWithForm(
            "holidayRequest:13:112506", 
            "OK", 
            variables, 
            null);

I get this error:

ELResolver cannot handle a null base Object with identifier 'employee'

How are the form variables referenced in the process?

Hi,

The holdiay request example is using form properties instead of the new Form Definitions provided in Flowable 6. Did you add a form definition in the start event of your holiday request process?
You might want to have look at https://paulhh.wordpress.com/2017/01/31/flowable-6-instant-gratification/ to see how you can implement such a process with form definitions etc.

Best regards,

Tijs

如果你是用maven管理,记得添加

org.flowable
flowable-engine
6.3.0


org.flowable
flowable-form-engine-configurator
6.3.0

回复提交之后居然把maven的dependency给过滤了