06-13-2007 11:14 AM
06-13-2007 03:19 PM
06-15-2007 11:34 AM
<!– The following items allow to keep track of the different owners in the document –>
<type name="sw:ownerhistoryitem">
<title>Owner history Item</title>
<properties>
<property name="sw:ownerusername">
<title>Username</title>
<type>d:text</type>
</property>
<property name="sw:owningdate">
<title>Date of Ownership</title>
<type>d:date</type>
</property>
</properties>
</type>
<aspect name="sw:ownerhistory">
<title>Playlist</title>
<associations>
<association name="sw:ownerhistoryitem">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>sw:ownerhistoryitem</class>
<mandatory>true</mandatory>
<many>true</many>
</target>
</association>
</associations>
</aspect>
<event type="task-assign">
<action
class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
//Adds versioning to the document to help in the workflow
var actor = search.luceneSearch("@cm\\:userName:\"" + taskInstance.actorId + "\"");
var props = new Array(2);
props["sw:ownerusername"] = actor.properties["cm:userName"];
props["sw:owningdate"] = new Date().toGMTString() ;
for (var i = 0; i < bpm_package.children.length; i++) {
bpm_package.children[i].addAspect("sw:ownerhistory",props);
bpm_package.children[i].save();
}
</script>
</action>
</event>
09-17-2007 07:23 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.