mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Refactored wcm client workflow models to use workflow 'name' not 'id'
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4435 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -203,14 +203,13 @@ public class CreateWebContentWizard extends BaseContentWizard
|
||||
}
|
||||
|
||||
final NodeRef workflowRef = workflowRefs.get(0).getChildRef();
|
||||
final String workflowId = (String)
|
||||
this.nodeService.getProperty(workflowRef, ContentModel.PROP_WORKFLOW_ID);
|
||||
if (workflowId == null)
|
||||
final String workflowName = (String)this.nodeService.getProperty(workflowRef, ContentModel.PROP_WORKFLOW_NAME);
|
||||
if (workflowName == null)
|
||||
{
|
||||
throw new RuntimeException("no workflow found for form " + formName);
|
||||
}
|
||||
System.err.println("using workflow " + workflowId + " for form " + formName);
|
||||
wd = this.workflowService.getDefinitionById(workflowId);
|
||||
System.err.println("using workflow " + workflowName + " for form " + formName);
|
||||
wd = this.workflowService.getDefinitionByName("jbpm$" + workflowName);
|
||||
|
||||
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
final ContentReader cr = this.contentService.getReader(workflowRef, ContentModel.PROP_WORKFLOWDEFAULTS);
|
||||
|
Reference in New Issue
Block a user