Кстати, Stenсils тоже можно использовать для автоматического создания чек-листов по шаблонам:
'itop-stencils' => array(
'rules' => array(
array(
'name' => 'Attach checklists to work order',
'trigger_class' => 'WorkOrder',
'trigger_scope' => "SELECT WorkOrder WHERE ticket_id_finalclass_recall = 'ScheduledActivity'",
'trigger_state' => '',
'report_label' => 'A checklist has been created for the work order', // Label or dictionary entry
'templates' => "SELECT ChecklistTemplate WHERE name = :trigger->name AND status = 'active'", // A query to define how to look for the templates
'copy_class' => 'Checklist', // Class of the copied templates
'copy_actions' => array( // Series of actions to preset the object in the creation form
'set(obj_key,$trigger->id$)',
'set(obj_class,WorkOrder)',
'call_method(FillFromTemplate)', // A special method in knowitop-checklist module
),
'retrofit' => array( // Series of actions to retrofit some information from the created object to the source object
'set(log,A checklist has been created for the work order)',
),
),
),
),