jbpm4.4 获取当前任务的问题?

a3226988 2013-02-26
做的是一个会签的功能
<task g="132,78,92,52" name="会签">
      <assignment-handler class="com.zxy.heat.service.jbpm.huiqian"> 
      </assignment-handler> 
      <transition g="-24,-20" name="to 执行" to="执行"/>
      <transition g="-45,-20" name="to end1" to="end1"/>
   </task>
huiqian方法:
@Override
	public void assign(Assignable assignable, OpenExecution execution) throws Exception 
	{
        String pid = execution.getProcessInstance().getId();  
        System.out.println("pid :"+pid);  
     Task taks = taskService.createTaskQuery().processInstanceId(pid).activityName(execution.getName()).uniqueResult();
        
        //System.out.println(task.getName());  
        String participants = "";
        
	}

execution.getName()为空,无法获取当前任务;应该如何获取任务呢?
forevercoding 2013-02-28
execution.getName() 是transition 名
用getActivityName()

Global site tag (gtag.js) - Google Analytics