Exemplo n.º 1
0
 @Override
 public void run(final Task<?> task) {
   _after.run(task);
   getTraceBuilder()
       .addRelationship(
           Relationship.POTENTIAL_PARENT_OF,
           getShallowTraceBuilder(),
           task.getShallowTraceBuilder());
 }
Exemplo n.º 2
0
 @Override
 public void run(Supplier<Task<?>> taskSupplier) {
   _after.run(
       () -> {
         Task<?> task = taskSupplier.get();
         if (task != null) {
           getTraceBuilder()
               .addRelationship(
                   Relationship.POTENTIAL_PARENT_OF,
                   getShallowTraceBuilder(),
                   task.getShallowTraceBuilder());
         }
         return task;
       });
 }