Postgresql connector, BDM and UI Designer.

1
+1
-1

Hi everyone.
How can I store the connector output in a business variable?
How I define it? I've already store the connector output to a process variable, but I cannot do the same in a business variable.

Then, how can I give the values of the output connector to a selector widget in UI Designer?
The output connector is an ArrayList<>.

Thanks in advanced, I'll really appreciate your answers, I'm struggling whit this for a long time.

Comments

Submitted by Sean McP on Thu, 01/14/2016 - 06:35

To define your Business Data Model see the Getting Started Tutorial here .

To set the BDO (creating instances of the BDM) do the following:
Sample Code - does not work - not verified...

import com.company.model.BDO;

while (rs.next()){
BDO newBDO = new BDO();
newBDO.setUserId(String.valueOf(BonitaUsers.getProcessInstanceInitiator(apiAccessor, processInstanceId).getId())); //set the current userid
newBDO.setMyField1(rs.getString(departureDate));
newBDO.setMyField2(rs.getInt(numberOfNights));
rs.next();
}

That's part 1 done,

For part 2 - I'll come back later (maybe).

regards
Seán

No answers yet.
Notifications