دالة خدمة 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 بواسطة SMControlApplication على الواجهة StateMachineService لطلب تغيير حالة لـ 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([SWS_SM_00603]).kRecoveryTransitionOngoing: عملية تصحيح أخطاء داخلية نشطة، ولهذا السبب لا تتم متابعة معالجة الطلب ([SWS_SM_00605]).kUpdateInProgress: أثناء جلسة تحديث نشطة، يكون تغيير الحالة غير مسموح به ([SWS_SM_91107]).kTransitionFailed: حدث خطأ أثناء تنفيذActionListItems([SWS_SM_00650]).
التزامن والقيود
إذا تم قبول رغبة انتقال جديدة بينما لا يزال استدعاء RequestTransition سابق معلقًا لنفس StateMachine، يتم إلغاء الطلب السابق والإقرار به عبر kOperationCanceled ([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#47dd4198- Content hash
47dd4198- 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 · الأصل الألماني