Adding PublicationRef and ConsequenceCode#209
Conversation
Need: Data consumers want to track the ParametrisedAction of one or several Consequences Change: - Adding `PublicationRef` to identify a `ParametrisedAction` for easier updates on data consumers side - Adding `ConsequenceRef` in `ParametrisedAction` to strenghten the link between the Consequence of a Situation and its publication - Adding `ConsequenceCode` in `PtConsequence` as a unique identifier of the Consequence that can be referrenced elsewhere
|
I don't understand the need. For now -1. |
We discussed it at the previous SIRI-SX task force meeting. Let me detail the context to better reflect what was presented. 😊 ==> Change done at the beginning of the PR |
|
On 22 April, discussions
|
haeckerbaer
left a comment
There was a problem hiding this comment.
Please add an example that details in what scenarios these new references can/should be used (as already discussed in the SX task force). Otherwise approved
|
@haeckerbaer , after your review I edited:
|
removal of typo Co-authored-by: Stefan de Konink <stefan@konink.de>
Clarifying the section without service to distinguish better the 2 consequences
fix the Affects part in the Consequence with noService
|
@haeckerbaer , @skinkie and @thbar , I fixed the example. Ready for your final review! |
|
it looks good. |
skinkie
left a comment
There was a problem hiding this comment.
I want this being discussed in the group.
| <xsd:documentation>Data associated with action.</xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:element> | ||
| <xsd:element name="PublicationRef" type="xsd:NMTOKEN" minOccurs="0"> |
There was a problem hiding this comment.
I don't see why this should be tracked with extra references.
| <xsd:documentation>Type for disruption.</xsd:documentation> | ||
| </xsd:annotation> | ||
| <xsd:sequence> | ||
| <xsd:element name="ConsequenceCode" type="xsd:NMTOKEN" minOccurs="0"> |
There was a problem hiding this comment.
This linking causes overly complex parsing. Notice that the example has multiple ConsequenceRef's.
There was a problem hiding this comment.
@skinkie, indeed the example has multiple ConsequenceRef as it exactly describes the context presented at the top of the PR. The idea is that some PublishingAction can refer to several consequences while other are dedicated to only one consequence of the same situation.
There was a problem hiding this comment.
I think is the wrong solution for the problem. It creates relationships within the document not able to be checked or enforced.
There was a problem hiding this comment.
The problem to solve here is the case of a SituationExchange that has several different consequences and several messages describing the situation.
In this case, for a single SituationExchange, there can be several complementary messages (PublishingAction):
- PublishingActions with a text that describes only one of the consequences (one action for each consequence)
- A PublishingAction with a text that describes several consequences (one action describing all the consequences)
Depending on the context, a system using the SituationExchange needs to be able to choose between the more specific version of the message for a specific consequence (for example, a display at a specific bus stop for a specific line) or the broader version of the message whose text describes all the consequences in a single optimized message (for example, a display in the hall of a bus station to optimize screen usage).
There was a problem hiding this comment.
The question is more in the direction: is the document structure wrong for this. If it does not logically flow that PublishingActions are related to Consequences.
There was a problem hiding this comment.
The document structure does not seem fundamentally wrong to me.
Adding this kind of relationship between Consequence and PublishingAction is, in my view, similar to the SituationRef found in the SMDelivery (IIRC). It would provide an attribute indicating that a publishing action (i.e., a message) is associated with one or more consequences.
Request primarily made by the French mirror group.
Context - Real-life example
What is happening in real life:
As of today, on the data consumers' side:
Hence, the double need:
Change request
PublicationRefto identify aParametrisedActionfor easier updates on data consumers sideConsequenceRefinParametrisedActionto strenghten the link between the Consequence of a Situation and its publicationConsequenceCodeinPtConsequenceas a unique identifier of the Consequence that can be referrenced elsewhereIt would allow something like this:
This request for change was discussed on 7 Apil 2026 in the SIRI-SX task force with positive outcome.