public void setProcessInstanceId(Long processInstanceId) {
this.processInstanceId = processInstanceId;
}
public Object execute(Context context) {
KieSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
if (processInstanceId == null) {
return null;
}
ksession.abortProcessInstance(processInstanceId);
return null;
}