05-21-2010 04:43 AM
<task-node name="approved">
<event type="node-enter">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
if(bpm_package.children[0].parent.parent.properties["stcp:siteStatus"])
{
bpm_package.children[0].parent.parent.properties["stcp:siteStatus"] = "Approved";
bpm_package.children[0].parent.parent.save();
[b]bpm_package.children[0].remove();[/b]
}
</script>
</action>
</event>
<transition name="" to="end" />
</task-node>
04210043 Failed to execute script '/org/alfresco/repository/site/sites.post.json.js (in classpath store file:C:/alfresco/tomcat/shared/classes/alfresco/extension/templates/webscripts)': Duplicate child name not allowed: f14af2e1-6565-4b6f-8262-2d831cb8ee69
var jsonStr = eval('(' + json + ')');
/*custom create site, for custom props */
var site = siteService.createSite(sitePreset, shortName, title, description, visibility,jsonStr);
05-21-2010 05:51 AM
var shortName = bpm_package.children[0].parent.parent.properties["cm:name"];
var site = siteService.getSite(shortName);
if (site != null)
{ site.deleteSite(); }
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.