Added support for packageItems to the TaskFormProcessor.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21344 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
N Smith
2010-07-21 16:39:44 +00:00
parent 17bcf56a93
commit 9ddf7d5857
8 changed files with 422 additions and 152 deletions

View File

@@ -118,8 +118,11 @@ public class WorkflowPackageImpl implements WorkflowPackageComponent
}
// attach workflow package
if (nodeService.hasAspect(container, WorkflowModel.ASPECT_WORKFLOW_PACKAGE)) { throw new WorkflowException(
"Container '" + container + "' is already a workflow package."); }
if (nodeService.hasAspect(container, WorkflowModel.ASPECT_WORKFLOW_PACKAGE))
{
String msg = "Container '" + container + "' is already a workflow package.";
throw new WorkflowException(msg);
}
nodeService.addAspect(container, WorkflowModel.ASPECT_WORKFLOW_PACKAGE, null);
nodeService.setProperty(container, WorkflowModel.PROP_IS_SYSTEM_PACKAGE, isSystemPackage);