Class WorkflowReferenceHelper


  • public final class WorkflowReferenceHelper
    extends Object
    Utilities for scanning workflow element model class instances via reflection.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • readDefaultPlaceholders

        public static final <TData> List<IPlaceholderProperty<?,​?>> readDefaultPlaceholders​(Class<?> dataModelClass,
                                                                                                  IReadPlaceholdersParams<?> params)
        Iterates over all fields via reflection and looks for placeholders in string fields.
        Parameters:
        dataModelClass - Class of the element's properties model.
        params - Properties model to scan.
        Returns:
        All placeholders found in the properties model.
      • writeDefaultEntityReferenceDescriptors

        public static int writeDefaultEntityReferenceDescriptors​(Class<?> dataModelClass,
                                                                 IWriteEntityRefsParams<?> params)
        Updates all entity references according to the given query using FORMCYCLE's default implementation for updating entity references. This is the default implementation of IElementHandler.writeEntityReferences(IWriteEntityRefsParams).
        Parameters:
        dataModelClass - Class of the workflow element's properties model.
        params - Query containing the update information
        Returns:
        the number of references that have been updated
      • writeDefaultPlaceholders

        public static final <TData> void writeDefaultPlaceholders​(Class<?> dataModelClass,
                                                                  IWritePlaceholdersParams<?> params)
        Writes back the placeholders to string fields via reflection.
        Parameters:
        dataModelClass - Class of the element's properties model.
        params - Properties model to scan.