Yes, that's true. We usually do that kind of things in the back. In old Drools Flow we use the input/output actions for that kind of things. but In the BPMN2 spec we don't have that concepts.
Having a script task it's a hack, thats true, we never recommend to add technical tasks to your business processes.
at least the hack works?
Greetings.