Class TriggerSignalWork

    • Constructor Detail

      • TriggerSignalWork

        public TriggerSignalWork​(long signalId,
                                 java.lang.String signalName)
    • Method Detail

      • work

        public java.util.concurrent.CompletableFuture<java.lang.Void> work​(java.util.Map<java.lang.String,​java.lang.Object> context)
                                                                    throws java.lang.Exception
        Description copied from class: BonitaWork
        Execution code of the work
        Specified by:
        work in class BonitaWork
        Parameters:
        context - a map of context that can be filled by a work to be given to a wrapped work
        Throws:
        java.lang.Exception
      • handleFailure

        public void handleFailure​(java.lang.Throwable e,
                                  java.util.Map<java.lang.String,​java.lang.Object> context)
                           throws java.lang.Exception
        Specified by:
        handleFailure in class BonitaWork
        Throws:
        java.lang.Exception
      • getRecoveryProcedure

        public java.lang.String getRecoveryProcedure()
        Overrides:
        getRecoveryProcedure in class BonitaWork
        Returns:
        how to restart the work if it fails