新增功能 > Windchill > 11.0 F000 > 部署和配置 > 工作流:完成任务转变
  
工作流:完成任务转变
产品:Windchill
版本:11.0 F000
优点
新的转变类型会在任务完成后调用表达式。这样,工作流模板管理器便可在首次拒绝时完成任务,而无需使用单独的同步自动机。
其他详细信息
新的“完成任务”转变可通过工作流模板编辑器中的“转变”选项卡访问。
如果转变表达式为 true,则会完成与活动节点相关联的单个任务。
新的 API 支持各个角色的计数投票:

/*
* @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
新的 API 支持路由选择事件的计数投票:

/*
* @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
新的 API 支持当满足以下条件时完成活动:

/*
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
有关详细信息,请参阅“转变”选项卡完成任务转变