protected function createImport($name, $filename, $record)
    {
        // This is needed to feed WorkflowService#getNamedTemplate()
        $import = ImportedWorkflowTemplate::create();
        $import->Name = $name;
        $import->Filename = $filename;
        $import->Content = serialize($record);
        $import->write();

        return $import;
    }
protected function createImport($name, $filename, $record)
    {
        // This is needed to feed WorkflowService#getNamedTemplate()
        $import = ImportedWorkflowTemplate::create();
        $import->Name = $name;
        $import->Filename = $filename;
        $import->Content = serialize($record);
        $import->write();

        return $import;
    }
protected function createImport ( $ name , $ filename , $ record ) { // This is needed to feed WorkflowService#getNamedTemplate() $ import = ImportedWorkflowTemplate :: create ( ) ; $ import -> Name = $ name ; $ import -> Filename = $ filename ; $ import -> Content = serialize ( $ record ) ; $ import -> write ( ) ; return $ import ; }
Create the ImportedWorkflowTemplate record for the uploaded YML file.

@param string $name
@param string $filename
@param array $record
@return ImportedWorkflowTemplate $import
Create the ImportedWorkflowTemplate record for the uploaded YML file .