Class AppService
- java.lang.Object
-
- org.flowable.ui.admin.service.engine.AppService
-
@Service public class AppService extends Object
Service for invoking Flowable REST services.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPP_BY_DEPLOYMENT_URLstatic StringAPP_IMPORT_AND_PUBLISH_AS_NEW_VERSION_URLstatic StringAPP_IMPORT_AND_PUBLISH_URLstatic StringAPP_LIST_URLstatic StringAPP_URLprotected FlowableClientServiceclientUtilstatic StringDECISION_TABLES_URLstatic StringEXPORT_APP_URLstatic StringEXPORT_DEPLOYED_APP_URLstatic StringFORMS_URLstatic StringPROCESS_DEFINITIONS_URL
-
Constructor Summary
Constructors Constructor Description AppService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddParametersToBuilder(org.apache.http.client.utils.URIBuilder builder, Map<String,String[]> parameterMap)voiddeleteAppDeployment(ServerConfig serverConfig, javax.servlet.http.HttpServletResponse httpResponse, String appDeploymentId)com.fasterxml.jackson.databind.JsonNodeexportApp(ServerConfig serverConfig, String deploymentId, javax.servlet.http.HttpServletResponse httpResponse)com.fasterxml.jackson.databind.JsonNodegetAppDefinition(ServerConfig serverConfig, String appDeploymentId)voidgetAppDefinitionByDeployment(ServerConfig serverConfig, javax.servlet.http.HttpServletResponse httpResponse, Map<String,String[]> parameterMap)com.fasterxml.jackson.databind.JsonNodegetDecisionDefinitionsForDeploymentId(ServerConfig serverConfig, String dmnDeploymentId)com.fasterxml.jackson.databind.JsonNodegetFormsForAppDeploymentId(ServerConfig serverConfig, String appDeploymentId)com.fasterxml.jackson.databind.JsonNodegetProcessDefinitionsForDeploymentId(ServerConfig serverConfig, String deploymentId)com.fasterxml.jackson.databind.JsonNodelistAppDefinitions(ServerConfig serverConfig, Map<String,String[]> parameterMap)com.fasterxml.jackson.databind.JsonNoderedeployApp(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, ServerConfig targetServerConfig, String deploymentId)com.fasterxml.jackson.databind.JsonNoderedeployReplaceApp(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, ServerConfig targetServerConfig, String deploymentId, String appId)protected voiduploadAppDefinition(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, String name, byte[] bytes)voiduploadAppDefinition(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, String name, InputStream inputStream)protected voiduploadNewAppDefinitionVersion(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, String name, byte[] bytes, String appId)
-
-
-
Field Detail
-
APP_LIST_URL
public static final String APP_LIST_URL
- See Also:
- Constant Field Values
-
APP_URL
public static final String APP_URL
- See Also:
- Constant Field Values
-
PROCESS_DEFINITIONS_URL
public static final String PROCESS_DEFINITIONS_URL
- See Also:
- Constant Field Values
-
DECISION_TABLES_URL
public static final String DECISION_TABLES_URL
- See Also:
- Constant Field Values
-
FORMS_URL
public static final String FORMS_URL
- See Also:
- Constant Field Values
-
APP_IMPORT_AND_PUBLISH_URL
public static final String APP_IMPORT_AND_PUBLISH_URL
- See Also:
- Constant Field Values
-
APP_IMPORT_AND_PUBLISH_AS_NEW_VERSION_URL
public static final String APP_IMPORT_AND_PUBLISH_AS_NEW_VERSION_URL
- See Also:
- Constant Field Values
-
EXPORT_DEPLOYED_APP_URL
public static final String EXPORT_DEPLOYED_APP_URL
- See Also:
- Constant Field Values
-
EXPORT_APP_URL
public static final String EXPORT_APP_URL
- See Also:
- Constant Field Values
-
APP_BY_DEPLOYMENT_URL
public static final String APP_BY_DEPLOYMENT_URL
- See Also:
- Constant Field Values
-
clientUtil
@Autowired protected FlowableClientService clientUtil
-
-
Method Detail
-
listAppDefinitions
public com.fasterxml.jackson.databind.JsonNode listAppDefinitions(ServerConfig serverConfig, Map<String,String[]> parameterMap)
-
getAppDefinition
public com.fasterxml.jackson.databind.JsonNode getAppDefinition(ServerConfig serverConfig, String appDeploymentId)
-
getAppDefinitionByDeployment
public void getAppDefinitionByDeployment(ServerConfig serverConfig, javax.servlet.http.HttpServletResponse httpResponse, Map<String,String[]> parameterMap)
-
deleteAppDeployment
public void deleteAppDeployment(ServerConfig serverConfig, javax.servlet.http.HttpServletResponse httpResponse, String appDeploymentId)
-
getProcessDefinitionsForDeploymentId
public com.fasterxml.jackson.databind.JsonNode getProcessDefinitionsForDeploymentId(ServerConfig serverConfig, String deploymentId)
-
getDecisionDefinitionsForDeploymentId
public com.fasterxml.jackson.databind.JsonNode getDecisionDefinitionsForDeploymentId(ServerConfig serverConfig, String dmnDeploymentId)
-
getFormsForAppDeploymentId
public com.fasterxml.jackson.databind.JsonNode getFormsForAppDeploymentId(ServerConfig serverConfig, String appDeploymentId)
-
uploadAppDefinition
public void uploadAppDefinition(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, String name, InputStream inputStream) throws IOException- Throws:
IOException
-
exportApp
public com.fasterxml.jackson.databind.JsonNode exportApp(ServerConfig serverConfig, String deploymentId, javax.servlet.http.HttpServletResponse httpResponse) throws IOException
- Throws:
IOException
-
redeployApp
public com.fasterxml.jackson.databind.JsonNode redeployApp(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, ServerConfig targetServerConfig, String deploymentId) throws IOException- Throws:
IOException
-
redeployReplaceApp
public com.fasterxml.jackson.databind.JsonNode redeployReplaceApp(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, ServerConfig targetServerConfig, String deploymentId, String appId) throws IOException- Throws:
IOException
-
uploadAppDefinition
protected void uploadAppDefinition(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, String name, byte[] bytes) throws IOException- Throws:
IOException
-
uploadNewAppDefinitionVersion
protected void uploadNewAppDefinitionVersion(javax.servlet.http.HttpServletResponse httpResponse, ServerConfig serverConfig, String name, byte[] bytes, String appId) throws IOException- Throws:
IOException
-
-