This seems like an awful lot of work to call a member function, which should literally be a one-liner. If it is absolutely necessary to call getActivity() this way, this should be documented in getActivity's JavaDocs.
Reply to this message by going to Community
Start a new discussion in jBPM at Community