nicknack-server/src/main/java/com/github/kmbulebu/nicknack/server/services/impl/PlansEvaluatorServiceImpl.java
protected Action processVariables(Action origAction, Event cause) {
		final ActionResource newAction = new ActionResource();
		final Map<UUID, String> newParameters = new HashMap<>();
		newAction.setAppliesToActionDefinition(origAction.getAppliesToActionDefinition());
		
		for (UUID key : origAction.getAttributes().keySet()) {
			newParameters.put(key,  processVariables(origAction.getAttributes().get(key), cause));
		}
		newAction.setParameters(newParameters);
		return newAction;
	}
protected Action processVariables(Action origAction, Event cause) {
		final ActionResource newAction = new ActionResource();
		final Map<UUID, String> newParameters = new HashMap<>();
		newAction.setAppliesToActionDefinition(origAction.getAppliesToActionDefinition());
		
		for (UUID key : origAction.getAttributes().keySet()) {
			newParameters.put(key,  processVariables(origAction.getAttributes().get(key), cause));
		}
		newAction.setParameters(newParameters);
		return newAction;
	}
TODO I'd like to push a lot of this down into NickNack-core.