Interface ITriggerDataDescriptor

All Known Subinterfaces:
IBaseTrigger<TData>, IBeanValidatingTrigger<TData>, IBuiltinTriggerType<TData>, IDefaultClientHandlerTrigger<TData>, IFcCatchErrorDescriptors, IFcDoiVerifiedDescriptors, IFcFormSubmitButtonDescriptors, IFcInvitationErrorDescriptors, IFcInvitationSentDescriptors, IFcManualDescriptors, IFcQualifiedFormSubmitButtonDescriptors, IFcStateTimerDescriptors, IFcTimePointDescriptors, IOfficialHelpPageTrigger<TData>, IPluginTriggerHandler<TData>, ISemverUpdatingTrigger<TData>, ISingleBaseBuiltinTriggerPrototype<TData>, ISingleBaseTriggerPrototype<TData>, ISingleBuiltinTriggerPrototype<TData>, ISingleTriggerPrototype<TData>, ISpecificTriggerListener<TData>, ITriggerHandler<TData>
All Known Implementing Classes:
APluginTriggerHandler, FcCatchErrorHandler, FcDoiVerifiedHandler, FcFormSubmitButtonHandler, FcInvitationErrorHandler, FcInvitationSentHandler, FcManualHandler, FcQualifiedFormSubmitButtonHandler, FcStateTimerHandler, FcTimePointHandler

public interface ITriggerDataDescriptor
Each trigger may provide a set of data that is made available via placeholders when the task is executed. This interface contains the descriptors that describe the type of data that is created in case the action succeeds and fails. This descriptor is used to show the user in the designer an overview of the available results.

You can create the descriptor on demand when the methods of this interface are called, but no guarantees are made as to whether or how much the descriptors are cached. The value descriptors created by the default ValueDescriptorFactory are immutable, so you may create them once and store them in a static field. Use ValueDescriptorFactory#getInstance() for creating the descriptors.

  • Method Details

    • getTriggerDataDescriptor

      IValueDescriptor<?,? extends IValueBuilder<?>> getTriggerDataDescriptor(IValueDescriptorFactory factory)
      Creates the value descriptor for that data that is made available to the workflow when a task with this trigger starts.
      Parameters:
      factory - Factory that may be used for creating the descriptor. Instead of the factory passed in to this method, you may also use ValueDescriptorFactory.getInstance() if you wish to cache the descriptor in a static or instance field.
      Returns:
      The value descriptor for the data that is made available to the workflow when the a task with this trigger is executed.
      See Also: