activiti中task监听器

activiti中task监听器activiti:delegateExpression中使用的spring初始化的bean 会报couldn't serializ,然后我将我全部引用的类序列化,但是最后报到spring内部的类没有序列化,这我就没辙了,我猜我做法应该是错的,求大神解救

1、监听器代码

 @Component
public class SubordinateListener implements JavaDelegate, Serializable {
    private static final long serialVersionUID = 1L;
    @Autowired
    private IAdminUserRelService adminUserRelService;


    @Override
    public void execute(DelegateExecution execution) throws Exception {

        System.out.println();
    }

2、bpmn

 <serviceTask id="servicetask2" activiti:delegateExpression="${subordinateListener}" />