Difference: DpHipeTools (5 vs. 6)

Revision 62008-01-15 - JaimeSaiz

Line: 1 to 1
 
META TOPICPARENT name="DpHipe"

Adding Tools to HIPE

Line: 36 to 36
  You can also specify that your task belongs to one or more categories:

Changed:
<
<
from herschel.ia.core.Tool import Category
>
>
from herschel.ia.kernel.Tool import Category
  TaskToolFactory.register(MyTask(), [Category.IMAGE, Category.PACS])) Your task will now be enabled whenever a session variable is selected which matches the type of the first input parameter within your task!
Line: 98 to 98
  , where:
  • id is a unique identifier
Changed:
<
<
>
>
  • implSignatureComponent - implementation of SignatureComponent interface
 
  • implTask - implementation of your task for which this input dialog applies

An example (which you can find in the prototype):

Line: 122 to 122
 

Task compliance

  • write user documentation (jtags)! That will be automatically picked up whenever a user asks the system for help on your task.
Changed:
<
<
  • the name of the task should be a legal variable name in the global name-space. For example your instance of MyTask should report itself as e.g.: "myTask" and not "This is my task".
>
>
  • the name of the task should be a legal variable name in the global name-space. For example your instance of MyTask should report itself as e.g.: "myTask" and not "This is my task".
 
  • if your prime parameter is not the first parameter in your task, specify the prime parameter using the setPrimeInput method in the signature
  • write a parameter validator for your prime parameter if your task should be listed not only on prime data type but on prime data contents as well.
 
This site is powered by the TWiki collaboration platform Powered by Perl