mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user