Autowire TaskService into component used in spring web flow

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
czz27
Member II

Autowire TaskService into component used in spring web flow

I need to autowire TaskService into component that I use in spring web flow, in that component every field need to implement Serializable (Spring Web Flow requirement), i got these exception:

org.springframework.webflow.execution.repository.snapshot.SnapshotCreationException: Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable

java.io.NotSerializableException: org.activiti.engine.impl.TaskServiceImpl

How can I use TaskService when it need to be serializable in that case? I use method getVariable(), maybe is alternative way to use this functionality?