Events from CMMN (human task) will be not catched by ProcessApplication


#1

Hi,

it is normal, that ProcessApplication catch only Events from BPMN (user Tasks) and not from CMMN (human taskts) ?
How can i handle task events from CMMN human Tasks using ProcessApplication implementation ?

my ProcessApplication implementation:

@Singleton
@Startup
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@ProcessApplication
@Local(ProcessApplicationInterface.class)
public class KreditProcessApplication extends EjbProcessApplication {

	@Inject
	private MailEngine mailEngine;
	@Inject
	KreditServiceClient kreditServiceClient;

	private Expression userId;

	public TaskListener getTaskListener() {

		return new TaskListener() {
			private Logger LOGGER = LoggerFactory.getLogger(KreditProcessApplication.class);

			@Override
			public void notify(DelegateTask delegateTask) {
				try {					
					if (delegateTask.getEventName().equals("assignment")) {
						.....
					}
				} catch (BpmMailException e) {
					e.printStackTrace();
				}
			}
		};
	}		
}

Cheers, Jamal