create and persits BDMs using DAOs in Bonita -


how make use of bonita provided data access objects (daos) variables create new instance of business data models (bdms) object , persist it.

in order create new object instance, declare part of process business variables , initialize it:

  • select process pool
  • go "data" tab
  • select "pool variables" sub-tab
  • in "business variables" section click on "add..." button

you can initialize either:

  • using business variable default value:
    • in "business variables" section click on "add..." or "edit..." button
    • in "default value" field click on pencil icon bring groovy script editor.
    • use groovy script editor create script create new instance of business variable java object.
  • or using operation on task:
    • select task.
    • go "execution" tab, "operations" sub-tab.
    • click on "add" button.
    • on drop-down list on left select business variable.
    • make sure operation set "instantiate with". if operation different (e.g. "takes value of"), click on operation link , use drop-down list select "instantiate with".
    • click on pencil icon on right bring groovy script editor.
    • use groovy script editor create script create new instance of business variable java object.

Comments