Bonita 7 / Read pool contract data

1
0
-1

I created a contract in the form at the pool level, so it is shown when a process is started.
Now I need to access and read that input but there is no "Operations" at pool level.
Is there a way to map (or read) a contract associated to the initial (pool) form with a variable (BDM, pool variable, process variable... it doesn't matter)?

Thanks in advance.

1 answer

1
0
-1
This one is the BEST answer!

Hi,

Yes you can use the instantiation contract in the "Default value" script of the variables.

Cheers

Comments

Submitted by Sean McP on Fri, 03/31/2017 - 20:34

As Lionel says,

You fill in the Instantiation Form which will then call the BDM "default value" initialization script where you can now manipulate the data before it gets stored to the BDM. For example you can initialize date and time of addition to date fields etc.

However I also content that this is a misleading name for the "default value" script as it occurs AFTER the Instantiation form and not before.

hope that helps with understanding why it doesn't quite make sense,

However you could also add a Script Task immediately after the "Start" to access the BDM directly..

regards
Seán

Submitted by romualdo.s.rs on Mon, 06/19/2017 - 15:02

I created pool-level contracts too but I'm not able to access the content of these contracts either, I did not understand how I could access the contents of these contracts, would they be able to give an example of how to get the contents of the contracts through a groovy script?

Notifications