// Get the type of transition we're being asked to make and store it as a context parameter -used by the workflow document handler
TransitionDef transitionDef = getTransitionDef(targetCtx, transition);
+ if (transitionDef == null) {
+ throw new DocumentException(String.format("The document with ID='%s' does not support the workflow transition '%s'.",
+ itemIdentifier, transition));
+ }
ctx.setProperty(WorkflowClient.TRANSITION_ID, transitionDef);
WorkflowDocumentModelHandler handler = createWorkflowDocumentHandler(ctx);
// Get the type of transition we're being asked to make and store it as a context parameter -used by the workflow document handler
TransitionDef transitionDef = getTransitionDef(parentCtx, transition);
+ if (transitionDef == null) {
+ throw new DocumentException(String.format("The document with ID='%s' does not support the workflow transition '%s'.",
+ csid, transition));
+ }
ctx.setProperty(WorkflowClient.TRANSITION_ID, transitionDef);
WorkflowDocumentModelHandler handler = createWorkflowDocumentHandler(ctx);