Class DeferredFileValueImpl
- java.lang.Object
-
- org.camunda.bpm.engine.variable.impl.value.FileValueImpl
-
- org.camunda.bpm.client.variable.impl.value.DeferredFileValueImpl
-
- All Implemented Interfaces:
java.io.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 java.lang.String
processInstanceId
protected java.lang.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(java.lang.String filename, EngineClient engineClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getValue()
The actual value.boolean
isLoaded()
Indicates whether the file value has been loadedprotected void
load()
void
setProcessInstanceId(java.lang.String processInstanceId)
void
setVariableName(java.lang.String variableName)
java.lang.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 java.lang.String variableName
-
processInstanceId
protected java.lang.String processInstanceId
-
engineClient
protected EngineClient engineClient
-
-
Constructor Detail
-
DeferredFileValueImpl
public DeferredFileValueImpl(java.lang.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 java.io.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(java.lang.String processInstanceId)
-
setVariableName
public void setVariableName(java.lang.String variableName)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFileValueImpl
-
-