All URIs are relative to https://localhost:9080/activiti-app/api
Method | HTTP request | Description |
---|---|---|
getFormEditorJsonUsingGET | GET /enterprise/forms/{formId}/editorJson | Get form content |
getFormHistoryUsingGET | GET /enterprise/editor/form-models/{formId}/history/{formHistoryId} | Get form history |
getFormUsingGET | GET /enterprise/editor/form-models/{formId} | Get a form model |
getFormUsingGET1 | GET /enterprise/forms/{formId} | Get a form |
getFormsUsingGET | GET /enterprise/editor/form-models/values | Get forms |
getFormsUsingGET1 | GET /enterprise/editor/form-models | List form models |
getFormsUsingGET2 | GET /enterprise/forms | Query forms |
saveFormUsingPUT | PUT /enterprise/editor/form-models/{formId} | Update form model content |
validateModelUsingPUT | PUT /enterprise/editor/form-models/{formId}/validate | Validate form model content |
FormDefinitionRepresentation getFormEditorJsonUsingGET(formId)
Get form content
// 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.FormModelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
FormModelsApi apiInstance = new FormModelsApi();
Long formId = 789L; // Long | formId
try {
FormDefinitionRepresentation result = apiInstance.getFormEditorJsonUsingGET(formId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormModelsApi#getFormEditorJsonUsingGET");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
formId | Long | formId |
- Content-Type: application/json
- Accept: application/json
FormRepresentation getFormHistoryUsingGET(formId, formHistoryId)
Get form history
// 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.FormModelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
FormModelsApi apiInstance = new FormModelsApi();
Long formId = 789L; // Long | formId
Long formHistoryId = 789L; // Long | formHistoryId
try {
FormRepresentation result = apiInstance.getFormHistoryUsingGET(formId, formHistoryId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormModelsApi#getFormHistoryUsingGET");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
formId | Long | formId | |
formHistoryId | Long | formHistoryId |
- Content-Type: application/json
- Accept: application/json
FormRepresentation getFormUsingGET(formId)
Get a form model
// 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.FormModelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
FormModelsApi apiInstance = new FormModelsApi();
Long formId = 789L; // Long | formId
try {
FormRepresentation result = apiInstance.getFormUsingGET(formId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormModelsApi#getFormUsingGET");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
formId | Long | formId |
- Content-Type: application/json
- Accept: application/json
RuntimeFormRepresentation getFormUsingGET1(formId)
Get a 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.FormModelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
FormModelsApi apiInstance = new FormModelsApi();
Long formId = 789L; // Long | formId
try {
RuntimeFormRepresentation result = apiInstance.getFormUsingGET1(formId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormModelsApi#getFormUsingGET1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
formId | Long | formId |
- Content-Type: application/json
- Accept: application/json
List<FormRepresentation> getFormsUsingGET(formId)
Get forms
// 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.FormModelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
FormModelsApi apiInstance = new FormModelsApi();
List<String> formId = Arrays.asList("formId_example"); // List<String> | formId
try {
List<FormRepresentation> result = apiInstance.getFormsUsingGET(formId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormModelsApi#getFormsUsingGET");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
formId | List<String> | formId |
- Content-Type: application/json
- Accept: application/json
ResultListDataRepresentationFormRepresentation getFormsUsingGET1()
List form models
// 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.FormModelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
FormModelsApi apiInstance = new FormModelsApi();
try {
ResultListDataRepresentationFormRepresentation result = apiInstance.getFormsUsingGET1();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormModelsApi#getFormsUsingGET1");
e.printStackTrace();
}
This endpoint does not need any parameter.
ResultListDataRepresentationFormRepresentation
- Content-Type: application/json
- Accept: application/json
ResultListDataRepresentationRuntimeFormRepresentation getFormsUsingGET2(nameLike, appId, tenantId, start, sort, order, size)
Query forms
// 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.FormModelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
FormModelsApi apiInstance = new FormModelsApi();
String nameLike = "nameLike_example"; // String | nameLike
Long appId = 789L; // Long | appId
Long tenantId = 789L; // Long | tenantId
Integer start = 56; // Integer | start
String sort = "sort_example"; // String | sort
String order = "order_example"; // String | order
Integer size = 56; // Integer | size
try {
ResultListDataRepresentationRuntimeFormRepresentation result = apiInstance.getFormsUsingGET2(nameLike, appId, tenantId, start, sort, order, size);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormModelsApi#getFormsUsingGET2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
nameLike | String | nameLike | [optional] |
appId | Long | appId | [optional] |
tenantId | Long | tenantId | [optional] |
start | Integer | start | [optional] |
sort | String | sort | [optional] |
order | String | order | [optional] |
size | Integer | size | [optional] |
ResultListDataRepresentationRuntimeFormRepresentation
- Content-Type: application/json
- Accept: application/json
FormRepresentation saveFormUsingPUT(formId, saveRepresentation)
Update form model content
// 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.FormModelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
FormModelsApi apiInstance = new FormModelsApi();
Long formId = 789L; // Long | ID of the form to update
FormSaveRepresentation saveRepresentation = new FormSaveRepresentation(); // FormSaveRepresentation | saveRepresentation
try {
FormRepresentation result = apiInstance.saveFormUsingPUT(formId, saveRepresentation);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormModelsApi#saveFormUsingPUT");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
formId | Long | ID of the form to update | |
saveRepresentation | FormSaveRepresentation | saveRepresentation |
- Content-Type: application/json
- Accept: application/json
List<ValidationErrorRepresentation> validateModelUsingPUT(formId, saveRepresentation)
Validate form model content
The model content to be validated must be specified in the POST body
// 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.FormModelsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
FormModelsApi apiInstance = new FormModelsApi();
Long formId = 789L; // Long | formId
FormSaveRepresentation saveRepresentation = new FormSaveRepresentation(); // FormSaveRepresentation | saveRepresentation
try {
List<ValidationErrorRepresentation> result = apiInstance.validateModelUsingPUT(formId, saveRepresentation);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FormModelsApi#validateModelUsingPUT");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
formId | Long | formId | |
saveRepresentation | FormSaveRepresentation | saveRepresentation |
List<ValidationErrorRepresentation>
- Content-Type: application/json
- Accept: application/json