Last active
January 15, 2020 19:05
-
-
Save mauriziocarioli/4a8dac4b85c6aed698a96b3b6a49ca6f to your computer and use it in GitHub Desktop.
SLA Violated event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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