服务方法 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。该方法具有返回值,且不按照发后即忘原则工作。State Management 根据当前状态通过 TransitionRequestTable 将输入值映射到后续状态([SWS_SM_00607]),并通过 SetState() 向 Execution Management 请求所产生的 Function Group States(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])。
并发性与限制
如果在针对同一 StateMachine 仍有先前的 RequestTransition 调用挂起时接受了新的转换请求,则先前的请求将被中止并以 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#16c2f7bf- Content hash
16c2f7bf- 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 · 德文原文