Packageorg.spicefactory.lib.command.flow
Interfacepublic interface CommandLink
Implementors DefaultCommandLink

Represents a single link between two commands or a command and a flow action like cancellation or completion.



Public Methods
 MethodDefined By
  
link(result:CommandResult, processor:CommandLinkProcessor):void
Invoked after a command in the flow finished executing.
CommandLink
Method Detail
link()method
public function link(result:CommandResult, processor:CommandLinkProcessor):void

Invoked after a command in the flow finished executing. The implementation is supposed to invoke the corresponding action in the specified processor if the specified result matches its conditions. If not the implementation should not invoke anything on the processor in which case the next link for the same command (if available) will get invoked (Chain of Responsiblity Pattern).

Parameters

result:CommandResult — the result the preceding command produced
 
processor:CommandLinkProcessor — the processor that can be used to specify the next action the flow should perform