#APISession #session

how to load data from the database as local variables?

Have a service task where I am trying to make financial calculations. The data comes from a bill and the bill contains a contract id (This is a persistence id). I was hoping to use that to load the contact and get its data.

I was planning to load the data inside a local variable by adding the code below to data >> local variable >> add >> Edit variable dialog >> edit expression dialog >> script
However, I have no clue how to get the session. The session is required to call BusinessObjectDAOFactory.createDAO()