<?php
$config->workflowfield->buildin = new stdclass;
$config->workflowfield->buildin->fields['product']['id']             = array('type' => 'mediumint', 'length' => 8,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['product']['name']           = array('type' => 'varchar',   'length' => 90, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['product']['code']           = array('type' => 'varchar',   'length' => 45, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['product']['line']           = array('type' => 'mediumint', 'length' => 8,  'control' => 'select', 'options' => 3,  'default' => '');
$config->workflowfield->buildin->fields['product']['type']           = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 13, 'default' => 'normal');
$config->workflowfield->buildin->fields['product']['status']         = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 14, 'default' => '');
$config->workflowfield->buildin->fields['product']['desc']           = array('type' => 'text',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['product']['PO']             = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['product']['QD']             = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['product']['RD']             = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['product']['feedback']       = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['product']['acl']            = array('type' => 'enum',      'length' => '', 'control' => 'select', 'options' => 15, 'default' => 'open');
$config->workflowfield->buildin->fields['product']['whitelist']      = array('type' => 'text',      'length' => '', 'control' => 'select', 'options' => 7,  'default' => '');
$config->workflowfield->buildin->fields['product']['createdBy']      = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['product']['createdDate']    = array('type' => 'datetime',  'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['product']['createdVersion'] = array('type' => 'varchar',   'length' => 20, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['product']['order']          = array('type' => 'varchar',   'length' => 20, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['product']['deleted']        = array('type' => 'enum',      'length' => '', 'control' => 'input',  'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['project']['id']            = array('type' => 'mediumint', 'length' => 8,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['type']          = array('type' => 'varchar',   'length' => 20, 'control' => 'select', 'options' => 16, 'default' => 'sprint');
$config->workflowfield->buildin->fields['project']['parent']        = array('type' => 'mediumint', 'length' => 8,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['name']          = array('type' => 'varchar',   'length' => 90, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['code']          = array('type' => 'varchar',   'length' => 45, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['begin']         = array('type' => 'date',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['end']           = array('type' => 'date',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['days']          = array('type' => 'smallint',  'length' => 5,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['status']        = array('type' => 'varchar',   'length' => 10, 'control' => 'select', 'options' => 17, 'default' => '');
$config->workflowfield->buildin->fields['project']['statge']        = array('type' => 'enum',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '1');
$config->workflowfield->buildin->fields['project']['pri']           = array('type' => 'enum',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '1');
$config->workflowfield->buildin->fields['project']['desc']          = array('type' => 'text',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['openedBy']      = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['project']['openedDate']    = array('type' => 'datetime',  'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['closedBy']      = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['project']['closedDate']    = array('type' => 'datetime',  'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['canceledBy']    = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['project']['canceledDate']  = array('type' => 'datetime',  'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['PO']            = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['project']['PM']            = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['project']['QD']            = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['project']['RD']            = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['project']['team']          = array('type' => 'varchar',   'length' => 90, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['acl']           = array('type' => 'enum',      'length' => '', 'control' => 'select', 'options' => 18, 'default' => 'open');
$config->workflowfield->buildin->fields['project']['whitelist']     = array('type' => 'text',      'length' => '', 'control' => 'select', 'options' => 7, 'default' => '');
$config->workflowfield->buildin->fields['project']['order']         = array('type' => 'mediumint', 'length' => 8,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['project']['deleted']       = array('type' => 'enum',      'length' => '', 'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['productplan']['id']       = array('type' => 'mediumint', 'length' => 8,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['productplan']['product']  = array('type' => 'mediumint', 'length' => 8,  'control' => 'select', 'options' => 1,  'default' => '');
$config->workflowfield->buildin->fields['productplan']['branch']   = array('type' => 'mediumint', 'length' => 8,  'control' => 'select', 'options' => 9,  'default' => '');
$config->workflowfield->buildin->fields['productplan']['parent']   = array('type' => 'mediumint', 'length' => 9,  'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['productplan']['title']    = array('type' => 'varchar',   'length' => 90, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['productplan']['desc']     = array('type' => 'text',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['productplan']['begin']    = array('type' => 'date',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['productplan']['end']      = array('type' => 'date',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['productplan']['order']    = array('type' => 'text',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['productplan']['deleted']  = array('type' => 'enum',      'length' => '', 'control' => 'input',  'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['release']['id']           = array('type' => 'mediumint', 'length' => 8,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['release']['product']      = array('type' => 'mediumint', 'length' => 8,  'control' => 'select', 'options' => 1,  'default' => '0');
$config->workflowfield->buildin->fields['release']['branch']       = array('type' => 'mediumint', 'length' => 8,  'control' => 'select', 'options' => 9,  'default' => '0');
$config->workflowfield->buildin->fields['release']['build']        = array('type' => 'mediumint', 'length' => 8,  'control' => 'select', 'options' => 10, 'default' => '');
$config->workflowfield->buildin->fields['release']['name']         = array('type' => 'mediumint', 'length' => 8,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['release']['marker']       = array('type' => 'enum',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['release']['date']         = array('type' => 'date',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['release']['stories']      = array('type' => 'text',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['release']['bugs']         = array('type' => 'text',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['release']['leftBugs']     = array('type' => 'text',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['release']['desc']         = array('type' => 'text',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['release']['status']       = array('type' => 'varchar',   'length' => 20, 'control' => 'select', 'options' => 19, 'default' => 'noraml');
$config->workflowfield->buildin->fields['release']['deleted']      = array('type' => 'enum',      'length' => '', 'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['build']['id']           = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['build']['product']      = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 1,  'default' => '0');
$config->workflowfield->buildin->fields['build']['branch']       = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 9,  'default' => '0');
$config->workflowfield->buildin->fields['build']['project']      = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 2,  'default' => '0');
$config->workflowfield->buildin->fields['build']['name']         = array('type' => 'char',      'length' => 150, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['build']['scmPath']      = array('type' => 'char',      'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['build']['filePath']     = array('type' => 'char',      'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['build']['date']         = array('type' => 'date',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['build']['stories']      = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['build']['bugs']         = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['build']['builder']      = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['build']['desc']         = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['build']['deleted']      = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['story']['id']             = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['product']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 1,  'default' => '0');
$config->workflowfield->buildin->fields['story']['branch']         = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 9,  'default' => '0');
$config->workflowfield->buildin->fields['story']['module']         = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 11, 'default' => '0');
$config->workflowfield->buildin->fields['story']['plan']           = array('type' => 'text',      'length' => '',  'control' => 'select', 'options' => 12, 'default' => '');
$config->workflowfield->buildin->fields['story']['source']         = array('type' => 'varchar',   'length' => 20,  'control' => 'select', 'options' => 20, 'default' => '');
$config->workflowfield->buildin->fields['story']['sourceNote']     = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['fromBug']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['story']['feedback']       = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['story']['title']          = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['keywords']       = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['type']           = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 43, 'default' => '');
$config->workflowfield->buildin->fields['story']['pri']            = array('type' => 'tinyint',   'length' => 3,   'control' => 'select', 'options' => 21, 'default' => '');
$config->workflowfield->buildin->fields['story']['estimate']       = array('type' => 'float',     'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['status']         = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => 22, 'default' => '');
$config->workflowfield->buildin->fields['story']['color']          = array('type' => 'char',      'length' => 7,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['stage']          = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => 23, 'default' => 'wait');
$config->workflowfield->buildin->fields['story']['stagedBy']       = array('type' => 'char',      'length' => 30,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['mailto']         = array('type' => 'text',      'length' => '',  'control' => 'multi-select', 'options' => 'user', 'default' => '');
$config->workflowfield->buildin->fields['story']['openedBy']       = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['story']['openedDate']     = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['assignedTo']     = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['story']['assignedDate']   = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['lastEditedBy']   = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['story']['lastEditedDate'] = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['reviewedBy']     = array('type' => 'varchar',   'length' => 255, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['story']['reviewedDate']   = array('type' => 'date',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['closedBy']       = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['story']['closedDate']     = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['closedReason']   = array('type' => 'varchar',   'length' => 30,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['toBug']          = array('type' => 'mediumint', 'length' => 9,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['childStories']   = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['linkStories']    = array('type' => 'varchar',   'length' => 255, 'control' => 'select', 'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['duplicateStory'] = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['version']        = array('type' => 'smallint',  'length' => 6,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['story']['deleted']        = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['bug']['id']              = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['product']         = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 1,  'default' => '0');
$config->workflowfield->buildin->fields['bug']['branch']          = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 9,  'default' => '0');
$config->workflowfield->buildin->fields['bug']['module']          = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 11, 'default' => '0');
$config->workflowfield->buildin->fields['bug']['project']         = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 2,  'default' => '0');
$config->workflowfield->buildin->fields['bug']['plan']            = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 12, 'default' => '0');
$config->workflowfield->buildin->fields['bug']['story']           = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 4,  'default' => '0');
$config->workflowfield->buildin->fields['bug']['storyVersion']    = array('type' => 'smallint',  'length' => 6,   'control' => 'input',  'options' => '', 'default' => '1');
$config->workflowfield->buildin->fields['bug']['task']            = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 5,  'default' => '0');
$config->workflowfield->buildin->fields['bug']['toTask']          = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['bug']['toStory']         = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['bug']['title']           = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['keywords']        = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['severity']        = array('type' => 'tinyint',   'length' => 4,   'control' => 'select', 'options' => 24, 'default' => '');
$config->workflowfield->buildin->fields['bug']['pri']             = array('type' => 'tinyint',   'length' => 3,   'control' => 'select', 'options' => 25, 'default' => '');
$config->workflowfield->buildin->fields['bug']['type']            = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 26, 'default' => '');
$config->workflowfield->buildin->fields['bug']['os']              = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 27, 'default' => '');
$config->workflowfield->buildin->fields['bug']['browser']         = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 28, 'default' => '');
$config->workflowfield->buildin->fields['bug']['found']           = array('type' => 'varchar',   'length' => 30,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['steps']           = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['status']          = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => 29, 'default' => 'active');
$config->workflowfield->buildin->fields['bug']['color']           = array('type' => 'char',      'length' => 7,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['confirmed']       = array('type' => 'tinyint',   'length' => 1,   'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['bug']['activatedCount']  = array('type' => 'smallint',  'length' => 6,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['activatedDate']   = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['mailto']          = array('type' => 'text',      'length' => '',  'control' => 'multi-select', 'options' => 'user', 'default' => '');
$config->workflowfield->buildin->fields['bug']['openedBy']        = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['bug']['openedDate']      = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['openedBuild']     = array('type' => 'varchar',   'length' => 255, 'control' => 'select', 'options' => 10, 'default' => '');
$config->workflowfield->buildin->fields['bug']['assignedTo']      = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['bug']['assignedDate']    = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['deadline']        = array('type' => 'date',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['resolvedBy']      = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['bug']['resolution']      = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 40, 'default' => '');
$config->workflowfield->buildin->fields['bug']['resolvedBuild']   = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 10, 'default' => '');
$config->workflowfield->buildin->fields['bug']['resolvedDate']    = array('type' => 'datetime',  'length' => 30,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['closedBy']        = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['bug']['closedDate']      = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['duplicateBug']    = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['linkBug']         = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['case']            = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['caseVersion']     = array('type' => 'smallint',  'length' => 6,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['feedback']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['testtask']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['lastEditedBy']    = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['bug']['lastEditedDate']  = array('type' => 'datetime',  'length' => 30,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['bug']['deleted']         = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['task']['id']             = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['parent']         = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['task']['project']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 2,  'default' => '0');
$config->workflowfield->buildin->fields['task']['module']         = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 11, 'default' => '0');
$config->workflowfield->buildin->fields['task']['story']          = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 4,  'default' => '0');
$config->workflowfield->buildin->fields['task']['storyVersion']   = array('type' => 'smallint',  'length' => 6,   'control' => 'input',  'options' => '', 'default' => '1');
$config->workflowfield->buildin->fields['task']['fromBug']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['task']['feedback']       = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['name']           = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['type']           = array('type' => 'varchar',   'length' => 20,  'control' => 'select', 'options' => 30, 'default' => '');
$config->workflowfield->buildin->fields['task']['pri']            = array('type' => 'tinyint',   'length' => 3,   'control' => 'select', 'options' => 31, 'default' => '');
$config->workflowfield->buildin->fields['task']['estimate']       = array('type' => 'float ',    'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['consumed']       = array('type' => 'float ',    'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['left']           = array('type' => 'float ',    'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['deadline']       = array('type' => 'date',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['status']         = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => 32, 'default' => 'wait');
$config->workflowfield->buildin->fields['task']['color']          = array('type' => 'char',      'length' => 7,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['mailto']         = array('type' => 'text',      'length' => '',  'control' => 'multi-select', 'options' => 'user', 'default' => '');
$config->workflowfield->buildin->fields['task']['desc']           = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['openedBy']       = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['task']['openedDate']     = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['assignedTo']     = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['task']['assignedDate']   = array('type' => 'datetime',  'length' => 30,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['estStarted']     = array('type' => 'date',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['realStarted']    = array('type' => 'date',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['finishedBy']     = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['task']['finishedDate']   = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['finishedList']   = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['canceledBy']     = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['task']['canceledDate']   = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['closedBy']       = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['task']['closedDate']     = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['closedReason']   = array('type' => 'varchar',   'length' => 30,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['lastEditedBy']   = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['task']['lastEditedDate'] = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['task']['deleted']        = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['testcase']['id']             = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['product']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 1,  'default' => '0');
$config->workflowfield->buildin->fields['testcase']['branch']         = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 9,  'default' => '0');
$config->workflowfield->buildin->fields['testcase']['lib']            = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['testcase']['module']         = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 11, 'default' => '0');
$config->workflowfield->buildin->fields['testcase']['story']          = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 4,  'default' => '0');
$config->workflowfield->buildin->fields['testcase']['storyVersion']   = array('type' => 'smallint',  'length' => 6,   'control' => 'input',  'options' => '', 'default' => '1');
$config->workflowfield->buildin->fields['testcase']['title']          = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['precondition']   = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['keywords']       = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['pri']            = array('type' => 'tinyint',   'length' => 3,   'control' => 'select', 'options' => 33, 'default' => '3');
$config->workflowfield->buildin->fields['testcase']['type']           = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 34, 'default' => '');
$config->workflowfield->buildin->fields['testcase']['stage']          = array('type' => 'varchar',   'length' => 255, 'control' => 'select', 'options' => 35, 'default' => '');
$config->workflowfield->buildin->fields['testcase']['status']         = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 36, 'default' => '1');
$config->workflowfield->buildin->fields['testcase']['color']          = array('type' => 'char',      'length' => 7,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['order']          = array('type' => 'tinyint',   'length' => 30,  'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['testcase']['openedBy']       = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['testcase']['openedDate']     = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['reviewedBy']     = array('type' => 'varchar',   'length' => 255, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['testcase']['reviewedDate']   = array('type' => 'date',      'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['lastEditedBy']   = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['testcase']['lastEditedDate'] = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['version']        = array('type' => 'tinyint',   'length' => 3,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['linkCase']       = array('type' => 'varchar',   'length' => 255, 'control' => 'select', 'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['fromBug']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testcase']['lastRunner']     = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '0');
$config->workflowfield->buildin->fields['testcase']['lastRunDate']    = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['testcase']['lastRunResult']  = array('type' => 'char',      'length' => 30,  'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['testcase']['deleted']        = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['testtask']['id']        = array('type' => 'mediumint', 'length' => 8,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testtask']['name']      = array('type' => 'varchar',   'length' => 90, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testtask']['product']   = array('type' => 'mediumint', 'length' => 8,  'control' => 'select', 'options' => 1,  'default' => '');
$config->workflowfield->buildin->fields['testtask']['project']   = array('type' => 'mediumint', 'length' => 8,  'control' => 'select', 'options' => 2,  'default' => '');
$config->workflowfield->buildin->fields['testtask']['build']     = array('type' => 'char',      'length' => 30, 'control' => 'select', 'options' => 10, 'default' => '');
$config->workflowfield->buildin->fields['testtask']['owner']     = array('type' => 'varchar',   'length' => 30, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['testtask']['pri']       = array('type' => 'tinyint',   'length' => 3,  'control' => 'select', 'options' => 37, 'default' => '');
$config->workflowfield->buildin->fields['testtask']['begin']     = array('type' => 'date',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testtask']['end']       = array('type' => 'date',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testtask']['mailto']    = array('type' => 'text',      'length' => '', 'control' => 'multi-select', 'options' => 'user', 'default' => '');
$config->workflowfield->buildin->fields['testtask']['desc']      = array('type' => 'text',      'length' => '', 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testtask']['status']    = array('type' => 'enum',      'length' => '', 'control' => 'select', 'options' => 38, 'default' => 'wait');
$config->workflowfield->buildin->fields['testtask']['deleted']   = array('type' => 'enum',      'length' => '', 'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');

$config->workflowfield->buildin->fields['testsuite']['id']             = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testsuite']['product']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 1,  'default' => '');
$config->workflowfield->buildin->fields['testsuite']['name']           = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testsuite']['desc']           = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testsuite']['type']           = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testsuite']['addedBy']        = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['testsuite']['addedDate']      = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testsuite']['lastEditedBy']   = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['testsuite']['lastEditedDate'] = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['testsuite']['deleted']        = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '');

$config->workflowfield->buildin->fields['caselib']['id']             = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['caselib']['product']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 1,  'default' => '');
$config->workflowfield->buildin->fields['caselib']['name']           = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['caselib']['desc']           = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['caselib']['type']           = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['caselib']['addedBy']        = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['caselib']['addedDate']      = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['caselib']['lastEditedBy']   = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['caselib']['lastEditedDate'] = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['caselib']['deleted']        = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '');

$config->workflowfield->buildin->fields['feedback']['id']            = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['product']       = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 1,  'default' => '');
$config->workflowfield->buildin->fields['feedback']['module']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'select', 'options' => 42, 'default' => '');
$config->workflowfield->buildin->fields['feedback']['title']         = array('type' => 'varchar',   'length' => 255, 'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['desc']          = array('type' => 'text',      'length' => '',  'control' => 'richtext',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['status']        = array('type' => 'varchar',   'length' => 30,  'control' => 'select', 'options' => 39, 'default' => '');
$config->workflowfield->buildin->fields['feedback']['public']        = array('type' => 'enum',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['feedback']['notify']        = array('type' => 'enum',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '0');
$config->workflowfield->buildin->fields['feedback']['likes']         = array('type' => 'text',      'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['result']        = array('type' => 'mediumint', 'length' => 8,   'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['openedBy']      = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['feedback']['openedDate']    = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['reviewedBy']    = array('type' => 'varchar',   'length' => 255, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['feedback']['reviewedDate']  = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['processedBy']   = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['feedback']['processedDate'] = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['closedBy']      = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['feedback']['closedDate']    = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['closedReason']  = array('type' => 'varchar',   'length' => 30,  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['editedBy']      = array('type' => 'char',      'length' => 30,  'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['feedback']['editedDate']    = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['assignedTo']    = array('type' => 'varchar',   'length' => 255, 'control' => 'select', 'options' => 'user',  'default' => '');
$config->workflowfield->buildin->fields['feedback']['assignedDate']  = array('type' => 'datetime',  'length' => '',  'control' => 'input',  'options' => '', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['mailto']        = array('type' => 'text',      'length' => '',  'control' => 'multi-select', 'options' => 'user', 'default' => '');
$config->workflowfield->buildin->fields['feedback']['deleted']       = array('type' => 'enum',      'length' => '',  'control' => 'select', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');
