public Object execute(Context context) {
StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
if (processInstanceId == -1) {
ksession.signalEvent(eventType, event);
} else {
ProcessInstance processInstance = ksession.getProcessInstance(processInstanceId);
if (processInstance != null) {
processInstance.signalEvent(eventType, event);
}