How can I stop marking propagation in a Java transforms?

I have a Java transforms in my pipeline, and I would like to stop the propagate of markings.

How can I stop the propagation of Markings in my Java transform ? What is the syntax to use ?

Hi @VincentF.

Is this what are you referring to?

In Java, Marking removal is specified via annotations on the inputs for automatically registered transforms.

@Compute
public void myComputation(
  @StopPropagating(markings = {markingId1, ...}, onBranches = {branch1, ...})
  @StopRequiring(orgMarkings = {orgId1, ...}, onBranches = {branch2, ...})
  @Input("<input_id>")
  FoundryInput input,
  @Output("<output_id>")
  FoundryOutput output)

The @StopPropagating and @StopRequiring annotations take a set of Marking IDs and a set of protected branches on which to apply the Marking removal. When only one Marking or branch is specified you do not need to wrap it in {} (e.g. @StopPropagating(markings = marking1, onBranches = "my-branch")).

Source