| Package | org.spicefactory.parsley.core.command | 
| Interface | public interface CommandObserverProcessor extends MessageProcessor | 
| Implementors | DefaultCommandObserverProcessor | 
| Property | Defined By | ||
|---|---|---|---|
| command : Object [read-only] 
	 The actual command instance.  | CommandObserverProcessor | ||
| commandStatus : CommandStatus [read-only] 
	 The status of the command.  | CommandObserverProcessor | ||
![]()  | message : Message [read-only] 
	 The message instance.  | MessageProcessor | |
| result : Object [read-only] 
	 The result produced by the command.  | CommandObserverProcessor | ||
| root : Boolean [read-only] 
	 Indicates whether this processor handles a root command or a nested command.  | CommandObserverProcessor | ||
![]()  | state : MessageState [read-only] 
	 The current state of this processor.  | MessageProcessor | |
| Method | Defined By | ||
|---|---|---|---|
![]()  | cancel():void 
	 Cancels processing of this message.  | MessageProcessor | |
changeResult(result:Object, error:Boolean = false):void 
	 Changes the result that the command produced.  | CommandObserverProcessor | ||
![]()  | resume():void 
	 Resumes with message processing, invoking the next receiver.  | MessageProcessor | |
![]()  | rewind():void 
	 Rewinds the processor so it will start with the first interceptor or handler again 
	 the next time the proceed method gets invoked.  | MessageProcessor | |
![]()  | sendResponse(msg:Object, selector:* = null):void 
	 Sends the response to the Context the message originated from.  | MessageProcessor | |
![]()  | suspend():void 
	 Suspends processing of the message.  | MessageProcessor | |
| command | property | 
command:Object  [read-only] The actual command instance.
    public function get command():Object| commandStatus | property | 
commandStatus:CommandStatus  [read-only] The status of the command.
    public function get commandStatus():CommandStatus| result | property | 
result:Object  [read-only] The result produced by the command.
    public function get result():Object| root | property | 
root:Boolean  [read-only] Indicates whether this processor handles a root command or a nested command. This property is true if the command is a simple standalone command or the root command of a sequence or flow. It is flow if it is a command nested in a sequence or flow.
    public function get root():Boolean| changeResult | () | method | 
 public function changeResult(result:Object, error:Boolean = false):voidChanges the result that the command produced. Subsequent command observers (if any) will receive the new result. Observers that had already been processed will not get invoked a second time.
Parameters
result:Object — the new result to pass to subsequent command observers
	  | |
error:Boolean (default = false) — true if the result represents an error
	  |