public Command newGetObject(FactHandle factHandle) { return new GetObjectCommand(factHandle); }
public GetObjectCommand createGetObjectCommand() { return new GetObjectCommand(); }
public Command newGetObject(FactHandle factHandle, String outIdentifier) { return new GetObjectCommand(factHandle, outIdentifier); }
public Object getObject(FactHandle factHandle) { return commandService.execute( new GetObjectCommand( factHandle ) ); }
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 )} ) ); Object result = this.sendMessage(cmd); return result; }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { FactHandle factHandle = new DefaultFactHandle( reader.getAttribute( "fact-handle" ) ); String identifierOut = reader.getAttribute( "out-identifier" ); GetObjectCommand cmd = new GetObjectCommand( factHandle ); if ( identifierOut != null ) { cmd.setOutIdentifier( identifierOut ); } return cmd; }
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { FactHandle factHandle = null; String outIdentifier = null; while ( reader.hasMoreChildren() ) { reader.moveDown(); String name = reader.getNodeName(); if ( "fact-handle".equals( name ) ) { factHandle = new DefaultFactHandle( reader.getValue() ); } else if ( "out-identifier".equals( "out-identifier" ) ) { outIdentifier = reader.getValue(); } reader.moveUp(); } GetObjectCommand cmd = new GetObjectCommand( factHandle ); if ( outIdentifier != null ) { cmd.setOutIdentifier( outIdentifier ); } return cmd; }