Class TaskBuilder

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

    public final class TaskBuilder
    extends Object
    implements io.vertigo.core.lang.Builder<Task>
    Builder to build a task.
    Author:
    pchretien
    • Method Detail

      • addValue

        public TaskBuilder addValue​(String attributeName,
                                    Object value)
        adds a value to an attribute.
        Parameters:
        attributeName - the name of the attribute
        value - the values
        Returns:
        this builder
      • addContextProperty

        public TaskBuilder addContextProperty​(String contextProperty,
                                              String value)
        adds a property to the execution context.
        Parameters:
        contextProperty - the name of the context property
        value - the values
        Returns:
        this builder
      • build

        public Task build()
        Specified by:
        build in interface io.vertigo.core.lang.Builder<Task>