I have the following requirement:  States A and B, where B has two substates B1 and B2.  When transition occurs from B to A, and then from A back to B, under some conditions it is desired for B1 to be the initial substate, while in others we would like the substate to be chosen based on B's shallow history.

Is there a concise way to obtain this behavior from the statecharts library?

Thanks,
Chris