AnsweredAssumed Answered

get property owner

Question asked by giorgio on Jun 4, 2009
Latest reply on Jun 10, 2009 by giorgio
What is the correct syntax to capture the value of the property cm:owner is the owner of the workflow, in order to assign a property of a file from the review_pooled_definition.xml, put an example in which I capture the name of the group and assigns it.

<task-node name="rejected">

        <transition name="" to="end" />
            <event type="node-enter">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
for (var z = 0; z &lt; bpm_package.children.length; z++)
bpm_package.children[z].properties["my:expert"] =["usr:authorityName"];


What I want to know is how you would do this same thing for the property owner to take possession of the workflow and do it again when the workflow finishes.

I hope someone can help me because I have not found anything like this example. Thanks and regards.