Stuck on "Getting started tutorial"

I’m running Version 7.1.2 on 64 bit Linux and have encountered the following issue.

Under the section Update business object with review data when I select Operations, I cannot select a target as the dropdown is empty (instead of showing “travelRequest”)

What am I missing.

Thanks

that’s because you didn’t define the Data Business Model, you should review “Create the data model” part of the tutorial and after that get back to “Update business object with review data”

missed the answer spot :slight_smile:

Hmm, as I followed the Tutorial, the Data Business Model TravelRequest was created before I got to the Process creation. Have just checked to make sure and the Data model is defined as per instructions

then maybe you didn’t define Define business variables as described in http://documentation.bonitasoft.com/getting-started-tutorial-1#define-variables

Contracts are defined too as per documentation too. Everything I’ve done matched the instructions and looks like the screenshots until I get to the section to Update business object with review data

One thing I did see, however, in one of the logs is the following error:
/default/src-providedGroovy/script1445811412219.groovy: 1 Groovy:unable to resolve class com.company.model.TravelRequest

This is the model:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<businessObjectModel>
    <businessObjects>
        <businessObject qualifiedName="com.company.model.TravelRequest">
            <fields>
                <field type="STRING" length="255" name="userId" nullable="false" collection="false"/>
                <field type="DATE" length="255" name="departureDate" nullable="false" collection="false"/>
                <field type="INTEGER" length="255" name="numberOfNights" nullable="false" collection="false"/>
                <field type="BOOLEAN" length="255" name="hotelNeeded" nullable="true" collection="false"/>
                <field type="STRING" length="255" name="destination" nullable="false" collection="false"/>
                <field type="STRING" length="255" name="reason" nullable="false" collection="false"/>
                <field type="STRING" length="255" name="status" nullable="false" collection="false"/>
                <field type="STRING" length="255" name="refusalReason" nullable="true" collection="false"/>
            </fields>
            <uniqueConstraints/>
            <queries>
                <query name="findByUserIdAndStatus" content="SELECT t &#xA;FROM TravelRequest t &#xA;WHERE t.userId = :userId&#xA;AND t.status = :status&#xA;ORDER BY t.persistenceId ASC" returnType="java.util.List">
                    <queryParameters>
                        <queryParameter name="userId" className="java.lang.String"/>
                        <queryParameter name="status" className="java.lang.String"/>
                    </queryParameters>
                </query>
            </queries>
            <indexes/>
        </businessObject>
    </businessObjects>
</businessObjectModel>

it seems to me a deeper problem other then the Tutorial itself
try to re-do all the tutorial, in order to recreate the DBM and solve some problems that might have occured during the process.

sorry that I can’t help you more than this, but I’ve done the “Getting started tutorial” recently :slight_smile:

Already done, but result is the same

btw here is my Data Model that has some slight differences:

<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<businessObjectModel>
<businessObjects>
<businessObject qualifiedName="com.company.model.TravelRequest">
<fields>
<field collection="false" nullable="true" name="userId" length="255" type="STRING"/>
<field collection="false" nullable="false" name="departureDate" length="255" type="DATE"/>
<field collection="false" nullable="false" name="numberOfNights" length="255" type="INTEGER"/>
<field collection="false" nullable="true" name="hotelNeeded" length="255" type="BOOLEAN"/>
<field collection="false" nullable="false" name="destination" length="255" type="STRING"/>
<field collection="false" nullable="false" name="reason" length="255" type="STRING"/>
<field collection="false" nullable="true" name="status" length="255" type="STRING"/>
<field collection="false" nullable="true" name="refusalReason" length="255" type="STRING"/>
</fields>
<uniqueConstraints/>
<queries>
<query name="findByUserIdAndStatus" returnType="java.util.List" content="SELECT t FROM TravelRequest t WHERE t.userId = :userId AND t.status = :status ORDER BY t.persistenceId ASC">
<queryParameters>
<queryParameter name="userId" className="java.lang.String"/>
<queryParameter name="status" className="java.lang.String"/>
</queryParameters>
</query>
</queries>
<indexes/>
</businessObject>
</businessObjects>
</businessObjectModel>

Thanks for posting the xml. I assume you are also on 7.1.2?

yes, Microsoft Windows 7 x64 + Bonita BPM Community 7.1.2

So I guess I just need to figure out why the models differ:-)

Thanks

ok. Found a workaround. If I Add the inputs from data (same as the contract for the pool), it all works. I can see the travelRequest as a source in the operations pane for the Manager Review task

nice :slight_smile: