The integral in a Boolean algebra