Class ServiceWorkflow
java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceWorkflow
Service to manage requests related to workflows.
- Author:
- svu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetActionForm(String appId, String instanceId, String role, String action, RestCallback<WorkflowFormActionDTO> callback) Retrieves the action form for a workflow instance.voidgetDataInstances(String appId, String userRole, RestCallback<WorkflowDataDTO> callback) Retrieves data instances for a given role.voidgetPresentationForm(String appId, String instanceId, String role, RestCallback<WorkflowInstancePresentationFormDTO> callback) Retrieves the presentation form for a workflow instance.voidgetUserField(String appId, String instanceId, String actionName, String fieldName, String role, RestCallback<List<BaseDTO>> callback) Retrieves user field data for a workflow.voidgetWorkflowInstances(String appId, String userRole, int callNumber, RestCallback<StreamingList<WorkflowInstanceDTO>> callback) Retrieves workflow instances for a given role and call number.Methods inherited from class org.silverpeas.mobile.shared.services.rest.AbstractService
asBoolean, delete, encode, escapeJson, get, getText, initContext, mapArray, post, put, request, request, requestJson, requestText, toJsonArray
-
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
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).
-