PHP Class 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
]
]
Afficher le fichier
Open project: raoul2000/yii2-workflow
Méthodes publiques
Свойство |
Type |
Description |
|
$validate |
|
when TRUE, the parse method performs some validations |
|
Méthodes publiques
Méthode |
Description |
|
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. |
|
Method Details
parse()
abstract public méthode
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 |
|
Résultat |
array |
The parse workflow array definition |
validate()
public méthode
Validates an array that contains a workflow definition.
Property Details
$validate public_oe property
when TRUE, the parse method performs some validations