protected UserCodeReference customActivityReference;
public void execute(ActivityExecution execution) throws Exception {
ActivityBehaviour activityBehaviour = (ActivityBehaviour) customActivityReference.getObject(execution);
activityBehaviour.execute(execution);
}
public void signal(ActivityExecution execution, String signalName, Map<String, ? > parameters) throws Exception {
ExternalActivityBehaviour externalActivityBehaviour = (ExternalActivityBehaviour) customActivityReference.getObject(execution);
externalActivityBehaviour.signal(execution, signalName, parameters);