public String[] execute(Context context) {
   Declaration[] parameters =
       ((NativeQueryResults) context.getContextManager().getContext("__TEMP__").get(this.localId))
           .getResults()
           .getParameters();
   String[] results = new String[parameters.length];
   int i = 0;
   for (Declaration param : parameters) {
     results[i] = param.getIdentifier();
     i++;
   }
   return results;
 }
Esempio n. 2
0
 public void remove(String identifier) {
   rootShadow.remove(identifier);
 }
Esempio n. 3
0
 public void set(String identifier, Object value) {
   rootShadow.set(identifier, value);
 }
Esempio n. 4
0
 public Object get(String identifier) {
   return rootShadow.get(identifier);
 }
 public void remove(String name) {
   context.remove(name);
 }
 public void set(String identifier, Object value) {
   context.set(identifier, value);
 }
 public Object get(String identifier) {
   return context.get(identifier);
 }
 public String getName() {
   return context.getName();
 }
 public World getContextManager() {
   return context.getContextManager();
 }
 public SessionEntryPoint getWorkingMemoryEntryPoint() {
   return (SessionEntryPoint) context.get(SessionEntryPoint.class.getName());
 }
 public ExecutionResults getExecutionResults() {
   return (ExecutionResults) context.get(ExecutionResults.class.getName());
 }
 public WorkItemManager getWorkItemManager() {
   return (WorkItemManager) context.get(WorkItemManager.class.getName());
 }
 public StatefulKnowledgeSession getStatefulKnowledgesession() {
   return (StatefulKnowledgeSession) context.get(StatefulKnowledgeSession.class.getName());
 }
 public KnowledgeBase getKnowledgeBase() {
   return (KnowledgeBase) context.get(KnowledgeBase.class.getName());
 }
 public void setKnowledgeBuilder(KnowledgeBuilder kbuilder) {
   context.set(KnowledgeBuilder.class.getName(), kbuilder);
 }
 public KnowledgeBuilder getKnowledgeBuilder() {
   return (KnowledgeBuilder) context.get(KnowledgeBuilder.class.getName());
 }