All URIs are relative to https://localhost:9080/activiti-app/api
Method | HTTP request | Description |
---|---|---|
completeTaskFormUsingPOST | POST /enterprise/task-forms/{taskId} | Complete a task form |
getProcessInstanceVariablesUsingGET1 | GET /enterprise/task-forms/{taskId}/variables | Get task variables |
getRestFieldValuesUsingGET1 | GET /enterprise/task-forms/{taskId}/form-values/{field}/{column} | Retrieve column field values |
getRestFieldValuesUsingGET2 | GET /enterprise/task-forms/{taskId}/form-values/{field} | Retrieve populated field values |
getTaskFormUsingGET | GET /enterprise/task-forms/{taskId} | Get a task form |
saveTaskFormUsingPOST | POST /enterprise/task-forms/{taskId}/save-form | Save a task form |
completeTaskFormUsingPOST(taskId, completeTaskFormRepresentation)
Complete a task form
// Import classes:
//import org.activiti.engine.remote.client.ApiClient;
//import org.activiti.engine.remote.client.ApiException;
//import org.activiti.engine.remote.client.Configuration;
//import org.activiti.engine.remote.client.auth.*;
//import org.activiti.engine.remote.client.api.TaskFormsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
TaskFormsApi apiInstance = new TaskFormsApi();
String taskId = "taskId_example"; // String | taskId
CompleteFormRepresentation completeTaskFormRepresentation = new CompleteFormRepresentation(); // CompleteFormRepresentation | completeTaskFormRepresentation
try {
apiInstance.completeTaskFormUsingPOST(taskId, completeTaskFormRepresentation);
} catch (ApiException e) {
System.err.println("Exception when calling TaskFormsApi#completeTaskFormUsingPOST");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | taskId | |
completeTaskFormRepresentation | CompleteFormRepresentation | completeTaskFormRepresentation |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
List<ProcessInstanceVariableRepresentation> getProcessInstanceVariablesUsingGET1(taskId)
Get task variables
// Import classes:
//import org.activiti.engine.remote.client.ApiClient;
//import org.activiti.engine.remote.client.ApiException;
//import org.activiti.engine.remote.client.Configuration;
//import org.activiti.engine.remote.client.auth.*;
//import org.activiti.engine.remote.client.api.TaskFormsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
TaskFormsApi apiInstance = new TaskFormsApi();
String taskId = "taskId_example"; // String | taskId
try {
List<ProcessInstanceVariableRepresentation> result = apiInstance.getProcessInstanceVariablesUsingGET1(taskId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TaskFormsApi#getProcessInstanceVariablesUsingGET1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | taskId |
List<ProcessInstanceVariableRepresentation>
- Content-Type: application/json
- Accept: application/json
List<FormValueRepresentation> getRestFieldValuesUsingGET1(taskId, field, column)
Retrieve column field values
Specific case to retrieve information on a specific column
// Import classes:
//import org.activiti.engine.remote.client.ApiClient;
//import org.activiti.engine.remote.client.ApiException;
//import org.activiti.engine.remote.client.Configuration;
//import org.activiti.engine.remote.client.auth.*;
//import org.activiti.engine.remote.client.api.TaskFormsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
TaskFormsApi apiInstance = new TaskFormsApi();
String taskId = "taskId_example"; // String | taskId
String field = "field_example"; // String | field
String column = "column_example"; // String | column
try {
List<FormValueRepresentation> result = apiInstance.getRestFieldValuesUsingGET1(taskId, field, column);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TaskFormsApi#getRestFieldValuesUsingGET1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | taskId | |
field | String | field | |
column | String | column |
- Content-Type: application/json
- Accept: application/json
List<FormValueRepresentation> getRestFieldValuesUsingGET2(taskId, field)
Retrieve populated field values
Form field values that are populated through a REST backend, can be retrieved via this service
// Import classes:
//import org.activiti.engine.remote.client.ApiClient;
//import org.activiti.engine.remote.client.ApiException;
//import org.activiti.engine.remote.client.Configuration;
//import org.activiti.engine.remote.client.auth.*;
//import org.activiti.engine.remote.client.api.TaskFormsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
TaskFormsApi apiInstance = new TaskFormsApi();
String taskId = "taskId_example"; // String | taskId
String field = "field_example"; // String | field
try {
List<FormValueRepresentation> result = apiInstance.getRestFieldValuesUsingGET2(taskId, field);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TaskFormsApi#getRestFieldValuesUsingGET2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | taskId | |
field | String | field |
- Content-Type: application/json
- Accept: application/json
FormDefinitionRepresentation getTaskFormUsingGET(taskId)
Get a task form
// Import classes:
//import org.activiti.engine.remote.client.ApiClient;
//import org.activiti.engine.remote.client.ApiException;
//import org.activiti.engine.remote.client.Configuration;
//import org.activiti.engine.remote.client.auth.*;
//import org.activiti.engine.remote.client.api.TaskFormsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
TaskFormsApi apiInstance = new TaskFormsApi();
String taskId = "taskId_example"; // String | taskId
try {
FormDefinitionRepresentation result = apiInstance.getTaskFormUsingGET(taskId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TaskFormsApi#getTaskFormUsingGET");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | taskId |
- Content-Type: application/json
- Accept: application/json
saveTaskFormUsingPOST(taskId, saveTaskFormRepresentation)
Save a task form
// Import classes:
//import org.activiti.engine.remote.client.ApiClient;
//import org.activiti.engine.remote.client.ApiException;
//import org.activiti.engine.remote.client.Configuration;
//import org.activiti.engine.remote.client.auth.*;
//import org.activiti.engine.remote.client.api.TaskFormsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
TaskFormsApi apiInstance = new TaskFormsApi();
String taskId = "taskId_example"; // String | taskId
SaveFormRepresentation saveTaskFormRepresentation = new SaveFormRepresentation(); // SaveFormRepresentation | saveTaskFormRepresentation
try {
apiInstance.saveTaskFormUsingPOST(taskId, saveTaskFormRepresentation);
} catch (ApiException e) {
System.err.println("Exception when calling TaskFormsApi#saveTaskFormUsingPOST");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
taskId | String | taskId | |
saveTaskFormRepresentation | SaveFormRepresentation | saveTaskFormRepresentation |
null (empty response body)
- Content-Type: application/json
- Accept: application/json