Difference between revisions of "Debug & check a reasoner"
From AMTech WikiDocs
(→Run) |
|||
Line 1: | Line 1: | ||
==Run== | ==Run== | ||
[[File:Rd1.png|thumbnail|left|execute]] | [[File:Rd1.png|thumbnail|left|execute]] | ||
− | Allows to check the execution of a reasoner without the need to | + | Allows you to check the execution of a reasoner without the need to deploy it. |
− | *The reasoners executes in a sandbox with the security context of the creator | + | * The reasoners executes in a sandbox with the security context of the creator. |
− | *It executes the same logic that | + | * For those reasoners that executes a logic for each thing returned by the observer (foreach reasoners), the execution only runs for the first thing returned by the observer. |
− | + | * It executes the same logic that would execute the engine for deployed reasoner. | |
+ | * The creator initiates the execution by selecting an instance of the observation type configured. (See [[Simulator|Simulator]]) | ||
[[File:Rd2.png|650px|thumbnail|center|Select observation instance]] | [[File:Rd2.png|650px|thumbnail|center|Select observation instance]] | ||
+ | |||
==Debug== | ==Debug== | ||
The creator can request for more detail information by using the function '''debug''' this option is only available for javascript options | The creator can request for more detail information by using the function '''debug''' this option is only available for javascript options |
Revision as of 10:43, 16 May 2016
Run
Allows you to check the execution of a reasoner without the need to deploy it.
- The reasoners executes in a sandbox with the security context of the creator.
- For those reasoners that executes a logic for each thing returned by the observer (foreach reasoners), the execution only runs for the first thing returned by the observer.
- It executes the same logic that would execute the engine for deployed reasoner.
- The creator initiates the execution by selecting an instance of the observation type configured. (See Simulator)
Debug
The creator can request for more detail information by using the function debug this option is only available for javascript options
- The results appears in a segment like the following
INFO: action helloWorld BEGIN: JS evaluation debug INFO: action helloWorld DEBUGGING *** helloWorldProducer INFO: action helloWorld END: JS evaluation debug
Check
After the reasoner has been execute and the result are the expected please check Ready to be published.
- If this operation is omitted the publication process will abort with an error