Removed the deletion of WebEntry record when it is disabled. This attribute has no effect.
Fixed importation of processes with WebEntry task information.
This commit is contained in:
davidcallizaya
2017-06-01 16:54:48 -04:00
parent a845ba95cd
commit b533a87bd6
5 changed files with 187 additions and 92 deletions

View File

@@ -44,13 +44,13 @@ class WorkflowTestCase extends TestCase
* @param type $filename ProcessMaker file to be imported
* @return string PRO_UID
*/
protected function import($filename)
protected function import($filename, $regenerateUids=false)
{
$importer = new XmlImporter();
$importer->setSourceFile($filename);
return $importer->import(
XmlImporter::IMPORT_OPTION_CREATE_NEW,
XmlImporter::GROUP_IMPORT_OPTION_CREATE_NEW, true
$regenerateUids ? XmlImporter::IMPORT_OPTION_KEEP_WITHOUT_CHANGING_AND_CREATE_NEW : XmlImporter::IMPORT_OPTION_CREATE_NEW,
XmlImporter::GROUP_IMPORT_OPTION_CREATE_NEW, $regenerateUids
);
}