Interface WorkflowContext

All Known Implementing Classes:
WorkflowContextDefaultImpl

public interface WorkflowContext
A WorkflowContext is a container for models and other objects.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Identifier of the default slot.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String slotName)
    returns the object of the given slot name.
     
    void
    set(String slotName, Object value)
    Sets the passed Model the specified slot.
  • Field Details

  • Method Details

    • get

      Object get(String slotName)
      returns the object of the given slot name.
      Parameters:
      slotName - The slot's name.
      Returns:
      The object associated to the specified slot or null if no such slot exists.
    • set

      void set(String slotName, Object value)
      Sets the passed Model the specified slot. Removes the model currently set to the specified slot.
      Parameters:
      slotName - The slot's name.
      value - object to store in the slot (set null to remove the slot)
    • getSlotNames

      String[] getSlotNames()