Package org.drools.process.command

Examples of org.drools.process.command.SetGlobalCommand


        }

        public void marshal(Object object,
                            HierarchicalStreamWriter writer,
                            MarshallingContext context) {
            SetGlobalCommand cmd = (SetGlobalCommand) object;

            writer.addAttribute( "identifier",
                                 cmd.getIdentifier() );
           
            if ( cmd.getOutIdentifier() != null ) {
                writer.addAttribute( "out-identifier",
                                     cmd.getOutIdentifier() );
            else if ( cmd.isOut() ) {
                writer.addAttribute( "out",
                                     Boolean.toString( cmd.isOut() ) );
            }

            writeItem( cmd.getObject(),
                       context,
                       writer );
        }
View Full Code Here


            reader.moveDown();
            Object object = readItem( reader,
                                      context,
                                      null );
            reader.moveUp();
            SetGlobalCommand cmd = new SetGlobalCommand( identifier,
                                                         object );
            if ( identifierOut != null ) {
                cmd.setOutIdentifier( identifierOut );
            } else if ( out != null ) {
                cmd.setOut( Boolean.parseBoolean( out ) );
            }
            return cmd;
        }
View Full Code Here

        return cmd;
    }

    public Command newSetGlobal(String identifier,
                                Object object) {
        return new SetGlobalCommand( identifier,
                                     object );
    }
View Full Code Here

    }

    public Command newSetGlobal(String identifier,
                                Object object,
                                boolean out) {
        SetGlobalCommand cmd = new SetGlobalCommand( identifier,
                                                     object );
        cmd.setOut( out );
        return cmd;
    }
View Full Code Here

    }

    public Command newSetGlobal(String identifier,
                                Object object,
                                String outIdentifier) {
        SetGlobalCommand cmd = new SetGlobalCommand( identifier,
                                                     object );
        cmd.setOutIdentifier( outIdentifier );
        return cmd;
    }
View Full Code Here

        return commandService.execute( new GetGlobalCommand( identifier ) );
    }

    public void setGlobal(String identifier,
                          Object object) {
        this.commandService.execute( new SetGlobalCommand( identifier,
                                                           object ) );
    }
View Full Code Here

        }

        public void marshal(Object object,
                            HierarchicalStreamWriter writer,
                            MarshallingContext context) {
            SetGlobalCommand cmd = (SetGlobalCommand) object;

            writer.addAttribute( "identifier",
                                 cmd.getIdentifier() );

            if ( cmd.getOutIdentifier() != null ) {
                writer.addAttribute( "out-identifier",
                                     cmd.getOutIdentifier() );
            } else if ( cmd.isOut() ) {
                writer.addAttribute( "out",
                                     Boolean.toString( cmd.isOut() ) );
            }

            writeItem( cmd.getObject(),
                       context,
                       writer );
        }
View Full Code Here

            reader.moveDown();
            Object object = readItem( reader,
                                      context,
                                      null );
            reader.moveUp();
            SetGlobalCommand cmd = new SetGlobalCommand( identifier,
                                                         object );
            if ( identifierOut != null ) {
                cmd.setOutIdentifier( identifierOut );
            } else if ( out != null ) {
                cmd.setOut( Boolean.parseBoolean( out ) );
            }
            return cmd;
        }
View Full Code Here

        return commandService.execute( new GetGlobalCommand( identifier ) );
    }

    public void setGlobal(String identifier,
                          Object object) {
        this.commandService.execute( new SetGlobalCommand( identifier,
                                                           object ) );
    }
View Full Code Here

  public Command newGetObjects(ObjectFilter filter) {
    return new GetObjectsCommand(filter);
  }

  public Command newSetGlobal(String identifier, Object object) {
    return new SetGlobalCommand(identifier, object);
  }
View Full Code Here

TOP

Related Classes of org.drools.process.command.SetGlobalCommand

Copyright © 2018 www.massapicom. 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.