public interface Context
Context
represents the runtime state of a program.Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanArgument(int index) |
CallableUnitInfo |
getCallableUnitInfo() |
DebugContext |
getDebugContext() |
BMap<?,?> |
getError() |
double |
getFloatArgument(int index) |
long |
getIntArgument(int index) |
LocalTransactionInfo |
getLocalTransactionInfo() |
WorkerData |
getLocalWorkerData() |
BValue |
getNullableRefArgument(int index) |
String |
getNullableStringArgument(int index) |
WorkerExecutionContext |
getParentWorkerExecutionContext() |
ProgramFile |
getProgramFile() |
Map<String,Object> |
getProperties() |
Object |
getProperty(String key) |
BValue |
getRefArgument(int index) |
BValue[] |
getReturnValues() |
ServiceInfo |
getServiceInfo() |
String |
getStringArgument(int index) |
boolean |
isInTransaction() |
void |
setDebugContext(DebugContext debugContext) |
void |
setError(BMap<?,?> error) |
void |
setProperty(String key,
Object value) |
void |
setReturnValues(BValue... values) |
void |
setServiceInfo(ServiceInfo serviceInfo) |
WorkerExecutionContext getParentWorkerExecutionContext()
CallableUnitInfo getCallableUnitInfo()
WorkerData getLocalWorkerData()
DebugContext getDebugContext()
void setDebugContext(DebugContext debugContext)
ServiceInfo getServiceInfo()
void setServiceInfo(ServiceInfo serviceInfo)
boolean isInTransaction()
BMap<?,?> getError()
void setError(BMap<?,?> error)
ProgramFile getProgramFile()
LocalTransactionInfo getLocalTransactionInfo()
long getIntArgument(int index)
String getStringArgument(int index)
String getNullableStringArgument(int index)
double getFloatArgument(int index)
boolean getBooleanArgument(int index)
BValue getRefArgument(int index)
BValue getNullableRefArgument(int index)
void setReturnValues(BValue... values)
BValue[] getReturnValues()
Copyright © 2018 WSO2. All rights reserved.