take a look at service task and ServiceTaskHandler that is capable for invoking method of defined java class with restriction of only single argument. Alternatively you can create your custom/domain specific nodes and coresponding work item handlers which you could do pretty much whatever you need.
Take a look at documentation for more details and jbpm-examples project that is shipped with jbpm distribution.
HTH