Contributed fix for exception message when workflow description is too long. ALFCOM-2651

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13772 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2009-03-30 12:14:48 +00:00
parent 8fcebdc7cf
commit 2e8f901d18

View File

@@ -111,6 +111,7 @@ import org.jbpm.taskmgmt.def.Task;
import org.jbpm.taskmgmt.def.TaskMgmtDefinition;
import org.jbpm.taskmgmt.exe.PooledActor;
import org.jbpm.taskmgmt.exe.TaskInstance;
import org.springframework.dao.DataAccessException;
import org.springframework.util.StringUtils;
import org.springmodules.workflow.jbpm31.JbpmCallback;
import org.springmodules.workflow.jbpm31.JbpmTemplate;
@@ -716,6 +717,12 @@ public class JBPMEngine extends BPMEngine
{
throw new WorkflowException("Failed to start workflow " + workflowDefinitionId, e);
}
catch (DataAccessException e)
{
throw new WorkflowException(new StringBuffer(
"Failed to start workflow ").append(workflowDefinitionId)
.toString(), e);
}
}
/* (non-Javadoc)