BBjspCommandResult

Ruta de Creación

BBJSP | +--BBjspCommandContext | +--BBjspCommandResult

Descripción

En BBj 16.0 y superior, esta clase provee un mecanismo para que un objeto BBjspCommand controle el flujo de la ejecución de comandos. Cuando se ejecuta un BBjspCommand por el framework BBJSP, el BBjspCommandContext es pasado como parámetro al método BBjspCommand::execute desde el cual un BBjspCommandResult se puede obtener.

Creación

El objeto BBjspCommandResult es creado a través del siguiente método de BBjspCommandContext:

Valor de Retorno

BBjspCommandResult

Método

getResult()

Métodos de BBjspCommandResult

Valor de Retorno

string

void

Método

getForward()

setForward(string forward)

Comentarios

Ninguno.

Constantes

Ejemplo

REM === Este es un comando BBJSP basico.

REM === It must implement the BBjspCommand interface and have the execute method.

REM ===

class public MyCommand implements BBjspCommang

REM ===

REM === This method is defined in the BBjspCommand interface

REM ===

method public BBjspCommandResult execute(BBjspCommandContext context!)

REM === Get a BBjspCommandResult from the BBjspCommand Context

result! = context!.getResult()

REM === Set the outcome policy to 'success'

result!.setForward("success")

methodret result!

methodend

classend

Revisa También

BBJSP

BBjspCommandContext