flow.php 111 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. <?php
  2. global $lang;
  3. if($config->db->driver == 'dm')
  4. {
  5. $config->workflowfield->default->indexes = 'PRIMARY KEY (`id`)';
  6. $config->workflowfield->default->fields['id'] = 'mediumint(8) unsigned NOT NULL AUTO_INCREMENT';
  7. $config->workflowfield->default->fields['parent'] = "mediumint(8) unsigned NOT NULL DEFAULT '0'";
  8. $config->workflowfield->default->fields['assignedTo'] = "varchar(30) NOT NULL DEFAULT ''";
  9. $config->workflowfield->default->fields['status'] = "varchar(30) NOT NULL DEFAULT ''";
  10. $config->workflowfield->default->fields['createdBy'] = "varchar(30) NOT NULL DEFAULT ''";
  11. $config->workflowfield->default->fields['createdDate'] = "datetime NULL";
  12. $config->workflowfield->default->fields['editedBy'] = "varchar(30) NOT NULL DEFAULT ''";
  13. $config->workflowfield->default->fields['editedDate'] = "datetime NULL";
  14. $config->workflowfield->default->fields['assignedBy'] = "varchar(30) NOT NULL DEFAULT ''";
  15. $config->workflowfield->default->fields['assignedDate'] = "datetime NULL";
  16. $config->workflowfield->default->fields['mailto'] = "text NOT NULL DEFAULT ''";
  17. $config->workflowfield->default->fields['deleted'] = "enum('0', '1') NOT NULL DEFAULT '0'";
  18. }
  19. $config->workflowfield->buildin = new stdclass;
  20. $config->workflowfield->buildin->fields['product']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  21. $config->workflowfield->buildin->fields['product']['name'] = array('type' => 'varchar', 'length' => 90, 'control' => 'input', 'options' => '', 'default' => '');
  22. $config->workflowfield->buildin->fields['product']['code'] = array('type' => 'varchar', 'length' => 45, 'control' => 'input', 'options' => '', 'default' => '');
  23. $config->workflowfield->buildin->fields['product']['line'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 3, 'default' => '');
  24. $config->workflowfield->buildin->fields['product']['type'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 13, 'default' => 'normal');
  25. $config->workflowfield->buildin->fields['product']['status'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 14, 'default' => '', 'rules' => '1');
  26. $config->workflowfield->buildin->fields['product']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  27. $config->workflowfield->buildin->fields['product']['PO'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  28. $config->workflowfield->buildin->fields['product']['QD'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  29. $config->workflowfield->buildin->fields['product']['RD'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  30. $config->workflowfield->buildin->fields['product']['feedback'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  31. $config->workflowfield->buildin->fields['product']['acl'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => 15, 'default' => 'open');
  32. $config->workflowfield->buildin->fields['product']['whitelist'] = array('type' => 'text', 'length' => '', 'control' => 'select', 'options' => 7, 'default' => '');
  33. $config->workflowfield->buildin->fields['product']['createdBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  34. $config->workflowfield->buildin->fields['product']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  35. $config->workflowfield->buildin->fields['product']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  36. $config->workflowfield->buildin->fields['execution']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  37. $config->workflowfield->buildin->fields['execution']['project'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  38. $config->workflowfield->buildin->fields['execution']['model'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 45, 'default' => '');
  39. $config->workflowfield->buildin->fields['execution']['lifetime'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => '', 'default' => '');
  40. $config->workflowfield->buildin->fields['execution']['budget'] = array('type' => 'varchar', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '0');
  41. $config->workflowfield->buildin->fields['execution']['attribute'] = array('type' => 'varchar', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '0');
  42. $config->workflowfield->buildin->fields['execution']['percent'] = array('type' => 'float', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '0');
  43. $config->workflowfield->buildin->fields['execution']['milestone'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->switch, 'default' => '0');
  44. $config->workflowfield->buildin->fields['execution']['auth'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => '', 'default' => '');
  45. $config->workflowfield->buildin->fields['execution']['parent'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '0');
  46. $config->workflowfield->buildin->fields['execution']['name'] = array('type' => 'varchar', 'length' => 90, 'control' => 'input', 'options' => '', 'default' => '');
  47. $config->workflowfield->buildin->fields['execution']['code'] = array('type' => 'varchar', 'length' => 45, 'control' => 'input', 'options' => '', 'default' => '');
  48. $config->workflowfield->buildin->fields['execution']['begin'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  49. $config->workflowfield->buildin->fields['execution']['end'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  50. $config->workflowfield->buildin->fields['execution']['realBegan'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  51. $config->workflowfield->buildin->fields['execution']['realEnd'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  52. $config->workflowfield->buildin->fields['execution']['days'] = array('type' => 'smallint', 'length' => 5, 'control' => 'integer', 'options' => '', 'default' => '');
  53. $config->workflowfield->buildin->fields['execution']['status'] = array('type' => 'varchar', 'length' => 10, 'control' => 'select', 'options' => 17, 'default' => '', 'rules' => '1');
  54. $config->workflowfield->buildin->fields['execution']['pri'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => '[1,2,3,4]', 'default' => '1');
  55. $config->workflowfield->buildin->fields['execution']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => '');
  56. $config->workflowfield->buildin->fields['execution']['planDuration'] = array('type' => 'int', 'length' => 11, 'control' => 'integer', 'options' => '', 'default' => '');
  57. $config->workflowfield->buildin->fields['execution']['realDuration'] = array('type' => 'int', 'length' => 11, 'control' => 'integer', 'options' => '', 'default' => '');
  58. $config->workflowfield->buildin->fields['execution']['openedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  59. $config->workflowfield->buildin->fields['execution']['openedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  60. $config->workflowfield->buildin->fields['execution']['lastEditedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  61. $config->workflowfield->buildin->fields['execution']['lastEditedDate']= array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  62. $config->workflowfield->buildin->fields['execution']['closedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  63. $config->workflowfield->buildin->fields['execution']['closedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  64. $config->workflowfield->buildin->fields['execution']['canceledBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  65. $config->workflowfield->buildin->fields['execution']['canceledDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  66. $config->workflowfield->buildin->fields['execution']['suspendedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  67. $config->workflowfield->buildin->fields['execution']['PO'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  68. $config->workflowfield->buildin->fields['execution']['PM'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  69. $config->workflowfield->buildin->fields['execution']['QD'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  70. $config->workflowfield->buildin->fields['execution']['RD'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  71. $config->workflowfield->buildin->fields['execution']['acl'] = array('type' => 'char', 'length' => 30, 'control' => 'radio', 'options' => 18, 'default' => 'open');
  72. $config->workflowfield->buildin->fields['execution']['whitelist'] = array('type' => 'text', 'length' => '', 'control' => 'multi-select', 'options' => 'user', 'default' => '');
  73. $config->workflowfield->buildin->fields['execution']['displayCards'] = array('type' => 'smallint', 'length' => 6, 'control' => 'input', 'options' => '', 'default' => '0');
  74. $config->workflowfield->buildin->fields['execution']['fluidBoard'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->fluidBoardList,'default' => '0');
  75. $config->workflowfield->buildin->fields['execution']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  76. $config->workflowfield->buildin->fields['program'] = $config->workflowfield->buildin->fields['execution'];
  77. $config->workflowfield->buildin->fields['project'] = $config->workflowfield->buildin->fields['execution'];
  78. $config->workflowfield->buildin->fields['program']['parent']['control'] = 'select';
  79. $config->workflowfield->buildin->fields['program']['parent']['options'] = 51;
  80. $config->workflowfield->buildin->fields['project']['parent']['control'] = 'select';
  81. $config->workflowfield->buildin->fields['project']['parent']['options'] = 51;
  82. $config->workflowfield->buildin->fields['execution']['parent']['control'] = 'select';
  83. $config->workflowfield->buildin->fields['execution']['parent']['options'] = 2;
  84. unset($config->workflowfield->buildin->fields['program']['code']);
  85. unset($config->workflowfield->buildin->fields['program']['project']);
  86. unset($config->workflowfield->buildin->fields['program']['model']);
  87. unset($config->workflowfield->buildin->fields['program']['attribute']);
  88. unset($config->workflowfield->buildin->fields['program']['percent']);
  89. unset($config->workflowfield->buildin->fields['program']['milestone']);
  90. unset($config->workflowfield->buildin->fields['program']['displayCards']);
  91. unset($config->workflowfield->buildin->fields['program']['fluidBoard']);
  92. unset($config->workflowfield->buildin->fields['project']['project']);
  93. unset($config->workflowfield->buildin->fields['project']['attribute']);
  94. unset($config->workflowfield->buildin->fields['project']['percent']);
  95. unset($config->workflowfield->buildin->fields['project']['milestone']);
  96. unset($config->workflowfield->buildin->fields['execution']['model']);
  97. unset($config->workflowfield->buildin->fields['execution']['budget']);
  98. $config->workflowfield->buildin->fields['productplan']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  99. $config->workflowfield->buildin->fields['productplan']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '');
  100. $config->workflowfield->buildin->fields['productplan']['branch'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 9, 'default' => '');
  101. $config->workflowfield->buildin->fields['productplan']['parent'] = array('type' => 'mediumint', 'length' => 9, 'control' => 'select', 'options' => 12, 'default' => '0');
  102. $config->workflowfield->buildin->fields['productplan']['title'] = array('type' => 'varchar', 'length' => 90, 'control' => 'input', 'options' => '', 'default' => '');
  103. $config->workflowfield->buildin->fields['productplan']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  104. $config->workflowfield->buildin->fields['productplan']['begin'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  105. $config->workflowfield->buildin->fields['productplan']['end'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  106. $config->workflowfield->buildin->fields['productplan']['order'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  107. $config->workflowfield->buildin->fields['productplan']['createdBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  108. $config->workflowfield->buildin->fields['productplan']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  109. $config->workflowfield->buildin->fields['productplan']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  110. $config->workflowfield->buildin->fields['release']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  111. $config->workflowfield->buildin->fields['release']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '0');
  112. $config->workflowfield->buildin->fields['release']['branch'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 9, 'default' => '0');
  113. $config->workflowfield->buildin->fields['release']['build'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 10, 'default' => '');
  114. $config->workflowfield->buildin->fields['release']['name'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  115. $config->workflowfield->buildin->fields['release']['marker'] = array('type' => 'enum', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '0');
  116. $config->workflowfield->buildin->fields['release']['date'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  117. $config->workflowfield->buildin->fields['release']['stories'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  118. $config->workflowfield->buildin->fields['release']['bugs'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  119. $config->workflowfield->buildin->fields['release']['leftBugs'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  120. $config->workflowfield->buildin->fields['release']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => '');
  121. $config->workflowfield->buildin->fields['release']['status'] = array('type' => 'varchar', 'length' => 20, 'control' => 'select', 'options' => 19, 'default' => 'noraml', 'rules' => '1');
  122. $config->workflowfield->buildin->fields['release']['createdBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  123. $config->workflowfield->buildin->fields['release']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  124. $config->workflowfield->buildin->fields['release']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  125. $config->workflowfield->buildin->fields['build']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  126. $config->workflowfield->buildin->fields['build']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '0');
  127. $config->workflowfield->buildin->fields['build']['branch'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 9, 'default' => '0');
  128. $config->workflowfield->buildin->fields['build']['project'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 2, 'default' => '0');
  129. $config->workflowfield->buildin->fields['build']['execution'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 44, 'default' => '0');
  130. $config->workflowfield->buildin->fields['build']['name'] = array('type' => 'char', 'length' => 150, 'control' => 'input', 'options' => '', 'default' => '');
  131. $config->workflowfield->buildin->fields['build']['scmPath'] = array('type' => 'char', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  132. $config->workflowfield->buildin->fields['build']['filePath'] = array('type' => 'char', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  133. $config->workflowfield->buildin->fields['build']['date'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  134. $config->workflowfield->buildin->fields['build']['stories'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  135. $config->workflowfield->buildin->fields['build']['bugs'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  136. $config->workflowfield->buildin->fields['build']['builder'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  137. $config->workflowfield->buildin->fields['build']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => '');
  138. $config->workflowfield->buildin->fields['build']['createdBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  139. $config->workflowfield->buildin->fields['build']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  140. $config->workflowfield->buildin->fields['build']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  141. $config->workflowfield->buildin->fields['story']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  142. $config->workflowfield->buildin->fields['story']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '0');
  143. $config->workflowfield->buildin->fields['story']['branch'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 9, 'default' => '0');
  144. $config->workflowfield->buildin->fields['story']['module'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 11, 'default' => '0');
  145. $config->workflowfield->buildin->fields['story']['plan'] = array('type' => 'text', 'length' => '', 'control' => 'select', 'options' => 12, 'default' => '');
  146. $config->workflowfield->buildin->fields['story']['source'] = array('type' => 'varchar', 'length' => 20, 'control' => 'select', 'options' => 20, 'default' => '');
  147. $config->workflowfield->buildin->fields['story']['sourceNote'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  148. $config->workflowfield->buildin->fields['story']['fromBug'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 6, 'default' => '0');
  149. $config->workflowfield->buildin->fields['story']['feedback'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 73, 'default' => '0');
  150. $config->workflowfield->buildin->fields['story']['title'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  151. $config->workflowfield->buildin->fields['story']['keywords'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  152. $config->workflowfield->buildin->fields['story']['type'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 43, 'default' => '');
  153. $config->workflowfield->buildin->fields['story']['pri'] = array('type' => 'tinyint', 'length' => 3, 'control' => 'select', 'options' => 21, 'default' => '');
  154. $config->workflowfield->buildin->fields['story']['estimate'] = array('type' => 'float', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  155. $config->workflowfield->buildin->fields['story']['status'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => 22, 'default' => '', 'rules' => '1');
  156. $config->workflowfield->buildin->fields['story']['color'] = array('type' => 'char', 'length' => 7, 'control' => 'select', 'options' => 82, 'default' => '');
  157. $config->workflowfield->buildin->fields['story']['stage'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => 23, 'default' => 'wait');
  158. $config->workflowfield->buildin->fields['story']['stagedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '');
  159. $config->workflowfield->buildin->fields['story']['mailto'] = array('type' => 'text', 'length' => '', 'control' => 'multi-select', 'options' => 'user', 'default' => '');
  160. $config->workflowfield->buildin->fields['story']['openedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  161. $config->workflowfield->buildin->fields['story']['openedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  162. $config->workflowfield->buildin->fields['story']['assignedTo'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  163. $config->workflowfield->buildin->fields['story']['assignedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  164. $config->workflowfield->buildin->fields['story']['lastEditedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  165. $config->workflowfield->buildin->fields['story']['lastEditedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  166. $config->workflowfield->buildin->fields['story']['reviewedBy'] = array('type' => 'varchar', 'length' => 255, 'control' => 'select', 'options' => 'user', 'default' => '');
  167. $config->workflowfield->buildin->fields['story']['reviewedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  168. $config->workflowfield->buildin->fields['story']['closedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  169. $config->workflowfield->buildin->fields['story']['closedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  170. $config->workflowfield->buildin->fields['story']['closedReason'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => '52', 'default' => '');
  171. $config->workflowfield->buildin->fields['story']['toBug'] = array('type' => 'mediumint', 'length' => 9, 'control' => 'input', 'options' => '', 'default' => '');
  172. $config->workflowfield->buildin->fields['story']['duplicateStory'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 4, 'default' => '0');
  173. $config->workflowfield->buildin->fields['story']['version'] = array('type' => 'smallint', 'length' => 6, 'control' => 'input', 'options' => '', 'default' => '');
  174. $config->workflowfield->buildin->fields['story']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  175. $config->workflowfield->buildin->fields['requirement'] = $config->workflowfield->buildin->fields['story'];
  176. $config->workflowfield->buildin->fields['epic'] = $config->workflowfield->buildin->fields['story'];
  177. unset($config->workflowfield->buildin->fields['requirement']['fromBug']);
  178. unset($config->workflowfield->buildin->fields['requirement']['toBug']);
  179. unset($config->workflowfield->buildin->fields['epic']['fromBug']);
  180. unset($config->workflowfield->buildin->fields['epic']['toBug']);
  181. $config->workflowfield->buildin->fields['bug']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  182. $config->workflowfield->buildin->fields['bug']['project'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 2, 'default' => '0');
  183. $config->workflowfield->buildin->fields['bug']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '0');
  184. $config->workflowfield->buildin->fields['bug']['branch'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 9, 'default' => '0');
  185. $config->workflowfield->buildin->fields['bug']['module'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 11, 'default' => '0');
  186. $config->workflowfield->buildin->fields['bug']['execution'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 44, 'default' => '0');
  187. $config->workflowfield->buildin->fields['bug']['plan'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 12, 'default' => '0');
  188. $config->workflowfield->buildin->fields['bug']['story'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 4, 'default' => '0');
  189. $config->workflowfield->buildin->fields['bug']['task'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 5, 'default' => '0');
  190. $config->workflowfield->buildin->fields['bug']['toTask'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 5, 'default' => '0');
  191. $config->workflowfield->buildin->fields['bug']['toStory'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 4, 'default' => '0');
  192. $config->workflowfield->buildin->fields['bug']['title'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  193. $config->workflowfield->buildin->fields['bug']['keywords'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  194. $config->workflowfield->buildin->fields['bug']['severity'] = array('type' => 'tinyint', 'length' => 4, 'control' => 'select', 'options' => 24, 'default' => '');
  195. $config->workflowfield->buildin->fields['bug']['pri'] = array('type' => 'tinyint', 'length' => 3, 'control' => 'select', 'options' => 25, 'default' => '');
  196. $config->workflowfield->buildin->fields['bug']['type'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 26, 'default' => '');
  197. $config->workflowfield->buildin->fields['bug']['os'] = array('type' => 'varchar', 'length' => 30, 'control' => 'multi-select', 'options' => 27, 'default' => '');
  198. $config->workflowfield->buildin->fields['bug']['browser'] = array('type' => 'varchar', 'length' => 30, 'control' => 'multi-select', 'options' => 28, 'default' => '');
  199. $config->workflowfield->buildin->fields['bug']['hardware'] = array('type' => 'varchar', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '');
  200. $config->workflowfield->buildin->fields['bug']['found'] = array('type' => 'varchar', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '');
  201. $config->workflowfield->buildin->fields['bug']['steps'] = array('type' => 'mediumtext','length' => '', 'control' => 'richtext', 'options' => '', 'default' => '');
  202. $config->workflowfield->buildin->fields['bug']['status'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => 29, 'default' => 'active', 'rules' => '1');
  203. $config->workflowfield->buildin->fields['bug']['color'] = array('type' => 'char', 'length' => 7, 'control' => 'select', 'options' => 82, 'default' => '');
  204. $config->workflowfield->buildin->fields['bug']['confirmed'] = array('type' => 'tinyint', 'length' => 1, 'control' => 'select', 'options' => $lang->workflowfield->default->options->switch, 'default' => '0');
  205. $config->workflowfield->buildin->fields['bug']['activatedCount'] = array('type' => 'smallint', 'length' => 6, 'control' => 'input', 'options' => '', 'default' => '');
  206. $config->workflowfield->buildin->fields['bug']['activatedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  207. $config->workflowfield->buildin->fields['bug']['feedbackBy'] = array('type' => 'varchar', 'length' => 100, 'control' => 'input', 'options' => '', 'default' => '');
  208. $config->workflowfield->buildin->fields['bug']['notifyEmail'] = array('type' => 'varchar', 'length' => 100, 'control' => 'input', 'options' => '', 'default' => '');
  209. $config->workflowfield->buildin->fields['bug']['mailto'] = array('type' => 'text', 'length' => '', 'control' => 'multi-select', 'options' => 'user', 'default' => '');
  210. $config->workflowfield->buildin->fields['bug']['openedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  211. $config->workflowfield->buildin->fields['bug']['openedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  212. $config->workflowfield->buildin->fields['bug']['openedBuild'] = array('type' => 'varchar', 'length' => 255, 'control' => 'multi-select', 'options' => 10, 'default' => '');
  213. $config->workflowfield->buildin->fields['bug']['assignedTo'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  214. $config->workflowfield->buildin->fields['bug']['assignedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  215. $config->workflowfield->buildin->fields['bug']['deadline'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  216. $config->workflowfield->buildin->fields['bug']['resolvedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  217. $config->workflowfield->buildin->fields['bug']['resolution'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 40, 'default' => '');
  218. $config->workflowfield->buildin->fields['bug']['resolvedBuild'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 10, 'default' => '');
  219. $config->workflowfield->buildin->fields['bug']['resolvedDate'] = array('type' => 'datetime', 'length' => 30, 'control' => 'datetime', 'options' => '', 'default' => '');
  220. $config->workflowfield->buildin->fields['bug']['closedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  221. $config->workflowfield->buildin->fields['bug']['closedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  222. $config->workflowfield->buildin->fields['bug']['duplicateBug'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  223. $config->workflowfield->buildin->fields['bug']['case'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => '41', 'default' => '');
  224. $config->workflowfield->buildin->fields['bug']['caseVersion'] = array('type' => 'smallint', 'length' => 6, 'control' => 'integer', 'options' => '', 'default' => '');
  225. $config->workflowfield->buildin->fields['bug']['result'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  226. $config->workflowfield->buildin->fields['bug']['repo'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  227. $config->workflowfield->buildin->fields['bug']['mr'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  228. $config->workflowfield->buildin->fields['bug']['entry'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  229. $config->workflowfield->buildin->fields['bug']['lines'] = array('type' => 'varchar', 'length' => 10, 'control' => 'input', 'options' => '', 'default' => '');
  230. $config->workflowfield->buildin->fields['bug']['v1'] = array('type' => 'varchar', 'length' => 40, 'control' => 'input', 'options' => '', 'default' => '');
  231. $config->workflowfield->buildin->fields['bug']['v2'] = array('type' => 'varchar', 'length' => 40, 'control' => 'input', 'options' => '', 'default' => '');
  232. $config->workflowfield->buildin->fields['bug']['repoType'] = array('type' => 'varchar', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '');
  233. $config->workflowfield->buildin->fields['bug']['issueKey'] = array('type' => 'varchar', 'length' => 50, 'control' => 'input', 'options' => '', 'default' => '');
  234. $config->workflowfield->buildin->fields['bug']['testtask'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  235. $config->workflowfield->buildin->fields['bug']['lastEditedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  236. $config->workflowfield->buildin->fields['bug']['lastEditedDate'] = array('type' => 'datetime', 'length' => 30, 'control' => 'datetime', 'options' => '', 'default' => '');
  237. $config->workflowfield->buildin->fields['bug']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  238. $config->workflowfield->buildin->fields['task']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  239. $config->workflowfield->buildin->fields['task']['project'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 2, 'default' => '0');
  240. $config->workflowfield->buildin->fields['task']['parent'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 5, 'default' => '0');
  241. $config->workflowfield->buildin->fields['task']['execution'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 44, 'default' => '0');
  242. $config->workflowfield->buildin->fields['task']['module'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 11, 'default' => '0');
  243. $config->workflowfield->buildin->fields['task']['story'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 4, 'default' => '0');
  244. $config->workflowfield->buildin->fields['task']['fromBug'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 6, 'default' => '');
  245. $config->workflowfield->buildin->fields['task']['name'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  246. $config->workflowfield->buildin->fields['task']['type'] = array('type' => 'varchar', 'length' => 20, 'control' => 'select', 'options' => 30, 'default' => '');
  247. $config->workflowfield->buildin->fields['task']['pri'] = array('type' => 'tinyint', 'length' => 3, 'control' => 'select', 'options' => 31, 'default' => '');
  248. $config->workflowfield->buildin->fields['task']['estimate'] = array('type' => 'float ', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  249. $config->workflowfield->buildin->fields['task']['consumed'] = array('type' => 'float ', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  250. $config->workflowfield->buildin->fields['task']['left'] = array('type' => 'float ', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  251. $config->workflowfield->buildin->fields['task']['deadline'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  252. $config->workflowfield->buildin->fields['task']['status'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => 32, 'default' => 'wait', 'rules' => '1');
  253. $config->workflowfield->buildin->fields['task']['color'] = array('type' => 'char', 'length' => 7, 'control' => 'select', 'options' => 82, 'default' => '');
  254. $config->workflowfield->buildin->fields['task']['mailto'] = array('type' => 'text', 'length' => '', 'control' => 'multi-select', 'options' => 'user', 'default' => '');
  255. $config->workflowfield->buildin->fields['task']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => '');
  256. $config->workflowfield->buildin->fields['task']['version'] = array('type' => 'smallint', 'length' => 6, 'control' => 'integer', 'options' => '', 'default' => '');
  257. $config->workflowfield->buildin->fields['task']['openedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  258. $config->workflowfield->buildin->fields['task']['openedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  259. $config->workflowfield->buildin->fields['task']['assignedTo'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  260. $config->workflowfield->buildin->fields['task']['assignedDate'] = array('type' => 'datetime', 'length' => 30, 'control' => 'datetime', 'options' => '', 'default' => '');
  261. $config->workflowfield->buildin->fields['task']['estStarted'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  262. $config->workflowfield->buildin->fields['task']['realStarted'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  263. $config->workflowfield->buildin->fields['task']['finishedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  264. $config->workflowfield->buildin->fields['task']['finishedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  265. $config->workflowfield->buildin->fields['task']['finishedList'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  266. $config->workflowfield->buildin->fields['task']['canceledBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  267. $config->workflowfield->buildin->fields['task']['canceledDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  268. $config->workflowfield->buildin->fields['task']['closedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  269. $config->workflowfield->buildin->fields['task']['closedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  270. $config->workflowfield->buildin->fields['task']['planDuration'] = array('type' => 'int', 'length' => 11, 'control' => 'integer', 'options' => '', 'default' => '');
  271. $config->workflowfield->buildin->fields['task']['realDuration'] = array('type' => 'int', 'length' => 11, 'control' => 'integer', 'options' => '', 'default' => '');
  272. $config->workflowfield->buildin->fields['task']['closedReason'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 49, 'default' => '');
  273. $config->workflowfield->buildin->fields['task']['lastEditedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  274. $config->workflowfield->buildin->fields['task']['lastEditedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  275. $config->workflowfield->buildin->fields['task']['activatedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  276. $config->workflowfield->buildin->fields['task']['repo'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  277. $config->workflowfield->buildin->fields['task']['mr'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  278. $config->workflowfield->buildin->fields['task']['entry'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  279. $config->workflowfield->buildin->fields['task']['lines'] = array('type' => 'varchar', 'length' => 10, 'control' => 'input', 'options' => '', 'default' => '');
  280. $config->workflowfield->buildin->fields['task']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  281. $config->workflowfield->buildin->fields['testcase']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  282. $config->workflowfield->buildin->fields['testcase']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '0');
  283. $config->workflowfield->buildin->fields['testcase']['project'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 2, 'default' => '0');
  284. $config->workflowfield->buildin->fields['testcase']['execution'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 44, 'default' => '0');
  285. $config->workflowfield->buildin->fields['testcase']['branch'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 9, 'default' => '0');
  286. $config->workflowfield->buildin->fields['testcase']['lib'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '0');
  287. $config->workflowfield->buildin->fields['testcase']['module'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 11, 'default' => '0');
  288. $config->workflowfield->buildin->fields['testcase']['story'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 4, 'default' => '0');
  289. $config->workflowfield->buildin->fields['testcase']['storyVersion'] = array('type' => 'smallint', 'length' => 6, 'control' => 'input', 'options' => '', 'default' => '1');
  290. $config->workflowfield->buildin->fields['testcase']['title'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  291. $config->workflowfield->buildin->fields['testcase']['precondition'] = array('type' => 'text', 'length' => '', 'control' => 'textarea', 'options' => '', 'default' => '');
  292. $config->workflowfield->buildin->fields['testcase']['keywords'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  293. $config->workflowfield->buildin->fields['testcase']['pri'] = array('type' => 'tinyint', 'length' => 3, 'control' => 'select', 'options' => 33, 'default' => '3');
  294. $config->workflowfield->buildin->fields['testcase']['type'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 34, 'default' => '');
  295. $config->workflowfield->buildin->fields['testcase']['auto'] = array('type' => 'varchar', 'length' => 10, 'control' => 'input', 'options' => '', 'default' => '');
  296. $config->workflowfield->buildin->fields['testcase']['frame'] = array('type' => 'varchar', 'length' => 10, 'control' => 'input', 'options' => '', 'default' => '');
  297. $config->workflowfield->buildin->fields['testcase']['stage'] = array('type' => 'varchar', 'length' => 255, 'control' => 'multi-select', 'options' => 35, 'default' => '');
  298. $config->workflowfield->buildin->fields['testcase']['howRun'] = array('type' => 'varchar', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '');
  299. $config->workflowfield->buildin->fields['testcase']['scriptedBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '');
  300. $config->workflowfield->buildin->fields['testcase']['scriptedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  301. $config->workflowfield->buildin->fields['testcase']['scriptStatus'] = array('type' => 'varchar', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '');
  302. $config->workflowfield->buildin->fields['testcase']['scriptLocation'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  303. $config->workflowfield->buildin->fields['testcase']['status'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 36, 'default' => '1', 'rules' => '1');
  304. $config->workflowfield->buildin->fields['testcase']['color'] = array('type' => 'char', 'length' => 7, 'control' => 'select', 'options' => 82, 'default' => '');
  305. $config->workflowfield->buildin->fields['testcase']['openedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  306. $config->workflowfield->buildin->fields['testcase']['openedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  307. $config->workflowfield->buildin->fields['testcase']['reviewedBy'] = array('type' => 'varchar', 'length' => 255, 'control' => 'select', 'options' => 'user', 'default' => '');
  308. $config->workflowfield->buildin->fields['testcase']['reviewedDate'] = array('type' => 'datetime', 'length' => 255, 'control' => 'datetime', 'options' => '', 'default' => '');
  309. $config->workflowfield->buildin->fields['testcase']['lastEditedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  310. $config->workflowfield->buildin->fields['testcase']['lastEditedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  311. $config->workflowfield->buildin->fields['testcase']['version'] = array('type' => 'tinyint', 'length' => 3, 'control' => 'input', 'options' => '', 'default' => '');
  312. $config->workflowfield->buildin->fields['testcase']['linkCase'] = array('type' => 'varchar', 'length' => 255, 'control' => 'select', 'options' => '', 'default' => '');
  313. $config->workflowfield->buildin->fields['testcase']['fromBug'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 6, 'default' => '');
  314. $config->workflowfield->buildin->fields['testcase']['fromCaseID'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  315. $config->workflowfield->buildin->fields['testcase']['fromCaseVersion'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  316. $config->workflowfield->buildin->fields['testcase']['lastRunner'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '0');
  317. $config->workflowfield->buildin->fields['testcase']['lastRunDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '0');
  318. $config->workflowfield->buildin->fields['testcase']['lastRunResult'] = array('type' => 'char', 'length' => 30, 'control' => 'input', 'options' => '', 'default' => '0');
  319. $config->workflowfield->buildin->fields['testcase']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  320. $config->workflowfield->buildin->fields['testtask']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  321. $config->workflowfield->buildin->fields['testtask']['name'] = array('type' => 'varchar', 'length' => 90, 'control' => 'input', 'options' => '', 'default' => '');
  322. $config->workflowfield->buildin->fields['testtask']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '');
  323. $config->workflowfield->buildin->fields['testtask']['project'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 2, 'default' => '');
  324. $config->workflowfield->buildin->fields['testtask']['execution'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 44, 'default' => '');
  325. $config->workflowfield->buildin->fields['testtask']['build'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 10, 'default' => '');
  326. $config->workflowfield->buildin->fields['testtask']['owner'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  327. $config->workflowfield->buildin->fields['testtask']['pri'] = array('type' => 'tinyint', 'length' => 3, 'control' => 'select', 'options' => 37, 'default' => '');
  328. $config->workflowfield->buildin->fields['testtask']['begin'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  329. $config->workflowfield->buildin->fields['testtask']['end'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => '');
  330. $config->workflowfield->buildin->fields['testtask']['mailto'] = array('type' => 'text', 'length' => '', 'control' => 'multi-select', 'options' => 'user', 'default' => '');
  331. $config->workflowfield->buildin->fields['testtask']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => '');
  332. $config->workflowfield->buildin->fields['testtask']['status'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => 38, 'default' => 'wait', 'rules' => '1');
  333. $config->workflowfield->buildin->fields['testtask']['createdBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  334. $config->workflowfield->buildin->fields['testtask']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  335. $config->workflowfield->buildin->fields['testtask']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  336. $config->workflowfield->buildin->fields['testsuite']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  337. $config->workflowfield->buildin->fields['testsuite']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '');
  338. $config->workflowfield->buildin->fields['testsuite']['name'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  339. $config->workflowfield->buildin->fields['testsuite']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => '');
  340. $config->workflowfield->buildin->fields['testsuite']['type'] = array('type' => 'text', 'length' => '', 'control' => 'radio', 'options' => 50, 'default' => '');
  341. $config->workflowfield->buildin->fields['testsuite']['addedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  342. $config->workflowfield->buildin->fields['testsuite']['addedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  343. $config->workflowfield->buildin->fields['testsuite']['lastEditedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  344. $config->workflowfield->buildin->fields['testsuite']['lastEditedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  345. $config->workflowfield->buildin->fields['testsuite']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '');
  346. $config->workflowfield->buildin->fields['caselib']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  347. $config->workflowfield->buildin->fields['caselib']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '');
  348. $config->workflowfield->buildin->fields['caselib']['name'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  349. $config->workflowfield->buildin->fields['caselib']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => '');
  350. $config->workflowfield->buildin->fields['caselib']['type'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  351. $config->workflowfield->buildin->fields['caselib']['addedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  352. $config->workflowfield->buildin->fields['caselib']['addedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  353. $config->workflowfield->buildin->fields['caselib']['lastEditedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  354. $config->workflowfield->buildin->fields['caselib']['lastEditedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  355. $config->workflowfield->buildin->fields['caselib']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '');
  356. $config->workflowfield->buildin->fields['feedback']['id'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  357. $config->workflowfield->buildin->fields['feedback']['product'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 1, 'default' => '');
  358. $config->workflowfield->buildin->fields['feedback']['module'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'select', 'options' => 42, 'default' => '');
  359. $config->workflowfield->buildin->fields['feedback']['title'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  360. $config->workflowfield->buildin->fields['feedback']['type'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 46, 'default' => '');
  361. $config->workflowfield->buildin->fields['feedback']['solution'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 47, 'default' => '');
  362. $config->workflowfield->buildin->fields['feedback']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => '');
  363. $config->workflowfield->buildin->fields['feedback']['status'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 39, 'default' => '', 'rules' => '1');
  364. $config->workflowfield->buildin->fields['feedback']['public'] = array('type' => 'enum', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '0');
  365. $config->workflowfield->buildin->fields['feedback']['notify'] = array('type' => 'enum', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '0');
  366. $config->workflowfield->buildin->fields['feedback']['notifyEmail'] = array('type' => 'varchar', 'length' => 100, 'control' => 'input', 'options' => '', 'default' => '');
  367. $config->workflowfield->buildin->fields['feedback']['source'] = array('type' => 'varchar', 'length' => 255, 'control' => 'input', 'options' => '', 'default' => '');
  368. $config->workflowfield->buildin->fields['feedback']['likes'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  369. $config->workflowfield->buildin->fields['feedback']['result'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  370. $config->workflowfield->buildin->fields['feedback']['faq'] = array('type' => 'mediumint', 'length' => 8, 'control' => 'input', 'options' => '', 'default' => '');
  371. $config->workflowfield->buildin->fields['feedback']['openedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  372. $config->workflowfield->buildin->fields['feedback']['openedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  373. $config->workflowfield->buildin->fields['feedback']['reviewedBy'] = array('type' => 'varchar', 'length' => 255, 'control' => 'select', 'options' => 'user', 'default' => '');
  374. $config->workflowfield->buildin->fields['feedback']['reviewedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  375. $config->workflowfield->buildin->fields['feedback']['processedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  376. $config->workflowfield->buildin->fields['feedback']['processedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  377. $config->workflowfield->buildin->fields['feedback']['closedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  378. $config->workflowfield->buildin->fields['feedback']['closedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  379. $config->workflowfield->buildin->fields['feedback']['closedReason'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 48, 'default' => '');
  380. $config->workflowfield->buildin->fields['feedback']['editedBy'] = array('type' => 'char', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  381. $config->workflowfield->buildin->fields['feedback']['editedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  382. $config->workflowfield->buildin->fields['feedback']['assignedTo'] = array('type' => 'varchar', 'length' => 255, 'control' => 'select', 'options' => 'user', 'default' => '');
  383. $config->workflowfield->buildin->fields['feedback']['assignedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  384. $config->workflowfield->buildin->fields['feedback']['feedbackBy'] = array('type' => 'varchar', 'length' => 100, 'control' => 'select', 'options' => 'user', 'default' => '');
  385. $config->workflowfield->buildin->fields['feedback']['mailto'] = array('type' => 'text', 'length' => '', 'control' => 'multi-select','options' => 'user', 'default' => '');
  386. $config->workflowfield->buildin->fields['feedback']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'select', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  387. $config->workflowfield->buildin->fields['ticket']['id'] = array('type' => 'mediumint', 'length' => '8', 'control' => 'input', 'options' => '', 'default' => '');
  388. $config->workflowfield->buildin->fields['ticket']['product'] = array('type' => 'mediumint', 'length' => '8', 'control' => 'select', 'options' => 1, 'default' => '');
  389. $config->workflowfield->buildin->fields['ticket']['module'] = array('type' => 'mediumint', 'length' => '8', 'control' => 'select', 'options' => 42, 'default' => '');
  390. $config->workflowfield->buildin->fields['ticket']['title'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  391. $config->workflowfield->buildin->fields['ticket']['type'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 70, 'default' => '');
  392. $config->workflowfield->buildin->fields['ticket']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  393. $config->workflowfield->buildin->fields['ticket']['openedBuild'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 10, 'default' => '');
  394. $config->workflowfield->buildin->fields['ticket']['feedback'] = array('type' => 'mediumint', 'length' => '8', 'control' => 'select', 'options' => 73, 'default' => '');
  395. $config->workflowfield->buildin->fields['ticket']['assignedTo'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  396. $config->workflowfield->buildin->fields['ticket']['assignedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  397. $config->workflowfield->buildin->fields['ticket']['realStarted'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  398. $config->workflowfield->buildin->fields['ticket']['startedBy'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  399. $config->workflowfield->buildin->fields['ticket']['startedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  400. $config->workflowfield->buildin->fields['ticket']['deadline'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  401. $config->workflowfield->buildin->fields['ticket']['pri'] = array('type' => 'tinyint', 'length' => 3, 'control' => 'select', 'options' => 71, 'default' => '');
  402. $config->workflowfield->buildin->fields['ticket']['estimate'] = array('type' => 'float', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  403. $config->workflowfield->buildin->fields['ticket']['left'] = array('type' => 'float', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  404. $config->workflowfield->buildin->fields['ticket']['consumed'] = array('type' => 'float', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  405. $config->workflowfield->buildin->fields['ticket']['status'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 72, 'default' => '');
  406. $config->workflowfield->buildin->fields['ticket']['openedBy'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  407. $config->workflowfield->buildin->fields['ticket']['openedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  408. $config->workflowfield->buildin->fields['ticket']['activatedCount'] = array('type' => 'int', 'length' => 10, 'control' => 'input', 'options' => '', 'default' => '');
  409. $config->workflowfield->buildin->fields['ticket']['activatedBy'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  410. $config->workflowfield->buildin->fields['ticket']['activatedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  411. $config->workflowfield->buildin->fields['ticket']['closedBy'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  412. $config->workflowfield->buildin->fields['ticket']['closedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  413. $config->workflowfield->buildin->fields['ticket']['finishedBy'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  414. $config->workflowfield->buildin->fields['ticket']['finishedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  415. $config->workflowfield->buildin->fields['ticket']['editedBy'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  416. $config->workflowfield->buildin->fields['ticket']['editedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  417. $config->workflowfield->buildin->fields['ticket']['resolvedBy'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  418. $config->workflowfield->buildin->fields['ticket']['resolvedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '');
  419. $config->workflowfield->buildin->fields['ticket']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'input', 'options' => '', 'default' => '0');
  420. $config->workflowfield->buildin->fields['demand']['id'] = array('type' => 'int', 'length' => '8', 'control' => 'input', 'options' => '', 'default' => '');
  421. $config->workflowfield->buildin->fields['demand']['pool'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '', 'default' => '0');
  422. $config->workflowfield->buildin->fields['demand']['module'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '', 'default' => '0');
  423. $config->workflowfield->buildin->fields['demand']['product'] = array('type' => 'varchar', 'length' => '255', 'control' => 'multi-select', 'options' => '', 'default' => '');
  424. $config->workflowfield->buildin->fields['demand']['parent'] = array('type' => 'mediumint', 'length' => '8', 'control' => 'select', 'options' => '', 'default' => '0');
  425. $config->workflowfield->buildin->fields['demand']['pri'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 74, 'default' => '');
  426. $config->workflowfield->buildin->fields['demand']['category'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 75, 'default' => '');
  427. $config->workflowfield->buildin->fields['demand']['source'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 76, 'default' => '');
  428. $config->workflowfield->buildin->fields['demand']['sourceNote'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  429. $config->workflowfield->buildin->fields['demand']['title'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  430. $config->workflowfield->buildin->fields['demand']['feedbackedBy'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  431. $config->workflowfield->buildin->fields['demand']['email'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  432. $config->workflowfield->buildin->fields['demand']['assignedTo'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  433. $config->workflowfield->buildin->fields['demand']['assignedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  434. $config->workflowfield->buildin->fields['demand']['reviewedBy'] = array('type' => 'text', 'length' => '', 'control' => 'multi-select', 'options' => 'user', 'default' => '');
  435. $config->workflowfield->buildin->fields['demand']['reviewedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  436. $config->workflowfield->buildin->fields['demand']['status'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 77, 'default' => '');
  437. $config->workflowfield->buildin->fields['demand']['duration'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 78, 'default' => '');
  438. $config->workflowfield->buildin->fields['demand']['BSA'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 79, 'default' => '');
  439. $config->workflowfield->buildin->fields['demand']['story'] = array('type' => 'mediumint', 'length' => '8', 'control' => 'select', 'options' => '', 'default' => '0');
  440. $config->workflowfield->buildin->fields['demand']['roadmap'] = array('type' => 'mediumint', 'length' => '8', 'control' => 'select', 'options' => '', 'default' => '0');
  441. $config->workflowfield->buildin->fields['demand']['createdBy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  442. $config->workflowfield->buildin->fields['demand']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  443. $config->workflowfield->buildin->fields['demand']['mailto'] = array('type' => 'text', 'length' => '', 'control' => 'multi-select', 'options' => 'user', 'default' => NULL);
  444. $config->workflowfield->buildin->fields['demand']['duplicateDemand'] = array('type' => 'mediumint', 'length' => '8', 'control' => 'select', 'options' => '', 'default' => NULL);
  445. $config->workflowfield->buildin->fields['demand']['childDemands'] = array('type' => 'varchar', 'length' => '255', 'control' => 'multi-select', 'options' => '', 'default' => '');
  446. $config->workflowfield->buildin->fields['demand']['version'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  447. $config->workflowfield->buildin->fields['demand']['changedBy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  448. $config->workflowfield->buildin->fields['demand']['changedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  449. $config->workflowfield->buildin->fields['demand']['closedBy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  450. $config->workflowfield->buildin->fields['demand']['closedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  451. $config->workflowfield->buildin->fields['demand']['closedReason'] = array('type' => 'varchar', 'length' => '30', 'control' => 'input', 'options' => '', 'default' => '');
  452. $config->workflowfield->buildin->fields['demand']['submitedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  453. $config->workflowfield->buildin->fields['demand']['lastEditedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  454. $config->workflowfield->buildin->fields['demand']['lastEditedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  455. $config->workflowfield->buildin->fields['demand']['activatedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  456. $config->workflowfield->buildin->fields['demand']['distributedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  457. $config->workflowfield->buildin->fields['demand']['distributedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  458. $config->workflowfield->buildin->fields['demand']['keywords'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  459. $config->workflowfield->buildin->fields['demand']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  460. $config->workflowfield->buildin->fields['charter']['id'] = array('type' => 'int', 'length' => '8', 'control' => 'input', 'options' => '', 'default' => '');
  461. $config->workflowfield->buildin->fields['charter']['name'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  462. $config->workflowfield->buildin->fields['charter']['level'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '84', 'default' => '0');
  463. $config->workflowfield->buildin->fields['charter']['category'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '85', 'default' => '');
  464. $config->workflowfield->buildin->fields['charter']['market'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => '86', 'default' => '');
  465. $config->workflowfield->buildin->fields['charter']['check'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => '', 'default' => '0');
  466. $config->workflowfield->buildin->fields['charter']['appliedBy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  467. $config->workflowfield->buildin->fields['charter']['appliedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  468. $config->workflowfield->buildin->fields['charter']['budget'] = array('type' => 'char', 'length' => '30', 'control' => 'input', 'options' => '', 'default' => '');
  469. $config->workflowfield->buildin->fields['charter']['budgetUnit'] = array('type' => 'char', 'length' => '30', 'control' => 'input', 'options' => '', 'default' => '');
  470. $config->workflowfield->buildin->fields['charter']['product'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => NULL);
  471. $config->workflowfield->buildin->fields['charter']['roadmap'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => NULL);
  472. $config->workflowfield->buildin->fields['charter']['plan'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => NULL);
  473. $config->workflowfield->buildin->fields['charter']['spec'] = array('type' => 'mediumtext', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  474. $config->workflowfield->buildin->fields['charter']['status'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '87', 'default' => '');
  475. $config->workflowfield->buildin->fields['charter']['createdBy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  476. $config->workflowfield->buildin->fields['charter']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  477. $config->workflowfield->buildin->fields['charter']['charterFiles'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => NULL);
  478. $config->workflowfield->buildin->fields['charter']['completionFiles'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => NULL);
  479. $config->workflowfield->buildin->fields['charter']['canceledFiles'] = array('type' => 'text', 'length' => '', 'control' => 'input', 'options' => '', 'default' => NULL);
  480. $config->workflowfield->buildin->fields['charter']['prevCanceledStatus'] = array('type' => 'varchar', 'length' => '30', 'control' => 'input', 'options' => '', 'default' => '');
  481. $config->workflowfield->buildin->fields['charter']['closedBy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  482. $config->workflowfield->buildin->fields['charter']['closedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  483. $config->workflowfield->buildin->fields['charter']['closedReason'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => '88', 'default' => '');
  484. $config->workflowfield->buildin->fields['charter']['activatedBy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  485. $config->workflowfield->buildin->fields['charter']['activatedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  486. $config->workflowfield->buildin->fields['charter']['reviewedBy'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  487. $config->workflowfield->buildin->fields['charter']['reviewedResult'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '89', 'default' => '');
  488. $config->workflowfield->buildin->fields['charter']['reviewedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  489. $config->workflowfield->buildin->fields['charter']['reviewStatus'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => '90', 'default' => 'wait');
  490. $config->workflowfield->buildin->fields['charter']['meetingDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  491. $config->workflowfield->buildin->fields['charter']['meetingLocation'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  492. $config->workflowfield->buildin->fields['charter']['meetingMinutes'] = array('type' => 'mediumtext', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  493. $config->workflowfield->buildin->fields['charter']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $lang->workflowfield->default->options->deleted, 'default' => '0');
  494. $config->workflowfield->buildin->fields['cm']['id'] = array('type' => 'int', 'length' => '8', 'control' => 'input', 'options' => '', 'default' => '');
  495. $config->workflowfield->buildin->fields['cm']['project'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '2', 'default' => '0');
  496. $config->workflowfield->buildin->fields['cm']['execution'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '44', 'default' => '0');
  497. $config->workflowfield->buildin->fields['cm']['product'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '1', 'default' => '0');
  498. $config->workflowfield->buildin->fields['cm']['title'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  499. $config->workflowfield->buildin->fields['cm']['category'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => '', 'default' => '');
  500. $config->workflowfield->buildin->fields['cm']['version'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  501. $config->workflowfield->buildin->fields['cm']['status'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => '91', 'default' => '');
  502. $config->workflowfield->buildin->fields['cm']['reviewResult'] = array('type' => 'varchar', 'length' => '20', 'control' => 'select', 'options' => '92', 'default' => '');
  503. $config->workflowfield->buildin->fields['cm']['reviewers'] = array('type' => 'text', 'length' => '', 'control' => 'multi-select', 'options' => '', 'default' => NULL);
  504. $config->workflowfield->buildin->fields['cm']['reviewOpinion'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  505. $config->workflowfield->buildin->fields['cm']['end'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  506. $config->workflowfield->buildin->fields['cm']['createdBy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  507. $config->workflowfield->buildin->fields['cm']['createdDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  508. $config->workflowfield->buildin->fields['cm']['deleted'] = array('type' => 'enum', 'length' => '', 'control' => 'radio', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '0');
  509. $config->workflowfield->buildin->fields['projectchange']['id'] = array('type' => 'int', 'length' => '8', 'control' => 'input', 'options' => '', 'default' => '');
  510. $config->workflowfield->buildin->fields['projectchange']['project'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '2', 'default' => '0');
  511. $config->workflowfield->buildin->fields['projectchange']['name'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  512. $config->workflowfield->buildin->fields['projectchange']['urgency'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => '93', 'default' => '');
  513. $config->workflowfield->buildin->fields['projectchange']['type'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => '', 'default' => '');
  514. $config->workflowfield->buildin->fields['projectchange']['deliverable'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => '94', 'default' => '');
  515. $config->workflowfield->buildin->fields['projectchange']['status'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => '95', 'default' => '');
  516. $config->workflowfield->buildin->fields['projectchange']['reviewResult'] = array('type' => 'varchar', 'length' => '20', 'control' => 'select', 'options' => '96', 'default' => '');
  517. $config->workflowfield->buildin->fields['projectchange']['reviewers'] = array('type' => 'text', 'length' => '', 'control' => 'multi-selec', 'options' => 'user', 'default' => '');
  518. $config->workflowfield->buildin->fields['projectchange']['reviewOpinion'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  519. $config->workflowfield->buildin->fields['projectchange']['owner'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  520. $config->workflowfield->buildin->fields['projectchange']['reason'] = array('type' => 'varchar', 'length' => '1000', 'control' => 'input', 'options' => '', 'default' => '');
  521. $config->workflowfield->buildin->fields['projectchange']['desc'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  522. $config->workflowfield->buildin->fields['projectchange']['deadline'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  523. $config->workflowfield->buildin->fields['projectchange']['createdBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  524. $config->workflowfield->buildin->fields['projectchange']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  525. $config->workflowfield->buildin->fields['projectchange']['editedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  526. $config->workflowfield->buildin->fields['projectchange']['editedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  527. $config->workflowfield->buildin->fields['projectchange']['deleted'] = array('type' => 'int', 'length' => '8', 'control' => 'radio', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '');
  528. $config->workflowfield->buildin->fields['risk']['id'] = array('type' => 'int', 'length' => '8', 'control' => 'input', 'options' => '', 'default' => '');
  529. $config->workflowfield->buildin->fields['risk']['project'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '2', 'default' => '0');
  530. $config->workflowfield->buildin->fields['risk']['execution'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '44', 'default' => '0');
  531. $config->workflowfield->buildin->fields['risk']['name'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  532. $config->workflowfield->buildin->fields['risk']['source'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '97', 'default' => '');
  533. $config->workflowfield->buildin->fields['risk']['category'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '98', 'default' => '');
  534. $config->workflowfield->buildin->fields['risk']['strategy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '99', 'default' => '');
  535. $config->workflowfield->buildin->fields['risk']['status'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => '100', 'default' => 'active');
  536. $config->workflowfield->buildin->fields['risk']['impact'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '101', 'default' => '');
  537. $config->workflowfield->buildin->fields['risk']['probability'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '102', 'default' => '');
  538. $config->workflowfield->buildin->fields['risk']['rate'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '103', 'default' => '');
  539. $config->workflowfield->buildin->fields['risk']['pri'] = array('type' => 'int', 'length' => '3', 'control' => 'select', 'options' => '104', 'default' => '3');
  540. $config->workflowfield->buildin->fields['risk']['identifiedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  541. $config->workflowfield->buildin->fields['risk']['prevention'] = array('type' => 'mediumtext', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  542. $config->workflowfield->buildin->fields['risk']['remedy'] = array('type' => 'mediumtext', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  543. $config->workflowfield->buildin->fields['risk']['plannedClosedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  544. $config->workflowfield->buildin->fields['risk']['actualClosedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  545. $config->workflowfield->buildin->fields['risk']['createdBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  546. $config->workflowfield->buildin->fields['risk']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  547. $config->workflowfield->buildin->fields['risk']['editedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  548. $config->workflowfield->buildin->fields['risk']['editedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  549. $config->workflowfield->buildin->fields['risk']['resolution'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  550. $config->workflowfield->buildin->fields['risk']['resolvedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  551. $config->workflowfield->buildin->fields['risk']['activateBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  552. $config->workflowfield->buildin->fields['risk']['activateDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  553. $config->workflowfield->buildin->fields['risk']['assignedTo'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  554. $config->workflowfield->buildin->fields['risk']['assignedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  555. $config->workflowfield->buildin->fields['risk']['closedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  556. $config->workflowfield->buildin->fields['risk']['closedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  557. $config->workflowfield->buildin->fields['risk']['cancelBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  558. $config->workflowfield->buildin->fields['risk']['cancelDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  559. $config->workflowfield->buildin->fields['risk']['cancelReason'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '105', 'default' => '');
  560. $config->workflowfield->buildin->fields['risk']['hangupBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  561. $config->workflowfield->buildin->fields['risk']['hangupDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  562. $config->workflowfield->buildin->fields['risk']['trackedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  563. $config->workflowfield->buildin->fields['risk']['trackedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  564. $config->workflowfield->buildin->fields['risk']['deleted'] = array('type' => 'int', 'length' => '8', 'control' => 'radio', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '');
  565. $config->workflowfield->buildin->fields['issue']['id'] = array('type' => 'int', 'length' => '8', 'control' => 'input', 'options' => '', 'default' => '');
  566. $config->workflowfield->buildin->fields['issue']['project'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '2', 'default' => '0');
  567. $config->workflowfield->buildin->fields['issue']['execution'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '44', 'default' => '0');
  568. $config->workflowfield->buildin->fields['issue']['title'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  569. $config->workflowfield->buildin->fields['issue']['desc'] = array('type' => 'mediumtext', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  570. $config->workflowfield->buildin->fields['issue']['pri'] = array('type' => 'int', 'length' => '3', 'control' => 'select', 'options' => '106', 'default' => '3');
  571. $config->workflowfield->buildin->fields['issue']['severity'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '107', 'default' => '');
  572. $config->workflowfield->buildin->fields['issue']['type'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '108', 'default' => '');
  573. $config->workflowfield->buildin->fields['issue']['deadline'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  574. $config->workflowfield->buildin->fields['issue']['resolution'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '109', 'default' => '');
  575. $config->workflowfield->buildin->fields['issue']['resolutionComment'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  576. $config->workflowfield->buildin->fields['issue']['resolvedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  577. $config->workflowfield->buildin->fields['issue']['resolvedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  578. $config->workflowfield->buildin->fields['issue']['status'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => '110', 'default' => '');
  579. $config->workflowfield->buildin->fields['issue']['owner'] = array('type' => 'varchar', 'length' => '255', 'control' => 'select', 'options' => 'user', 'default' => '');
  580. $config->workflowfield->buildin->fields['issue']['createdBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  581. $config->workflowfield->buildin->fields['issue']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  582. $config->workflowfield->buildin->fields['issue']['editedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  583. $config->workflowfield->buildin->fields['issue']['editedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  584. $config->workflowfield->buildin->fields['issue']['activateBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  585. $config->workflowfield->buildin->fields['issue']['activateDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  586. $config->workflowfield->buildin->fields['issue']['assignedTo'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  587. $config->workflowfield->buildin->fields['issue']['assignedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  588. $config->workflowfield->buildin->fields['issue']['assignedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  589. $config->workflowfield->buildin->fields['issue']['closedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  590. $config->workflowfield->buildin->fields['issue']['closedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  591. $config->workflowfield->buildin->fields['issue']['deleted'] = array('type' => 'int', 'length' => '8', 'control' => 'radio', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '');
  592. $config->workflowfield->buildin->fields['opportunity']['id'] = array('type' => 'int', 'length' => '8', 'control' => 'input', 'options' => '', 'default' => '');
  593. $config->workflowfield->buildin->fields['opportunity']['project'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '2', 'default' => '0');
  594. $config->workflowfield->buildin->fields['opportunity']['execution'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '44', 'default' => '0');
  595. $config->workflowfield->buildin->fields['opportunity']['name'] = array('type' => 'varchar', 'length' => '255', 'control' => 'input', 'options' => '', 'default' => '');
  596. $config->workflowfield->buildin->fields['opportunity']['source'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '111', 'default' => '');
  597. $config->workflowfield->buildin->fields['opportunity']['type'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '112', 'default' => '');
  598. $config->workflowfield->buildin->fields['opportunity']['strategy'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '113', 'default' => '');
  599. $config->workflowfield->buildin->fields['opportunity']['status'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => '114', 'default' => 'active');
  600. $config->workflowfield->buildin->fields['opportunity']['impact'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '115', 'default' => '0');
  601. $config->workflowfield->buildin->fields['opportunity']['chance'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '116', 'default' => '0');
  602. $config->workflowfield->buildin->fields['opportunity']['ratio'] = array('type' => 'int', 'length' => '8', 'control' => 'select', 'options' => '', 'default' => '0');
  603. $config->workflowfield->buildin->fields['opportunity']['pri'] = array('type' => 'int', 'length' => '3', 'control' => 'select', 'options' => '117', 'default' => '3');
  604. $config->workflowfield->buildin->fields['opportunity']['identifiedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  605. $config->workflowfield->buildin->fields['opportunity']['prevention'] = array('type' => 'mediumtext', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  606. $config->workflowfield->buildin->fields['opportunity']['assignedTo'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  607. $config->workflowfield->buildin->fields['opportunity']['assignedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  608. $config->workflowfield->buildin->fields['opportunity']['plannedClosedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  609. $config->workflowfield->buildin->fields['opportunity']['actualClosedDate'] = array('type' => 'date', 'length' => '', 'control' => 'date', 'options' => '', 'default' => NULL);
  610. $config->workflowfield->buildin->fields['opportunity']['desc'] = array('type' => 'mediumtext', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  611. $config->workflowfield->buildin->fields['opportunity']['createdBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  612. $config->workflowfield->buildin->fields['opportunity']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  613. $config->workflowfield->buildin->fields['opportunity']['editedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  614. $config->workflowfield->buildin->fields['opportunity']['editedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  615. $config->workflowfield->buildin->fields['opportunity']['activatedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  616. $config->workflowfield->buildin->fields['opportunity']['activatedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  617. $config->workflowfield->buildin->fields['opportunity']['closedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  618. $config->workflowfield->buildin->fields['opportunity']['closedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  619. $config->workflowfield->buildin->fields['opportunity']['canceledBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  620. $config->workflowfield->buildin->fields['opportunity']['canceledDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  621. $config->workflowfield->buildin->fields['opportunity']['cancelReason'] = array('type' => 'char', 'length' => '30', 'control' => 'select', 'options' => '118', 'default' => '');
  622. $config->workflowfield->buildin->fields['opportunity']['hangupedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  623. $config->workflowfield->buildin->fields['opportunity']['hangupedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  624. $config->workflowfield->buildin->fields['opportunity']['resolution'] = array('type' => 'text', 'length' => '', 'control' => 'richtext', 'options' => '', 'default' => NULL);
  625. $config->workflowfield->buildin->fields['opportunity']['resolvedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  626. $config->workflowfield->buildin->fields['opportunity']['resolvedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  627. $config->workflowfield->buildin->fields['opportunity']['lastCheckedBy'] = array('type' => 'varchar', 'length' => '30', 'control' => 'select', 'options' => 'user', 'default' => '');
  628. $config->workflowfield->buildin->fields['opportunity']['lastCheckedDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => NULL);
  629. $config->workflowfield->buildin->fields['opportunity']['deleted'] = array('type' => 'int', 'length' => '8', 'control' => 'radio', 'options' => $this->lang->workflowfield->default->options->deleted, 'default' => '');
  630. $config->workflowfield->upgrade = array();
  631. $config->workflowfield->upgrade['biz7.4']['productplan']['createdBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  632. $config->workflowfield->upgrade['biz7.4']['productplan']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  633. $config->workflowfield->upgrade['biz7.4']['testtask']['createdBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  634. $config->workflowfield->upgrade['biz7.4']['testtask']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  635. $config->workflowfield->upgrade['biz7.4']['build']['createdBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  636. $config->workflowfield->upgrade['biz7.4']['build']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');
  637. $config->workflowfield->upgrade['biz7.4']['release']['createdBy'] = array('type' => 'varchar', 'length' => 30, 'control' => 'select', 'options' => 'user', 'default' => '');
  638. $config->workflowfield->upgrade['biz7.4']['release']['createdDate'] = array('type' => 'datetime', 'length' => '', 'control' => 'datetime', 'options' => '', 'default' => '');