|
@@ 336-343 (lines=8) @@
|
| 333 |
|
|
| 334 |
|
$index = []; |
| 335 |
|
foreach ($metadata as $metadataItem) { |
| 336 |
|
if (!array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem) && !array_key_exists(static::WORKFLOW_MANAGER_ALIAS, $metadataItem)) { |
| 337 |
|
$errMsg = sprintf( |
| 338 |
|
'You must specify the %s or %s', |
| 339 |
|
static::WORKFLOW_MANAGER_NAME, |
| 340 |
|
static::WORKFLOW_MANAGER_ALIAS |
| 341 |
|
); |
| 342 |
|
throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg); |
| 343 |
|
} |
| 344 |
|
|
| 345 |
|
if (array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem) && array_key_exists(static::WORKFLOW_MANAGER_ALIAS, $metadataItem)) { |
| 346 |
|
$errMsg = sprintf( |
|
@@ 345-352 (lines=8) @@
|
| 342 |
|
throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg); |
| 343 |
|
} |
| 344 |
|
|
| 345 |
|
if (array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem) && array_key_exists(static::WORKFLOW_MANAGER_ALIAS, $metadataItem)) { |
| 346 |
|
$errMsg = sprintf( |
| 347 |
|
'You can not specify both %s and %s', |
| 348 |
|
static::WORKFLOW_MANAGER_NAME, |
| 349 |
|
static::WORKFLOW_MANAGER_ALIAS |
| 350 |
|
); |
| 351 |
|
throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg); |
| 352 |
|
} |
| 353 |
|
|
| 354 |
|
if (!array_key_exists(static::WORKFLOW_NAME, $metadataItem)) { |
| 355 |
|
$errMsg = sprintf('there is no option %s', static::WORKFLOW_NAME); |