Class ProvisioningAction


  • public abstract class ProvisioningAction
    extends Object
    An action that performs one step of a provisioning operation for a particular Touchpoint.
    Since:
    2.0
    • Constructor Detail

      • ProvisioningAction

        public ProvisioningAction()
    • Method Detail

      • getMemento

        protected Memento getMemento()
      • execute

        public abstract IStatus execute​(Map<String,​Object> parameters)
        Performs the provisioning action.
        Parameters:
        parameters - The action parameters
        Returns:
        A status indicating whether the action was successful
      • undo

        public abstract IStatus undo​(Map<String,​Object> parameters)
        Performs the inverse of this provisioning action. This should reverse any effects from a previous invocation of the execute(Map) method.
        Parameters:
        parameters - The action parameters
        Returns:
        A status indicating whether the action was successful
      • getResult

        public Value<?> getResult()
        This method is meant for provisioning actions that need to communicate the result of their execution to subsequent actions. This method is only invoked by p2 once execute() has been executed.
        Returns:
        the result of the action execution.
        Since:
        2.3
      • setTouchpoint

        public void setTouchpoint​(Touchpoint touchpoint)
      • getTouchpoint

        public Touchpoint getTouchpoint()
        Returns the touchpoint that this action is operating under.
        Returns:
        the touchpoint