Class BaseExecutionVariableResource
- java.lang.Object
-
- org.flowable.rest.service.api.runtime.process.BaseExecutionVariableResource
-
- Direct Known Subclasses:
BaseVariableCollectionResource,ExecutionVariableDataResource,ExecutionVariableResource,ProcessInstanceVariableDataResource,ProcessInstanceVariableResource
public class BaseExecutionVariableResource extends Object
- Author:
- Frederik Heremans
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.core.env.Environmentenvprotected booleanisSerializableVariableAllowedprotected BpmnRestApiInterceptorrestApiInterceptorprotected RestResponseFactoryrestResponseFactoryprotected RuntimeServiceruntimeServiceprotected intvariableType
-
Constructor Summary
Constructors Constructor Description BaseExecutionVariableResource(int variableType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallowProcessInstanceUrl()protected RestVariableconstructRestVariable(String variableName, Object value, RestVariable.RestVariableScope variableScope, String executionId, boolean includeBinary)protected ExecutiongetExecutionFromRequestWithoutAccessCheck(String executionId)protected StringgetExecutionIdParameter()protected byte[]getVariableDataByteArray(Execution execution, String variableName, String scope, javax.servlet.http.HttpServletResponse response)RestVariablegetVariableFromRequest(Execution execution, String variableName, String scope, boolean includeBinary)RestVariablegetVariableFromRequestWithoutAccessCheck(Execution execution, String variableName, RestVariable.RestVariableScope variableScope, boolean includeBinary)protected booleanhasVariableOnScope(Execution execution, String variableName, RestVariable.RestVariableScope scope)protected voidpostConstruct()protected RestVariablesetBinaryVariable(org.springframework.web.multipart.MultipartHttpServletRequest request, Execution execution, boolean isNew)protected RestVariablesetSimpleVariable(RestVariable restVariable, Execution execution, boolean isNew)protected voidsetVariable(Execution execution, String name, Object value, RestVariable.RestVariableScope scope, boolean isNew)
-
-
-
Field Detail
-
env
@Autowired protected org.springframework.core.env.Environment env
-
restResponseFactory
@Autowired protected RestResponseFactory restResponseFactory
-
runtimeService
@Autowired protected RuntimeService runtimeService
-
restApiInterceptor
@Autowired(required=false) protected BpmnRestApiInterceptor restApiInterceptor
-
isSerializableVariableAllowed
protected boolean isSerializableVariableAllowed
-
variableType
protected final int variableType
-
-
Method Detail
-
postConstruct
@PostConstruct protected void postConstruct()
-
getVariableDataByteArray
protected byte[] getVariableDataByteArray(Execution execution, String variableName, String scope, javax.servlet.http.HttpServletResponse response)
-
setBinaryVariable
protected RestVariable setBinaryVariable(org.springframework.web.multipart.MultipartHttpServletRequest request, Execution execution, boolean isNew)
-
setSimpleVariable
protected RestVariable setSimpleVariable(RestVariable restVariable, Execution execution, boolean isNew)
-
setVariable
protected void setVariable(Execution execution, String name, Object value, RestVariable.RestVariableScope scope, boolean isNew)
-
hasVariableOnScope
protected boolean hasVariableOnScope(Execution execution, String variableName, RestVariable.RestVariableScope scope)
-
getVariableFromRequest
public RestVariable getVariableFromRequest(Execution execution, String variableName, String scope, boolean includeBinary)
-
getVariableFromRequestWithoutAccessCheck
public RestVariable getVariableFromRequestWithoutAccessCheck(Execution execution, String variableName, RestVariable.RestVariableScope variableScope, boolean includeBinary)
-
constructRestVariable
protected RestVariable constructRestVariable(String variableName, Object value, RestVariable.RestVariableScope variableScope, String executionId, boolean includeBinary)
-
getExecutionFromRequestWithoutAccessCheck
protected Execution getExecutionFromRequestWithoutAccessCheck(String executionId)
-
getExecutionIdParameter
protected String getExecutionIdParameter()
-
allowProcessInstanceUrl
protected boolean allowProcessInstanceUrl()
-
-