context.getStore(Store.CACHE).put(uri.toString(), output);
// ...and add dispose condition
Map jobParameter = new HashMap();
jobParameter.put(Dispose.STORE, new StringValue(Store.stores[Store.CACHE]));
jobParameter.put(Dispose.KEY, new StringValue(uri.toString()));
EventExpression expression = new EventExpression("Update");
expression.addProperty(EventExpression.DEPTH, "0");
expression.addProperty(EventExpression.URI, uri.toString());
Scheduler.getInstance().registerJob(new Job(context.getProcessId()+":"+context.getStep(), new URIValue("dispose"), expression, expression, jobParameter, false, false));
Scheduler.getInstance().saveJobs();
}
resultEntries.put(SimpleProcessor.OUTPUT, output);
// build url to activate this processor on top level