Class NodeStepNamePredicate

  • All Implemented Interfaces:
    com.google.common.base.Predicate<FlowNode>, Predicate<FlowNode>

    public final class NodeStepNamePredicate
    extends Object
    implements com.google.common.base.Predicate<FlowNode>
    Predicate that matches FlowNodes (specifically StepNodes) with a specific StepDescriptor name. May be used in preference to NodeStepTypePredicate in cases whern dependency structures prevent import of the actual descriptor class (I.E. when writing code in the workflow-api plugin that looks for step types in workflow-cps).
    • Constructor Detail

      • NodeStepNamePredicate

        public NodeStepNamePredicate​(@NonNull
                                     String descriptorId)
    • Method Detail

      • getDescriptorId

        public String getDescriptorId()
      • apply

        public boolean apply​(@Nullable
                             FlowNode input)
        Specified by:
        apply in interface com.google.common.base.Predicate<FlowNode>