PMCORE-545 Public files in a process cannot be deleted (in Windows Server) when the process is imported

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-02-05 09:11:54 -04:00
parent 822ce71005
commit 6a09fb6ddd
12 changed files with 386 additions and 36 deletions

View File

@@ -0,0 +1,20 @@
<?php
use Faker\Generator as Faker;
$factory->define(\ProcessMaker\Model\BpmnProcess::class, function(Faker $faker) {
return [
'PRO_UID' => $faker->regexify("/[a-zA-Z]{32}/"),
'PRJ_UID' => function() {
return factory(\ProcessMaker\Model\BpmnProject::class)->create()->PRJ_UID;
},
'DIA_UID' => function() {
return factory(\ProcessMaker\Model\BpmnDiagram::class)->create()->DIA_UID;
},
'PRO_NAME' => $faker->title,
'PRO_TYPE' => 'NONE',
'PRO_IS_EXECUTABLE' => 0,
'PRO_IS_CLOSED' => 0,
'PRO_IS_SUBPROCESS' => 0,
];
});