Class AttachmentItemChoiceProvider

java.lang.Object
de.xima.fc.workflow.model.choices.AttachmentItemChoiceProvider
All Implemented Interfaces:
de.xima.cmn.validation.spec.IChoiceProviding<AttachmentItem>

public class AttachmentItemChoiceProvider extends Object implements de.xima.cmn.validation.spec.IChoiceProviding<AttachmentItem>
A choice provider for the workflow that finds the available attachment items from the current bean validation context obtained via CDI.

To omit certain types of attachments, include a string parameter named omit*, e.g.

 @SingleChoice(value = AttachmentItemChoiceProvider.class, paramsString = "omitUpload")
 private AttachmentItem attachment;
 
Available parameter names are:
  • omitPreviousNode - omits attachment items of type PREVIOUS_NODE
  • omitSearch - omits attachment items of type SEARCH
  • omitUpload - omits attachment items of type UPLOAD
Since:
8.1.0
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • AttachmentItemChoiceProvider

      public AttachmentItemChoiceProvider()
  • Method Details

    • getChoices

      public List<? extends de.xima.cmn.validation.spec.IChoiceEntry<AttachmentItem>> getChoices(de.xima.cmn.validation.spec.IChoiceProvidingParams params)
      Specified by:
      getChoices in interface de.xima.cmn.validation.spec.IChoiceProviding<AttachmentItem>