Class ActionService

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class ActionService
    extends ServiceConfig
    Manage application action calls
    • Constructor Detail

      • ActionService

        public ActionService​(LauncherService launcherService,
                             BaseConfigProperties baseConfigProperties)
        Autowired constructor
        Parameters:
        launcherService - Launcher service
        baseConfigProperties - Base configuration properties
    • Method Detail

      • getAction

        public Action getAction​(String actionId)
                         throws AWException
        Launch action (without target)
        Parameters:
        actionId - Action identifier
        Returns:
        Action
        Throws:
        AWException - Action has not been found
      • launchAction

        public List<ClientAction> launchAction​(String actionId)
        Launch the action
        Parameters:
        actionId - Action identifier
        Returns:
        Client action list
      • launchAction

        public List<ClientAction> launchAction​(Action action)
                                        throws AWException
        Launch action (without target)
        Parameters:
        action - Action to be launched
        Returns:
        Client action list
        Throws:
        AWException - Action error
      • launchError

        public List<ClientAction> launchError​(String actionId,
                                              AWException exception)
        Launch an error (action failed)
        Parameters:
        actionId - Action launched
        exception - Exception with the error
        Returns:
        Client action list
      • launchError

        public List<ClientAction> launchError​(Action action,
                                              AWException exception)
        Launch an error (action failed)
        Parameters:
        action - Action launched
        exception - Exception with the error
        Returns:
        Client action list
      • launchDefaultError

        public List<ClientAction> launchDefaultError​(AWException exception)
        Launch default error action
        Parameters:
        exception - Exception with the error description
        Returns:
        Client action list
      • getExceptionVariables

        public Map<String,​CellData> getExceptionVariables​(AWException exc)
        Retrieve the exception variables
        Parameters:
        exc - Exception
        Returns:
        variableMap