Class AixFlowAction2

java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.bgerp.action.base.BaseAction
org.bgerp.plugin.ai.aixflow.action.AixFlowAction2

public class AixFlowAction2 extends BaseAction
  • Constructor Details

    • AixFlowAction2

      public AixFlowAction2()
  • Method Details

    • unspecified

      public org.apache.struts.action.ActionForward unspecified(DynActionForm form, ConnectionSet conSet) throws Exception
      Description copied from class: BaseAction
      Default action method if no parameter 'action' passed. Overwrite and implement.
      Overrides:
      unspecified in class BaseAction
      Parameters:
      form -
      conSet -
      Returns:
      Throws:
      Exception
    • point3

      public org.apache.struts.action.ActionForward point3(DynActionForm form, ConnectionSet conSet) throws Exception
      Handles the point3.jsp page request
      Parameters:
      form - the form
      conSet - the connection set
      Returns:
      the point3.jsp page
      Throws:
      Exception - if an error occurs
    • saveFiles

      public org.apache.struts.action.ActionForward saveFiles(DynActionForm form, ConnectionSet conSet) throws Exception
      Saves temporary files to permanent storage using FileDataDAO.
      Parameters:
      form - the form with temporary file IDs
      conSet - the connection set
      Returns:
      JSON response
      Throws:
      Exception - if an error occurs
    • listFiles

      public org.apache.struts.action.ActionForward listFiles(DynActionForm form, ConnectionSet conSet) throws Exception
      Lists files saved in the database.
      Parameters:
      form - the form
      conSet - the connection set
      Returns:
      JSON response with list of files
      Throws:
      Exception - if an error occurs
    • searchFiles

      public org.apache.struts.action.ActionForward searchFiles(DynActionForm form, ConnectionSet conSet) throws Exception
      Searches for files by name.
      Parameters:
      form - the form
      conSet - the connection set
      Returns:
      JSON response with search results
      Throws:
      Exception - if an error occurs
    • deleteFile

      public org.apache.struts.action.ActionForward deleteFile(DynActionForm form, ConnectionSet conSet) throws Exception
      Deletes a file from the system.
      Parameters:
      form - the form with file ID and secret
      conSet - the connection set
      Returns:
      JSON response
      Throws:
      Exception - if an error occurs
    • sendFileToN8n

      public org.apache.struts.action.ActionForward sendFileToN8n(DynActionForm form, ConnectionSet conSet) throws Exception
      Sends a file to n8n for decryption
      Parameters:
      form - the form with file ID and secret
      conSet - the connection set
      Returns:
      JSON response
      Throws:
      Exception - if an error occurs
    • n8nCallback

      public org.apache.struts.action.ActionForward n8nCallback(DynActionForm form, ConnectionSet conSet) throws Exception
      Handles a callback from n8n with task results
      Parameters:
      form - the form with task ID, status, result, and error message
      conSet - the connection set
      Returns:
      JSON response
      Throws:
      Exception - if an error occurs
    • listN8nTasks

      public org.apache.struts.action.ActionForward listN8nTasks(DynActionForm form, ConnectionSet conSet) throws Exception
      Lists n8n tasks for a file
      Parameters:
      form - the form with file ID
      conSet - the connection set
      Returns:
      JSON response with list of tasks
      Throws:
      Exception - if an error occurs
    • listAllN8nTasks

      public org.apache.struts.action.ActionForward listAllN8nTasks(DynActionForm form, ConnectionSet conSet) throws Exception
      Lists all n8n tasks with optional filtering
      Parameters:
      form - the form with optional status filter and limit
      conSet - the connection set
      Returns:
      JSON response with list of tasks
      Throws:
      Exception - if an error occurs
    • requestTaskData

      public org.apache.struts.action.ActionForward requestTaskData(DynActionForm form, ConnectionSet conSet) throws Exception
      Requests task data from n8n
      Parameters:
      form - the form with task ID
      conSet - the connection set
      Returns:
      JSON response with task data
      Throws:
      Exception - if an error occurs
    • deleteTask

      public org.apache.struts.action.ActionForward deleteTask(DynActionForm form, ConnectionSet conSet) throws Exception
      Deletes a task from n8n and from the database
      Parameters:
      form - the form with task ID
      conSet - the connection set
      Returns:
      JSON response
      Throws:
      Exception - if an error occurs