Amazon web services 我们能否触发使用AWS Step函数构建的状态机的特定执行的特定活动?

Amazon web services 我们能否触发使用AWS Step函数构建的状态机的特定执行的特定活动?,amazon-web-services,aws-step-functions,Amazon Web Services,Aws Step Functions,使用GetActivityTaskAPI可以访问已经运行的状态机的任意一次随机执行的活动。是否可能获得特定执行的特定活动 假设我的状态机是- Start -> A -> B -> C -> End Execution1 : Start1 -> A1 -> B1 -> C1 -> End Execution2 : Start2 -> A2 -> B2 -> C2 -> End 如果我有executionId(Executi

使用GetActivityTaskAPI可以访问已经运行的状态机的任意一次随机执行的活动。是否可能获得特定执行的特定活动

假设我的状态机是-

Start -> A -> B -> C -> End

Execution1 : Start1 -> A1 -> B1 -> C1 -> End
Execution2 : Start2 -> A2 -> B2 -> C2 -> End
如果我有executionId(Execution1)和ActivityARN名称(A),我可以访问A1吗?如果不是,为什么AWS不允许这样做

要求:我想创建像这样的API

1> SubmitRequest - 
Input - Some input
Output - RequestId
它启动状态机的特定执行,并在执行活动a后返回。幕后机器运行B

2> GetC -
Input - RequestId
Output -  If the state machine is in correct state to call C we should run C and provide its output otherwise throw an exception.

因此,我基本上希望使用AWS step函数来管理我的应用程序的状态,如果在不正确的状态下调用API,则抛出异常。

如果我理解您的问题,API调用应该满足您的需要。它将让您看到每个状态和活动的执行状态,以及每个状态和活动的输入和输出