Workflow updates to support deployment of a workflow definition sourced from the repository (ie. node of type bpm:workflowDefinition)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6770 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2007-09-12 21:26:12 +00:00
parent e99a9a0d3d
commit f161572b1e
11 changed files with 336 additions and 9 deletions

View File

@@ -321,7 +321,7 @@ public class JBPMEngine extends BPMEngine
}
catch(JbpmException e)
{
throw new WorkflowException("Failed to deploy workflow definition", e);
throw new WorkflowException("Failed to deploy workflow definition - " + e.getMessage(), e);
}
}
@@ -380,7 +380,7 @@ public class JBPMEngine extends BPMEngine
}
catch(JbpmException e)
{
throw new WorkflowException("Failed to undeploy workflow definition", e);
throw new WorkflowException("Failed to undeploy workflow definition - " + e.getMessage(), e);
}
}
@@ -1801,8 +1801,13 @@ public class JBPMEngine extends BPMEngine
throw new JbpmException("Failed to parse process definition from jBPM xml stream", e);
}
}
else
{
throw new JbpmException("Failed to parse process definition - unsupported mime type '" + mimetype + "'");
}
if (tenantService.isEnabled())
if ((compiledDef != null) && tenantService.isEnabled())
{
compiledDef.def.setName(tenantService.getName(compiledDef.def.getName()));
}