Skip to content

Commit

Permalink
minor #20490 [FrameworkBundle] [Workflow] fixed initial place config …
Browse files Browse the repository at this point in the history
…(HeahDude)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[FrameworkBundle] [Workflow] fixed initial place config

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #20458 (comment)
| License       | MIT
| Doc PR        | ~

Commits
-------

91237c9 [FrameworkBundle] [Workflow] Fixed initial place config
  • Loading branch information
lyrixx committed Nov 15, 2016
2 parents 67acdb0 + 91237c9 commit 1b6b08c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Expand Up @@ -281,6 +281,7 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
->end()
->end()
->end()
->scalarNode('initial_place')->defaultNull()->end()
->arrayNode('places')
->isRequired()
->requiresAtLeastOneElement()
Expand Down
Expand Up @@ -429,6 +429,9 @@ private function registerWorkflowConfiguration(array $workflows, ContainerBuilde
'type' => $type,
'marking_store' => isset($workflow['marking_store']['type']) ? $workflow['marking_store']['type'] : null,
));
if (isset($workflow['initial_place'])) {
$definitionDefinition->addArgument($workflow['initial_place']);
}

// Create MarkingStore
if (isset($workflow['marking_store']['type'])) {
Expand Down
Expand Up @@ -242,6 +242,7 @@
<xsd:element name="transitions" type="transitions" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="initial-place" type="xsd:string" />
</xsd:complexType>

<xsd:complexType name="marking_store">
Expand Down

0 comments on commit 1b6b08c

Please sign in to comment.