May fewer than than all of the balls be distibuted?
If so, I get an answer for your example of 4 indistinguishable balls and 3 distinguishable baskets much greater than 12 ways.
1 way to distribute none.
3 distinguishable ways to distribute 1 ball.
3 distinguishable ways to distribute 2 balls, both in the same basket.
3 distinguishable ways to distribute 2 balls, each in a different basket.
3 distinguishable ways to distribute 3 balls, all in the same basket.
6 distinguishable ways to distribute 3 balls, two in the same basket.
1 distinguishable way to distribute 3 balls, each in a different basket.
3 distinguishable ways to distribute 4 balls, all in one basket.
6 distinguishable ways to distribute 4 balls, three in the same basket and one in another.
3 distinguishable ways to distribute 4 balls, two in one basket and two in another.
3 distinguishable ways to distribute 4 balls, two in one basket, and the other two in different baskets.
That comes to 35 ways, not 12.
If all the balls must be distributed, I get 15 (not 12) ways, 3 ways to put all 4 into 1 basket, 6 ways to put 3 in 1 basket and 1 in a different basket, 3 ways to put 2 balls into 1 basket and 2 in another, and 3 ways to put 2 balls in 1 basket and 1 ball in each of the other 2 baskets.
So the answer may be easy, but it is not 12 ways. Consequently, I may not understand the question? Please clarify!