Class TaskDefinitionBuilder

  • All Implemented Interfaces:
    io.vertigo.core.lang.Builder<TaskDefinition>

    public final class TaskDefinitionBuilder
    extends Object
    implements io.vertigo.core.lang.Builder<TaskDefinition>
    Builder of taskDefinition.
    Author:
    fconstantin, pchretien
    • Method Detail

      • withEngine

        public TaskDefinitionBuilder withEngine​(Class<? extends TaskEngine> taskEngineClass)
        Defines the engine, used at runtime to process the task.
        Parameters:
        taskEngineClass - Class running the task
        Returns:
        this builder
      • withRequest

        public TaskDefinitionBuilder withRequest​(String request)
        Parameters:
        request - the request used to configure the task. (ldap request, sql request...)
        Returns:
        this builder
      • withPackageName

        public TaskDefinitionBuilder withPackageName​(String packageName)
        Parameters:
        packageName - the name of the package
        Returns:
        this builder
      • withDataSpace

        public TaskDefinitionBuilder withDataSpace​(String dataSpace)
        Sets the dataSpace
        Parameters:
        dataSpace - the dataSpace
        Returns:
        this builder
      • addInAttribute

        public TaskDefinitionBuilder addInAttribute​(String attributeName,
                                                    SmartTypeDefinition smartTypeDefinition,
                                                    io.vertigo.core.lang.Cardinality cardinality)
        Adds an input attribute.
        Parameters:
        attributeName - the name of the attribute
        domain - the domain of the attribute
        cardinality - cadinality (one, optional, many)
        Returns:
        this builder
      • withOutAttribute

        public TaskDefinitionBuilder withOutAttribute​(String attributeName,
                                                      SmartTypeDefinition smartTypeDefinition,
                                                      io.vertigo.core.lang.Cardinality cardinality)
        Adds an output attribute.
        Parameters:
        attributeName - the name of the attribute
        smartType - the smartType of the attribute
        cardinality - cardinality of the attribute see Cardinality
        Returns:
        this builder