04-05-2010 10:40 PM
var workflowPackage = workflow.createPackage();
workflowPackage.addNode(node);  // 'node' is the ScriptNode of the object (a document in this case).
 
					
				
			
			
				
			
			
			
			
			
			
			
		04-09-2010 06:16 AM
04-13-2010 09:58 PM
 
					
				
			
			
				
			
			
			
			
			
			
			
		04-14-2010 03:14 AM
    <config>
        <actions>
            <action-group id="space_browse_menu">
                <action idref="start_workflow" />
            </action-group>
        </actions>
    </config>
// create a workflow package for the attached items and add them
      NodeRef workflowPackage = this.getWorkflowService().createPackage(null);
      // create a workflow package for the attached items and add them
      // hmedia: if the first package item is a folder, take this folder as the workflow package
      NodeRef nodeRef = new NodeRef(this.packageItemsToAdd.get(0));
      QName type = getUnprotectedNodeService().getType(nodeRef);
      NodeRef workflowPackage;
      if (!getDictionaryService().isSubClass(type, ContentModel.TYPE_FOLDER))
         workflowPackage= this.getWorkflowService().createPackage(null);
      else {
         workflowPackage= nodeRef;
         this.packageItemsToAdd.remove(0);
      }

    if (this.getDictionaryService().isSubClass(type, ContentModel.TYPE_CONTENT) || 
             this.getDictionaryService().isSubClass(type, ApplicationModel.TYPE_FILELINK))
         {
            this.packageItemsToAdd.add(itemToWorkflow.toString());
         }
    // hmedia: added folder as content type
    if (this.getDictionaryService().isSubClass(type, ContentModel.TYPE_CONTENT) || 
             this.getDictionaryService().isSubClass(type, ApplicationModel.TYPE_FILELINK) ||
             this.getDictionaryService().isSubClass(type, ContentModel.TYPE_FOLDER))
         {
            this.packageItemsToAdd.add(itemToWorkflow.toString());
         }
04-28-2010 06:55 PM
 
					
				
			
			
				
			
			
			
			
			
			
			
		04-29-2010 10:19 AM
 
					
				
		
08-17-2010 02:11 AM
08-17-2010 02:39 AM
 
					
				
		
08-17-2010 03:09 AM
 .
.08-17-2010 03:18 AM
 
					
				
				
			
		
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.