public void set(String identifier, Object value) { context.set( identifier, value ); }
public void set(String identifier, Object value) { context.set( identifier, value ); }
public void set(String identifier, Object value) { context.set( identifier, value ); }
public void set(String identifier, Object value) { rootShadow.set(identifier, value); }
public void set(String identifier, Object value) { root.set( identifier, value ); }
public void set(String identifier, Object value) { root.set( identifier, value ); }
public void setKnowledgeBuilder(KnowledgeBuilder kbuilder) { context.set( KnowledgeBuilder.class.getName(), kbuilder ); }
public Void execute(Context context) { context.set(kbuilderConfId, KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration()); return null; }
public WorldImpl() { this.root = new ContextImpl( ROOT, this ); this.root.set( "world", this ); this.contexts = new HashMap<String, Context>(); this.contexts.put( ROOT, this.root ); }
public void set(String identifier, Object value, boolean shadow) { if ( !shadow ) { actualCtx.set( identifier, value ); } else { super.set( identifier,value ); } }
public Void execute(Context context) { NodeData data = (NodeData) context.get( NodeData.NODE_DATA ); data.getRoot().set( identifier, type + ":" + instanceId ); return null; }
public WorkingMemoryEntryPoint execute(Context context) { StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession(); WorkingMemoryEntryPoint ep = ksession.getWorkingMemoryEntryPoint( this.name ); context.set( this.name, ep ); // If I return the command I need to create a serializable version of NamedEntryPoint return null; }
public Void execute(Context context) { NodeData data = (NodeData) context.get( NodeData.NODE_DATA ); data.getRoot().set( this.identifier, this.type + ":" + this.instanceId ); return null; }
public String execute(Context context) { String rowId = UUID.randomUUID().toString(); QueryResultsRow row = ((Iterator<QueryResultsRow>) context.getContextManager().getContext( "__TEMP__" ).get( "Iterator - "+this.localId)).next(); context.getContextManager().getContext( "__TEMP__" ).set("Row - "+rowId+" - "+this.localId, row); return rowId; }
public Void execute(Context context) { context.getContextManager().getContext("__TEMP__").set(identifier, new GridKnowledgeBuilderConfiguration()); return null; } }
public Void execute(Context context) { context.getContextManager().getContext("__TEMP__").set(identifier, new GridKnowledgeBaseConfiguration()); return null; } }
public Void execute(Context context) { context.getContextManager().getContext("__TEMP__").set(identifier, new GridKnowledgeSessionConfiguration()); return null; } }
public Void execute(Context context) { if ( this.contextName == null ) { context.getContextManager().getContext( World.ROOT ).set( this.identifier, ((GenericCommand) this.cmd).execute( context ) ); } else { context.getContextManager().getContext( this.contextName ).set( this.identifier, ((GenericCommand) this.cmd).execute( context ) ); } return null; }
public NodeData() { // Setup ROOT context, this will hold all long lived intances and instanceIds this.contextManager = new ContextManagerImpl(); this.root = new ContextImpl( ROOT, this.contextManager ); ((ContextManagerImpl) this.contextManager).addContext( this.root ); this.root.set( NODE_DATA, this ); // Setup TEMP context, this will hold all short lived instanceId and instances // TODO: TEMP context should have a time/utilisation eviction queue added this.temp = new ContextImplWithEviction( TEMP, this.contextManager, this.root); ((ContextManagerImpl) this.contextManager).addContext( this.temp ); }
public Void execute(Context context) { Iterator<QueryResultsRow> it = ((QueryResults)context.getContextManager().getContext( "__TEMP__" ).get( this.localId )).iterator(); context.getContextManager().getContext( "__TEMP__" ).set( "Iterator - "+this.localId, it); return null; }