Bonita 7 / Read pool contract data
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.
Yes you can use the instantiation contract in the "Default value" script of the variables.
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..
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?