I’d like to be able to assign values to attributes like “To”, “From”, “Subject” etc in an Email Task at runtime.
I noticed in the advanced options that you can attach an Execution Listener to the task and I assumed I could initialize the task with values before it started but I couldn’t find any documentation on the execution listeners.
And according to the Email Task, it may not work because it is not integrated with CUBA emailer. But you can always send an email by the regular Service Task.
You mean how to use CUBA components from the business process? If so, then there is an example how to invoke spring bean methods from the process in the BPM quickstart. As an alternative, you may create your implementation of JavaDelegate class and specify it as Service Task handler in the process model (see Activiti User Guide). But in this case you’ll have to get CUBA components by the AppBeans.get(…) method.
I mean what components are integrated and I can use. For example I would need a Business Rule Task right now in my project but I don’t know if it’s integrated with CUBA yet. If not, what alternatives do I have to this ?
Thanks.
As for the rule task, then there is no any special integration except the one that is provided by Activiti itself. As for the alternative, see this answer