What’s New > Windchill > 11.0 F000 > Deployment and Configuration > Workflow: Complete Task Transition
  
Workflow: Complete Task Transition
Product: Windchill
Release: 11.0 F000
Benefit
A new transition type invokes an expression when upon task completion. This allows workflow template administrators to complete tasks on the first reject without using a separate synchronization robot.
Additional Details
A new Complete Task transition is available from the Transitions tab in the workflow template editor.
If the transition expression is true, an individual task associated with the activity node completes.
New API supports tallying votes by individual roles:

/*
* @param self : WfAssignedActivity ObjectReference
* @param eventToMatch : Routing option to tally
* @param assigneeRole : Role for which you want to tallythe routing option
* @param locale : The locale in which you have specifiedthe assignee role
* @return int : Number of votes from user in the specified role
* @throws WTException
*/

public static int count(ObjectReference self,String eventToMatch,String assigneeRole,Locale locale)
throws WTException
New API supports tallying votes by routing event:

/*
* @param self : WfAssignedActivity ObjectReference
* @param eventToMatch : Routing option to tally
* @param int : Number of votes for the routing event in
the activity
* @throws WTException
*/

public static int count(ObjectReference self,String eventToMatch) throws WTException
New API supports activity completion when conditions are met:

/*
Supported API : True
Method to complete the activity
* @param self : WfAssignedActivity ObjectReference
* @param events : Routing event to follow
* @throws WTException
*/

public void completeActivity
(ObjectReference self,String events)
throws WTException
For more information, see Transitions Tab and Complete Task Transition.