Examples of KnowledgeContextResolveFromContextCommand


Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

    }

    public void retract(FactHandle handle) {
        String kresultsId = "kresults_" + this.gsd.getId();
        CommandImpl cmd = new CommandImpl( "execute",
                                           Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( CommandFactory.newRetract( handle ),
                                                                                                                      null,
                                                                                                                      null,
                                                                                                                      this.instanceId,
                                                                                                                      kresultsId )} ) );
View Full Code Here

Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

    public void update(FactHandle handle,
                       Object object) {
        String kresultsId = "kresults_" + this.gsd.getId();
        CommandImpl cmd = new CommandImpl( "execute",
                                           Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new UpdateCommand( handle,
                                                                                                                                         object ),
                                                                                                                      null,
                                                                                                                      null,
                                                                                                                      this.instanceId,
                                                                                                                      kresultsId )} ) );
View Full Code Here

Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

    }

    public FactHandle getFactHandle(Object object) {
        String kresultsId = "kresults_" + this.gsd.getId();
        CommandImpl cmd = new CommandImpl( "execute",
                                           Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new GetFactHandleCommand( object,
                                                                                                                                                true ),
                                                                                                                      null,
                                                                                                                      null,
                                                                                                                      this.instanceId,
                                                                                                                      kresultsId )} ) );
View Full Code Here

Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

    }

    public Object getObject(FactHandle factHandle) {
        String kresultsId = "kresults_" + this.gsd.getId();
        CommandImpl cmd = new CommandImpl( "execute",
                                           Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new GetObjectCommand( factHandle ),
                                                                                                                      null,
                                                                                                                      null,
                                                                                                                      this.instanceId,
                                                                                                                      kresultsId )} ) );
View Full Code Here

Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

    }

    public Collection<Object> getObjects(ObjectFilter filter) {
        String kresultsId = "kresults_" + this.gsd.getId();
        CommandImpl cmd = new CommandImpl( "execute",
                                           Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new GetObjectsCommand( filter ),
                                                                                                                      null,
                                                                                                                      null,
                                                                                                                      this.instanceId,
                                                                                                                      kresultsId )} ) );
View Full Code Here

Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

    }

    public <T extends FactHandle> Collection<T> getFactHandles(ObjectFilter filter) {
        String kresultsId = "kresults_" + this.gsd.getId();
        CommandImpl cmd = new CommandImpl( "execute",
                                           Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new GetFactHandlesCommand( filter ),
                                                                                                                      null,
                                                                                                                      null,
                                                                                                                      this.instanceId,
                                                                                                                      kresultsId )} ) );
View Full Code Here

Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

    }

    public long getFactCount() {
         String kresultsId = "kresults_" + this.gsd.getId();
        CommandImpl cmd = new CommandImpl("execute",
                Arrays.asList(new Object[]{ new KnowledgeContextResolveFromContextCommand( new GetFactCountCommand(),
                                                                                  null,
                                                                                  null,
                                                                                  this.instanceId,
                                                                                  kresultsId )}));
       
View Full Code Here

Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

    public ProcessInstance startProcess(String processId,
                                        Map<String, Object> parameters) {
        String kresultsId = "kresults_" + this.gsd.getId();
        CommandImpl cmd = new CommandImpl( "execute",
                                           Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new StartProcessCommand( processId,
                                                                                                                                               parameters ),
                                                                                                                      null,
                                                                                                                      null,
                                                                                                                      this.instanceId,
                                                                                                                      kresultsId )} ) );
View Full Code Here

Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

  public ProcessInstance createProcessInstance(String processId,
                                           Map<String, Object> parameters) {
    String kresultsId = "kresults_" + this.gsd.getId();
    CommandImpl cmd = new CommandImpl( "execute",
                                   Arrays.asList( new Object[] { new KnowledgeContextResolveFromContextCommand( new CreateProcessInstanceCommand( processId,
                                                                                                                                              parameters ),
                                                                                                            null,
                                                                                                            null,
                                                                                                            this.instanceId,
                                                                                                                      kresultsId )} ) );
View Full Code Here

Examples of org.drools.command.KnowledgeContextResolveFromContextCommand

  }

  public ProcessInstance startProcessInstance( long processInstanceId ) {
    String kresultsId = "kresults_" + this.gsd.getId();
    CommandImpl cmd = new CommandImpl( "execute",
                                   Arrays.asList( new Object[] { new KnowledgeContextResolveFromContextCommand( new StartProcessInstanceCommand( processInstanceId ),
                                                                                                            null,
                                                                                                            null,
                                                                                                            this.instanceId,
                                                                                                            kresultsId )} ) );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.