cancel
Showing results for 
Search instead for 
Did you mean: 

handling attached files from a process

robmckinnon
Champ on-the-rise
Champ on-the-rise
After a file has been attached to an activiti process how do you go about getting the file from within the JavaDelegate? Is there a way to get a reference to the TaskServer from within the JavaDelegate?
1 REPLY 1

robmckinnon
Champ on-the-rise
Champ on-the-rise
I found the solution if anyone is curious…

I ended up leveraging spring injection to get the TaskService

in the war application configuration file
<bean id="getAttachmentClass" class="com.myco.activiti.poc.GetAttachmentClass">
    <property name="taskService" ref="taskService"/>
</bean>

In the bpmn20 file I used an expresion for the service task….
#{getAttachmentClass.execute(execution)}