09-29-2008 07:01 AM
<swimlane name="initiator"/>
<start-state name="start">
<task name="mywf:submitReviewTask" swimlane="initiator" >
<event type="node-leave">
<script>
<variable name="mywf_StarterName" access="write"/>
<expression>
mywf_StarterName = Authentication.getAuthenticatedActorId();
</expression>
</script>
</event>
</task>
<transition name="" to="authorverification">
<condition>#{mywf_StarterName == "admin"}</condition>
<!– <condition>#{people.getPerson(initiator).properties["cm:userName"] == "admin"}</condition> –>
<!– <condition>#{person.properties.userName == "admin"}</condition> –>
<!– <condition>#{Authentication.getAuthenticatedActorId() == "admin"}</condition> –>
</transition>
09-30-2008 09:54 PM
10-02-2008 02:04 AM
10-13-2008 03:22 PM
<workflows>
spwf:standardreview, spwf:expeditedpublish
</workflows>
<admin-workflows>
wcmwf:changerequest, spwf:nopublish
</admin-workflows>
10-13-2008 10:04 PM
package org.alfresco.web.bean.workflow;
getStartableWorkflows()
// vinaxwater get user loging
FacesContext context = FacesContext.getCurrentInstance();
User user = Application.getCurrentUser(context);
String userName = user.getUserName();
user.isAdmin() >>> result return true if user logining is admin
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.