I want to execute a piece of code whenever a process task is started. If I have 10 process task in my case, for all 10 process task I wanted to execute a piece of code in common.
In CMMN for humanTask Listener, I wrote below code and it works
@CamundaSelector(type = “humanTask”)
But for process task, if I give CamundaSelector as below, it is not working
@CamundaSelector(type = “processTask”)
Instead it works only if I give @CamundaSelector(type = “planItem”)
But the selector planitem execute for everything milestones etc.
How to identify whether it is a process task?
Even I am not able to getActivityType() from DelegateCaseExecution.
Below snippet also not works
caseExecution.getCmmnModelElementInstance() instanceof ProcessTask
Please suggest