Class BaseExecutionVariableResource
java.lang.Object
org.flowable.rest.service.api.runtime.process.BaseExecutionVariableResource
- All Implemented Interfaces:
InitializingBean
- Direct Known Subclasses:
BaseVariableCollectionResource
,ExecutionVariableDataResource
,ExecutionVariableResource
,ProcessInstanceVariableDataResource
,ProcessInstanceVariableResource
- Author:
- Frederik Heremans
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Environment
protected boolean
protected BpmnRestApiInterceptor
protected RestResponseFactory
protected RuntimeService
protected final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
protected RestVariable
constructRestVariable
(String variableName, Object value, RestVariable.RestVariableScope variableScope, String executionId, boolean includeBinary) protected Execution
getExecutionFromRequestWithoutAccessCheck
(String executionId) protected String
protected byte[]
getVariableDataByteArray
(Execution execution, String variableName, String scope, jakarta.servlet.http.HttpServletResponse response) getVariableFromRequest
(Execution execution, String variableName, String scope, boolean includeBinary) getVariableFromRequestWithoutAccessCheck
(Execution execution, String variableName, RestVariable.RestVariableScope variableScope, boolean includeBinary) protected boolean
hasVariableOnScope
(Execution execution, String variableName, RestVariable.RestVariableScope scope) protected RestVariable
setBinaryVariable
(MultipartHttpServletRequest request, Execution execution, boolean isNew) protected RestVariable
setSimpleVariable
(RestVariable restVariable, Execution execution, boolean isNew) protected void
setVariable
(Execution execution, String name, Object value, RestVariable.RestVariableScope scope, boolean isNew)
-
Field Details
-
env
-
restResponseFactory
-
runtimeService
-
restApiInterceptor
-
isSerializableVariableAllowed
protected boolean isSerializableVariableAllowed -
variableType
protected final int variableType
-
-
Constructor Details
-
BaseExecutionVariableResource
public BaseExecutionVariableResource(int variableType)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
getVariableDataByteArray
-
setBinaryVariable
protected RestVariable setBinaryVariable(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
-
getExecutionIdParameter
-
allowProcessInstanceUrl
protected boolean allowProcessInstanceUrl()
-