PHP Класс raoul2000\workflow\source\file\WorkflowArrayParser
The normalized form implements following rules :
- key 'initialStatusId' : (mandatory) must contain a status Id defined in the status Id list
- key 'status' : (mandatory) status definition list - its value is an array where each key is a status Id
and each value is the status configuration
- all status Ids are absolute
TBD
example :
[
'initialStatusId' => 'WID/A'
'status' => [
'WID/A' => [
'transition' => [
'WID/B' => []
'WID/C' => []
]
]
'WID/B' => null
'WID/C' => null
]
]
Показать файл
Открыть проект
Открытые свойства
Свойство |
Тип |
Описание |
|
$validate |
|
when TRUE, the parse method performs some validations |
|
Открытые методы
Метод |
Описание |
|
parse ( string $wId, array $definition, raoul2000\workflow\source\file\WorkflowFileSource $source ) : array |
Parse a workflow defined as a PHP Array. |
|
validate ( string $wId, IWorkflowSource $source, string $initialStatusId, array $startStatusIdIndex, array $endStatusIdIndex ) |
Validates an array that contains a workflow definition. |
|
Описание методов
parse()
абстрактный публичный Метод
The workflow definition passed as argument is turned into an array that can be
used by the WorkflowFileSource components.
abstract public parse ( string $wId, array $definition, raoul2000\workflow\source\file\WorkflowFileSource $source ) : array |
$wId |
string |
|
$definition |
array |
|
$source |
raoul2000\workflow\source\file\WorkflowFileSource |
|
Результат |
array |
The parse workflow array definition |
validate()
публичный Метод
Validates an array that contains a workflow definition.
Описание свойств
$validate публичное свойство
when TRUE, the parse method performs some validations