05-04-2011 03:29 AM
Map<QName, Serializable> workflowParams = new HashMap<QName, Serializable>(16);
Map<String,Date> expDateMap = new HashMap<String,Date>();
expDateMap.put(WCMAppModel.PROP_EXPIRATIONDATE.getLocalName(), expiryDate);
NodeRef workflowPackage = this.services.getWorkflowService().createPackage(AVMNodeConverter.ToNodeRef(-1, parentFolderAvmPath+"/"+fileName));
workflowParams.put(WorkflowModel.ASSOC_PACKAGE, workflowPackage);
workflowParams.put(WorkflowModel.PROP_WORKFLOW_DESCRIPTION, wfComment);
workflowParams.put(WCMWorkflowModel.PROP_LABEL, wfLabel);
workflowParams.put(WCMWorkflowModel.PROP_FROM_PATH,WCMUtil.buildStoreRootPath(KOMPSOFT));
workflowParams.put(WCMWorkflowModel.PROP_LAUNCH_DATE, launchDate);
workflowParams.put(WCMWorkflowModel.PROP_AUTO_DEPLOY,
new Boolean(false));
workflowParams.put(WCMWorkflowModel.PROP_WEBAPP,webProjInfo.getDefaultWebApp());
workflowParams.put(WCMWorkflowModel.ASSOC_WEBPROJECT,webProjService.getWebProjectNodeFromStore(webProjInfo.getStoreId()));
workflowParams.put(WorkflowModel.PROP_WORKFLOW_DUE_DATE, launchDate);
workflowParams.put(QName.createQName(NamespaceService.BPM_MODEL_1_0_URI, "groupAssignees"),findGroup("GROUP_Marketing") );
List<String> relativePaths = new ArrayList<String>();
relativePaths.add(AVMUtil.splitPath(parentFolderAvmPath)[1]+"/"+fileName);
this.services.getSandboxService().submitListAssets(userStoreID,relativePaths , "jbpm$groupwf:groupsubmit",workflowParams, wfLabel, wfComment, expDateMap, launchDate, false,false);
07-05-2011 07:26 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.