Class DeferredFileValueImpl
- java.lang.Object
-
- org.camunda.bpm.engine.variable.impl.value.FileValueImpl
-
- org.camunda.bpm.client.variable.impl.value.DeferredFileValueImpl
-
- All Implemented Interfaces:
Serializable
,DeferredFileValue
,FileValue
,TypedValue
public class DeferredFileValueImpl extends FileValueImpl implements DeferredFileValue
- Author:
- Tassilo Weidner
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected EngineClient
engineClient
protected boolean
isLoaded
protected static ExternalTaskClientLogger
LOG
protected String
processInstanceId
protected String
variableName
-
Fields inherited from class org.camunda.bpm.engine.variable.impl.value.FileValueImpl
encoding, filename, isTransient, mimeType, type, value
-
-
Constructor Summary
Constructors Constructor Description DeferredFileValueImpl(String filename, EngineClient engineClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getValue()
The actual value.boolean
isLoaded()
Indicates whether the file value has been loadedprotected void
load()
void
setProcessInstanceId(String processInstanceId)
void
setVariableName(String variableName)
String
toString()
-
Methods inherited from class org.camunda.bpm.engine.variable.impl.value.FileValueImpl
getByteArray, getEncoding, getEncodingAsCharset, getFilename, getMimeType, getType, isTransient, setEncoding, setEncoding, setMimeType, setTransient, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.variable.value.FileValue
getEncoding, getEncodingAsCharset, getFilename, getMimeType
-
Methods inherited from interface org.camunda.bpm.engine.variable.value.TypedValue
getType, isTransient
-
-
-
-
Field Detail
-
LOG
protected static final ExternalTaskClientLogger LOG
-
isLoaded
protected boolean isLoaded
-
variableName
protected String variableName
-
processInstanceId
protected String processInstanceId
-
engineClient
protected EngineClient engineClient
-
-
Constructor Detail
-
DeferredFileValueImpl
public DeferredFileValueImpl(String filename, EngineClient engineClient)
-
-
Method Detail
-
load
protected void load()
-
isLoaded
public boolean isLoaded()
Description copied from interface:DeferredFileValue
Indicates whether the file value has been loaded- Specified by:
isLoaded
in interfaceDeferredFileValue
- Returns:
-
true
if file value has been loaded -
false
if file value has not been loaded
-
-
getValue
public InputStream getValue()
Description copied from interface:TypedValue
The actual value. May be null in case the value is null.- Specified by:
getValue
in interfaceFileValue
- Specified by:
getValue
in interfaceTypedValue
- Overrides:
getValue
in classFileValueImpl
- Returns:
- the value
-
setProcessInstanceId
public void setProcessInstanceId(String processInstanceId)
-
setVariableName
public void setVariableName(String variableName)
-
toString
public String toString()
- Overrides:
toString
in classFileValueImpl
-
-