AnsweredAssumed Answered

Default Assignee(s) in process definition

Question asked by sebp on Apr 9, 2010
Latest reply on Nov 29, 2012 by krups
Is it possible to insert default assignee(s) in the processdefinition?

For example, if someone opens the manage task dialog for the following review task he should see the user 'martin' already entered as assignee.

<task-node name="review">
        <task name="pdwf:reviewTask" swimlane="Buero">
            <event type="task-create">
                <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                    <runas>admin</runas>
                    <script>
                        bpm_assignee = people.getPerson("martin");   
                    </script>
                </action>
            </event>
        </task>
        <transition to="terminierung" name="terminieren">
        </transition>
</task-node>

But the above code doesn't work.  :|

Outcomes