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 Environmentprotected booleanprotected BpmnRestApiInterceptorprotected RestResponseFactoryprotected RuntimeServiceprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected booleanprotected RestVariableconstructRestVariable(String variableName, Object value, RestVariable.RestVariableScope variableScope, String executionId, boolean includeBinary) protected ExecutiongetExecutionFromRequestWithoutAccessCheck(String executionId) protected Stringprotected 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 booleanhasVariableOnScope(Execution execution, String variableName, RestVariable.RestVariableScope scope) protected RestVariablesetBinaryVariable(MultipartHttpServletRequest request, Execution execution, boolean isNew, boolean async) protected RestVariablesetSimpleVariable(RestVariable restVariable, Execution execution, boolean isNew, boolean async) protected voidsetVariable(Execution execution, String name, Object value, RestVariable.RestVariableScope scope, boolean isNew, boolean async)
-
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:
afterPropertiesSetin interfaceInitializingBean
-
getVariableDataByteArray
-
setBinaryVariable
protected RestVariable setBinaryVariable(MultipartHttpServletRequest request, Execution execution, boolean isNew, boolean async) -
setSimpleVariable
protected RestVariable setSimpleVariable(RestVariable restVariable, Execution execution, boolean isNew, boolean async) -
setVariable
protected void setVariable(Execution execution, String name, Object value, RestVariable.RestVariableScope scope, boolean isNew, boolean async) -
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()
-