Probably easiest way would be to create a custom workitem that calls your class and does what you need it to do. Docs have a good section on domain specific activities.
Reply to this message by going to Community
Start a new discussion in jBPM at Community