Class NotifyChildFinishedWork


  • public class NotifyChildFinishedWork
    extends TenantAwareBonitaWork
    Work that notify a container that a flow node is in completed state e.g. when a flow node of a process finish we evaluate the outgoing transitions of this flow node.
    Author:
    Baptiste Mesta, Celine Souchet
    • Method Detail

      • getClassLoader

        protected java.lang.ClassLoader getClassLoader​(java.util.Map<java.lang.String,​java.lang.Object> context)
                                                throws SBonitaException
        Throws:
        SBonitaException
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • canBeRecoveredByTheRecoveryMechanism

        public boolean canBeRecoveredByTheRecoveryMechanism()
        Overrides:
        canBeRecoveredByTheRecoveryMechanism in class BonitaWork
        Returns:
        true if the RecoveryService can recover this kind of failure