Show Table of Contents
6.6.3. 階層名
ノード名はスコープ内で固有でなければなりません。 ノードのスコープは、そのノードコレクションのことです (プロセス定義と super-state は、ノードコレクションです)。Super-state にあるノードを参照するためには、スラッシュ (
/) で分けた名前を指定しなければなりません (スラッシュはノード名を分けます。上位レベルを参照する場合は、. を利用します)。次のサンプルは、super-state にあるノードの参照する方法になります。
<process-definition>
<state name="preparation">
<transition to="phase one/invite murphy"/>
</state>
<super-state name="phase one">
<state name="invite murphy"/>
</super-state>
</process-definition>
次の例は親階層へ上がる方法を表しています。
<process-definition>
<super-state name="phase one">
<state name="preparation">
<transition to="../phase two/invite murphy"/>
</state>
</super-state>
<super-state name="phase two">
<state name="invite murphy"/>
</super-state>
</process-definition>
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.