use of com.walmartlabs.concord.svm.ThreadId in project concord by walmartlabs.
the class ContextVariables method set.
@Override
public void set(String key, Object value) {
TaskProviders providers = ctx.execution().runtime().getService(TaskProviders.class);
if (providers.hasTask(key)) {
log.warn("Local variable '{}' shadows a task. This may cause issues calling '{}' task in expressions. " + "Avoid using same names for tasks and variables.", key, key);
}
ThreadId threadId = ctx.execution().currentThreadId();
State state = ctx.execution().state();
VMUtils.putLocal(state, threadId, key, value);
}
Aggregations