Okay, This has to be something simple I am missing...
I am trying to set state in a workflow to Under Review and it isn't performing that action. The workflow completes successfully, and does not hang, but the state isn't changed.
Do you need to have set state permission and also have it declared it in the lifecycle. Normally "Under Review" is defined as a "Lock" transition, so it's not a valid state. If you would like to lock it, then you need to have something like this:
wt.maturity.TransitionHandlerFactory.getInstance().transitionTargets(primaryBusinessObject, wt.lifecycle.Transition.LOCK, false);