Merged in darojas/processmaker (pull request #617)
Se quita la validacion para evn_name en BpmnWorkflow. Este campo no sera requerido. Cambios en Behat
This commit is contained in:
@@ -209,5 +209,4 @@ Scenario Outline: Create new Projects (Negative Tests)
|
|||||||
| Field required prj_name | | Prueba | Task # 1 | TASK | End # 1 | EMPTY | 400 | prj_name |
|
| Field required prj_name | | Prueba | Task # 1 | TASK | End # 1 | EMPTY | 400 | prj_name |
|
||||||
| Field required act_name | Test negative project 2 | Prueba 1 | | TASK | End # 1 | EMPTY | 400 | act_name |
|
| Field required act_name | Test negative project 2 | Prueba 1 | | TASK | End # 1 | EMPTY | 400 | act_name |
|
||||||
| Field required act_type | Test negative project 3 | Prueba 2 | Task # 1 | | End # 1 | EMPTY | 400 | act_type |
|
| Field required act_type | Test negative project 3 | Prueba 2 | Task # 1 | | End # 1 | EMPTY | 400 | act_type |
|
||||||
| Field required evn_name | Test negative project 4 | Prueba 3 | Task # 1 | TASK | | EMPTY | 400 | evn_name |
|
|
||||||
| Field required evn_marker | Test negative project 5 | Prueba 4 | Task # 1 | TASK | End # 1 | | 400 | evn_marker |
|
| Field required evn_marker | Test negative project 5 | Prueba 4 | Task # 1 | TASK | End # 1 | | 400 | evn_marker |
|
||||||
@@ -566,9 +566,6 @@ class BpmnWorkflow extends Project\Bpmn
|
|||||||
}
|
}
|
||||||
$events = $projectData['diagrams']['0']['events'];
|
$events = $projectData['diagrams']['0']['events'];
|
||||||
foreach ($events as $value) {
|
foreach ($events as $value) {
|
||||||
if (empty($value['evn_name'])) {
|
|
||||||
throw new \Exception("For event: {$value['evn_uid']} `evn_name` is required but missing.");
|
|
||||||
}
|
|
||||||
if (empty($value['evn_type'])) {
|
if (empty($value['evn_type'])) {
|
||||||
throw new \Exception("For event: {$value['evn_uid']} `evn_type` is required but missing.");
|
throw new \Exception("For event: {$value['evn_uid']} `evn_type` is required but missing.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user