Interface ActionDefinitionService

    • Method Detail

      • list

        List<? extends ActionDefinition> list()
        List all action definitions with details.
        Returns:
        List of action definitions.
      • create

        List<? extends ActionDefinition> create​(InputStream actionText,
                                                Scope scope)
        Create a new action definition.
        Parameters:
        actionText - Text in YAML format (Mistral language) with one or more action definitions.
        scope - Scope of newly created workflows.
        Returns:
        Created action definition.
      • get

        ActionDefinition get​(String identifier)
        Get action definition by its identifier.
        Parameters:
        identifier - Action definition identifier (either ID or name).
        Returns:
        Action definition.
      • delete

        ActionResponse delete​(String identifier)
        Delete action definition by its identifier.
        Parameters:
        identifier - Action definition identifier (either ID or name).
        Returns:
        Action response from the server.