|
META TOPICPARENT |
name="DpHipe" |
Adding Tools to HIPE |
|
You can also specify that your task belongs to one or more categories:
|
|
< < | 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! |
|
, where:
- id is a unique identifier
|
|
< < | |
> > |
- 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): |
| Task compliance
- write user documentation (jtags)! That will be automatically picked up whenever a user asks the system for help on your 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".
|
> > |
- 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.
|