Class ServiceWorkflow

java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceWorkflow

public class ServiceWorkflow extends AbstractService
Service to manage requests related to workflows.
Author:
svu
  • Constructor Details

    • ServiceWorkflow

      public ServiceWorkflow()
  • Method Details

    • getUserField

      public void getUserField(String appId, String instanceId, String actionName, String fieldName, String role, RestCallback<List<BaseDTO>> callback)
      Retrieves user field data for a workflow.
      Parameters:
      appId - The ID of the application.
      instanceId - The ID of the workflow instance.
      actionName - The name of the action.
      fieldName - The name of the field.
      role - The user role.
      callback - The callback to handle the response (list of BaseDTO).
    • getWorkflowInstances

      public void getWorkflowInstances(String appId, String userRole, int callNumber, RestCallback<StreamingList<WorkflowInstanceDTO>> callback)
      Retrieves workflow instances for a given role and call number.
      Parameters:
      appId - The ID of the application.
      userRole - The user role.
      callNumber - The call number.
      callback - The callback to handle the response (StreamingList of WorkflowInstanceDTO).
    • getDataInstances

      public void getDataInstances(String appId, String userRole, RestCallback<WorkflowDataDTO> callback)
      Retrieves data instances for a given role.
      Parameters:
      appId - The ID of the application.
      userRole - The user role.
      callback - The callback to handle the response (WorkflowDataDTO).
    • getPresentationForm

      public void getPresentationForm(String appId, String instanceId, String role, RestCallback<WorkflowInstancePresentationFormDTO> callback)
      Retrieves the presentation form for a workflow instance.
      Parameters:
      appId - The ID of the application.
      instanceId - The ID of the workflow instance.
      role - The user role.
      callback - The callback to handle the response (WorkflowInstancePresentationFormDTO).
    • getActionForm

      public void getActionForm(String appId, String instanceId, String role, String action, RestCallback<WorkflowFormActionDTO> callback)
      Retrieves the action form for a workflow instance.
      Parameters:
      appId - The ID of the application.
      instanceId - The ID of the workflow instance.
      role - The user role.
      action - The action to perform.
      callback - The callback to handle the response (WorkflowFormActionDTO).