use of org.activiti.engine.impl.interceptor.CommandContext in project Activiti by Activiti.
the class TaskEntity method setTaskDefinitionKey.
public void setTaskDefinitionKey(String taskDefinitionKey) {
this.taskDefinitionKey = taskDefinitionKey;
CommandContext commandContext = Context.getCommandContext();
if (commandContext != null) {
commandContext.getHistoryManager().recordTaskDefinitionKeyChange(this, taskDefinitionKey);
}
}
use of org.activiti.engine.impl.interceptor.CommandContext in project Activiti by Activiti.
the class TaskEntity method setParentTaskId.
public void setParentTaskId(String parentTaskId) {
this.parentTaskId = parentTaskId;
CommandContext commandContext = Context.getCommandContext();
if (commandContext != null) {
commandContext.getHistoryManager().recordTaskParentTaskIdChange(id, parentTaskId);
}
}
use of org.activiti.engine.impl.interceptor.CommandContext in project Activiti by Activiti.
the class TaskEntity method setName.
// special setters //////////////////////////////////////////////////////////
public void setName(String taskName) {
this.name = taskName;
CommandContext commandContext = Context.getCommandContext();
if (commandContext != null) {
commandContext.getHistoryManager().recordTaskNameChange(id, taskName);
}
}
use of org.activiti.engine.impl.interceptor.CommandContext in project Activiti by Activiti.
the class TaskEntity method setFormKey.
public void setFormKey(String formKey) {
this.formKey = formKey;
CommandContext commandContext = Context.getCommandContext();
if (commandContext != null) {
commandContext.getHistoryManager().recordTaskFormKeyChange(id, formKey);
}
}
use of org.activiti.engine.impl.interceptor.CommandContext in project Activiti by Activiti.
the class TaskEntity method getSpecificVariable.
// Override from VariableScopeImpl
// Overriden to avoid fetching *all* variables (as is the case in the super call)
@Override
protected VariableInstanceEntity getSpecificVariable(String variableName) {
CommandContext commandContext = Context.getCommandContext();
if (commandContext == null) {
throw new ActivitiException("lazy loading outside command context");
}
VariableInstanceEntity variableInstance = commandContext.getVariableInstanceEntityManager().findVariableInstanceByTaskAndName(id, variableName);
return variableInstance;
}
Aggregations