Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I have used following in transition without issues.
java.lang.Exception e = new Exception("Please make sure the XYZ is checked in before completing task");
if(wt.vc.wip.WorkInProgressHelper.isCheckedOut((wt.vc.wip.Workable)primaryBusinessObject)){
result=false;
throw new wt.workflow.engine.FailedTransitionException(e);
}