Yes you can, the question is more about from where do you want to send the event? Where in the process (origin)>
for example if you are in a script task you can do something like
kcontext.signalEvent(); where you can specify the process instance ID besides the event.
Thank you for your reply.
Yes,i want to send the event from a script task.
From the jBPM5.4 API, I find a mathod : kcontext.getKnowledgeRuntime().signalEvent(eventType,data,process instance Id).
But , can i send the event to all the process instances in the knowledgeSession without the process instance id?
Just like the method outside the process instance : ksession.signalEvent(eventType,data);
I have solved it by using method: kcontext.getKnowledgeRuntime().signalEvent(eventType,data).
Thank you very much!