Skip to content

Instantly share code, notes, and snippets.

@mauriziocarioli
Last active January 15, 2020 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauriziocarioli/4a8dac4b85c6aed698a96b3b6a49ca6f to your computer and use it in GitHub Desktop.
Save mauriziocarioli/4a8dac4b85c6aed698a96b3b6a49ca6f to your computer and use it in GitHub Desktop.
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