सेवा मेथड RequestTransition [SWS_SM_91107] Upstream: RS_SM_00001, RS_SM_00004
RequestTransition (IN TransitionRequestType TransitionRequest)
Has to be called by a SMControlApplication to request a change in the referenced StateMachine.
उपयोग
सर्विस विधि RequestTransition को इंटरफ़ेस StateMachineService पर एक SMControlApplication द्वारा कॉल किया जाता है, ताकि किसी संदर्भित StateMachine के स्थिति परिवर्तन का अनुरोध किया जा सके ([SWS_SM_91107], SWS StateManagement §7.7 “SMControlApplication”)। पैरामीटर के रूप में TransitionRequest पास किया जाता है। इस विधि के रिटर्न मान होते हैं और यह Fire-and-Forget सिद्धांत पर कार्य नहीं करती है। State Management वर्तमान स्थिति के आधार पर TransitionRequestTable के माध्यम से इनपुट मान को एक आगामी स्थिति पर मैप करता है ([SWS_SM_00607]) और परिणामी Function Group States का अनुरोध SetState() के माध्यम से Execution Management से करता है (AP EXP SWArchitecture §11.1 “Change System State”)।
त्रुटि प्रबंधन
त्रुटि की स्थिति में, प्रसंस्करण निरस्त हो जाता है और RequestTransition विशिष्ट एप्लिकेशन त्रुटियाँ लौटाता है ([SWS_SM_91107]):
kInvalidValue:TransitionRequestके लिए पास किया गया मानTransitionRequestTableमें कॉन्फ़िगर नहीं है ([SWS_SM_00604])।kTransitionNotAllowed: कॉन्फ़िगरेशन के अनुसारStateMachineकी वर्तमान स्थिति से यह संक्रमण (transition) अनुमत नहीं है ([SWS_SM_00603])।kRecoveryTransitionOngoing: एक आंतरिक त्रुटि सुधार सक्रिय है, जिस कारण अनुरोध को आगे संसाधित नहीं किया जाता है ([SWS_SM_00605])।kUpdateInProgress: सक्रिय अपडेट सत्र के दौरान स्थिति परिवर्तन अस्वीकार्य है ([SWS_SM_91107])।kTransitionFailed:ActionListItemsके निष्पादन के दौरान कोई त्रुटि उत्पन्न हुई है ([SWS_SM_00650])।
समवर्तीता और प्रतिबंध
यदि एक नए संक्रमण अनुरोध को स्वीकार कर लिया जाता है, जबकि उसी StateMachine के लिए एक पूर्व RequestTransition-कॉल अभी भी लंबित है, तो पिछले अनुरोध को रद्द कर दिया जाता है और kOperationCanceled के साथ स्वीकार (quittiert) किया जाता है ([SWS_SM_00606])। समय-नियंत्रित क्रियाएँ जैसे कि Sleep ActionListItem आने वाले ट्रिगर्स को ब्लॉक नहीं करती हैं; इसलिए एक RequestTransition-कॉल ऐसी प्रतीक्षा अवधि के दौरान भी स्थिति परिवर्तन को ट्रिगर कर सकती है (SWS StateManagement §7.7.9 “ActionListItem Sleep”)।
यह उपयोग नोट स्वचालित रूप से जनरेट किया गया था और पूरी तरह से AUTOSAR R25-11 के विनिर्देशों पर आधारित है।
इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I2)
| Scope | service interface StateMachineService |
|---|---|
| Fire & Forget | false |
| Version | 1.0 |
Parameter
| Name | Richtung | Typ | Beschreibung |
|---|---|---|---|
| TransitionRequest | IN | TransitionRequestType | Represents the value to be used as TransitionRequest value in the Transition RequestTable. |
Application Errors
| Fehler | Beschreibung |
|---|---|
| kInvalidValue | The provided value is not mapped to any transition. |
| kTransitionNotAllowed | Requested transition is not possible from current StateMachine state. |
| kRecoveryTransitionOngoing | Request will not be carried out, because currently recovery is ongoing. |
| kTransitionFailed | During transition to the requested state an error occurred. |
| kOperationCanceled | The request was replaced by a newer one and therefore it was cancelled |
| kUpdateInProgress | Requested operation is not allowed as update session is in progress. |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_SM_91107- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_SM_91107@rel:R25-11#d0cbc0a9- Content hash
d0cbc0a9- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_StateManagement.pdf#nameddest=SWS_SM_91107
Status: valid/unmigrated
Version: rel:R25-11#d4767b6b
Versionshistorie & Revisions (1 transition, 3 revision)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_SM_91107@rel:R25-11#d4767b6b
Recorded Revisions (3):
- R25-11
rel:R25-11#a5b9b5c32026-09-30 - R24-11
rel:R24-11#75ea2a2c2026-10-14 - R25-11
rel:R25-11#d4767b6b2026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · जर्मन मूल