Ejemplo n.º 1
0
 public static void notifySessionScoreUpdate(
     Long processTimeStamp,
     String sessionID,
     List<String> involvedUsers,
     String modelSetID,
     Map<String, Object> simulationSessionData,
     String processID,
     String userID,
     Long sessionScore) {
   SessionScoreUpdateEvent event =
       new SessionScoreUpdateEvent(
           processTimeStamp,
           sessionID,
           involvedUsers,
           modelSetID,
           simulationSessionData,
           processID,
           userID,
           sessionScore);
   try {
     RestNotifier.getCoreFacade().receiveSessionScoreUpdateEvent(event);
     DebugMessages.println(
         TimeStamp.getCurrentTime(),
         RestNotifier.class.getSimpleName(),
         "SessionScoreUpdateEvent sent");
   } catch (LpRestException e) {
     DebugMessages.println(
         TimeStamp.getCurrentTime(),
         RestNotifier.class.getSimpleName(),
         "Error in RestNotifier:notifySessionScoreUpdate method");
   }
 }
Ejemplo n.º 2
0
 public static void notifyTaskStart(
     Long processTimeStamp,
     String sessionID,
     List<String> involvedUsers,
     String modelSetID,
     Map<String, Object> simulationSessionData,
     String processID,
     String taskID,
     String taskDefinitionID,
     List<String> assignedUsers) {
   TaskStartEvent event =
       new TaskStartEvent(
           processTimeStamp,
           sessionID,
           involvedUsers,
           modelSetID,
           simulationSessionData,
           processID,
           taskID,
           taskDefinitionID,
           assignedUsers);
   try {
     RestNotifier.getCoreFacade().receiveTaskStartEvent(event);
     DebugMessages.println(
         TimeStamp.getCurrentTime(), RestNotifier.class.getSimpleName(), "TaskStartEvent sent");
   } catch (LpRestException e) {
     DebugMessages.println(
         TimeStamp.getCurrentTime(),
         RestNotifier.class.getSimpleName(),
         "Error in RestNotifier:notifyTaskStart method");
   }
 }
Ejemplo n.º 3
0
 public static void notifyProcessEnd(
     Long processTimeStamp,
     List<String> involvedUsers,
     String sessionID,
     String modelSetID,
     Map<String, Object> simulationSessionData,
     String processID,
     String processDefinitionID) {
   ProcessEndEvent event =
       new ProcessEndEvent(
           processTimeStamp,
           sessionID,
           involvedUsers,
           modelSetID,
           simulationSessionData,
           processID,
           processDefinitionID);
   try {
     RestNotifier.getCoreFacade().receiveProcessEndEvent(event);
     DebugMessages.println(
         TimeStamp.getCurrentTime(), RestNotifier.class.getSimpleName(), "ProcessStopEvent sent");
   } catch (LpRestException e) {
     DebugMessages.println(
         TimeStamp.getCurrentTime(),
         RestNotifier.class.getSimpleName(),
         "Error in RestNotifier:notifyProcessStop method");
   }
 }
Ejemplo n.º 4
0
 public static void notifyTaskEndDemo(Long processTimeStamp, TaskEndEvent event) {
   try {
     RestNotifier.getCoreFacade().receiveTaskEndEvent(event);
     DebugMessages.println(
         TimeStamp.getCurrentTime(), RestNotifier.class.getSimpleName(), "TaskEndEvent sent");
   } catch (LpRestException e) {
     DebugMessages.println(
         TimeStamp.getCurrentTime(),
         RestNotifier.class.getSimpleName(),
         "Error in RestNotifier:notifyTaskEnd method");
   }
 }