Skip to content

Instantly share code, notes, and snippets.

@mauriziocarioli
Last active Jan 15, 2020
Embed
What would you like to do?
SLA Violated event
/**
* @param event
*/
public void beforeSLAViolated(SLAViolatedEvent event) {
System.out.println(
"Process <<"+
event.getProcessInstance().getProcessName()+
">>-<"+
event.getProcessInstance().getId()+
"> ->SLA <<"+
event.getNodeInstance().getNodeName()+">>-<"+
event.getNodeInstance().getNodeId()+">-<"+
event.getNodeInstance().getId()+
"> SLA is about to be violated."
);
}
/**
* @param event
*/
public void afterSLAViolated(SLAViolatedEvent event) {
System.out.println(
"Process <<"+
event.getProcessInstance().getProcessName()+
">>-<"+
event.getProcessInstance().getId()+
"> ->SLA <<"+
event.getNodeInstance().getNodeName()+">>-<"+
event.getNodeInstance().getNodeId()+">-<"+
event.getNodeInstance().getId()+
"> SLA has been violated."
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment