160
func (rt *RegistrableTask) registerToLibrary(
161
library namer,
163
>
if rt.library != nil {
164
return "", 0, fmt.Errorf("task %s is already registered in library %s", rt.taskType, rt.library.Name())
165
}
166
168
>
169
>
fqn := rt.fqType()
170
>
rt.taskTypeID = GenerateTypeID(fqn)
171
>
// If outboundTaskGroup wasn't set on creation default it here,
172
>
// since this is the first place we will have the fqn.
173
>
if rt.outboundTaskGroup == "" {
174
rt.outboundTaskGroup = fqn
175
}
177
}
178