bonita bpm 7.15

daysAvailable in leave request

Hello, I am a beginner Bonita BPM 7, I did a leave request process, I made two model of business data DemandesConges (StartDate, EndDate, dateRetours, NombreJours, TypeConge, balance, MotifConge) and DossierAdministratif (firstName, lastName, Email...), now I want to know how I can calculate balance of leave in such a way that whenever an employee is applying for leave, the balance of leave subtracts the number of days.
I made a script for the variable of pool but plenty of error

Tomcat Bundle problem when running a new process

Hello everyone.

Recently, I was trying to configure Tomcat bundle using Postgres 9.3 with Bonita BPM 7.15, I starded up Tomcat with the new configuration with this command "start /AFFINITY 1 startup.bat" and I didn't have any problem, bonita bpm created bonita_journal and business data into postgres.

If I open Bonita Studio and open the portal option, it work without any problem. The problem is when I want to run a new process ,it send me a error like this: