use of org.activiti.engine.impl.persistence.entity.VariableInstanceEntity in project Activiti by Activiti.
the class GetTasksLocalVariablesCmd method execute.
@Override
public List<VariableInstance> execute(CommandContext commandContext) {
if (taskIds == null) {
throw new ActivitiIllegalArgumentException("taskIds is null");
}
if (taskIds.isEmpty()) {
throw new ActivitiIllegalArgumentException("Set of taskIds is empty");
}
List<VariableInstance> instances = new ArrayList<VariableInstance>();
List<VariableInstanceEntity> entities = commandContext.getVariableInstanceEntityManager().findVariableInstancesByTaskIds(taskIds);
for (VariableInstanceEntity entity : entities) {
entity.getValue();
instances.add(entity);
}
return instances;
}
use of org.activiti.engine.impl.persistence.entity.VariableInstanceEntity in project Activiti by Activiti.
the class GetExecutionsVariablesCmd method execute.
@Override
public List<VariableInstance> execute(CommandContext commandContext) {
// Verify existance of executions
if (executionIds == null) {
throw new ActivitiIllegalArgumentException("executionIds is null");
}
if (executionIds.isEmpty()) {
throw new ActivitiIllegalArgumentException("Set of executionIds is empty");
}
List<VariableInstance> instances = new ArrayList<VariableInstance>();
List<VariableInstanceEntity> entities = commandContext.getVariableInstanceEntityManager().findVariableInstancesByExecutionIds(executionIds);
for (VariableInstanceEntity entity : entities) {
entity.getValue();
instances.add(entity);
}
return instances;
}
Aggregations