state-machine

How to parse stepfunction executionId to SageMaker batch transform job name?

霸气de小男生 提交于 2021-02-11 12:29:35
问题 I have created a stepfunction, the definition for this statemachine below ( step-function.json ) is used in terraform (using the syntax in this page:https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTransformJob.html) The first time if I execute this statemachine, it will create a SageMaker batch transform job named example-jobname , but I need to exeucute this statemachine everyday, then it will give me error "error": "SageMaker.ResourceInUseException", "cause": "Job name

How to extract part of the string from `$$.Execution.Name` in AWS step function?

不打扰是莪最后的温柔 提交于 2021-02-04 08:28:24
问题 From this page: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html I'm using "TransformJobName.$": "$$.Execution.Name" to define a dynamic SageMaker job name since the name needs to be unique otherwise statemachine will fail When I executed the statemachine, I got the error below: { "resourceType": "sagemaker", "resource": "createTransformJob.sync", "error": "SageMaker.AmazonSageMakerException", "cause": "2 validation errors detected: Value '808bxx-xxxx-xxxx

Iterate transition table (boost:msm) in runtime in order to read the associated event to an specific transition

强颜欢笑 提交于 2021-01-29 05:11:37
问题 I am new in MPL and Finite MSM from boost. I would like to iterate the transition table in order to get the associated transition event given 2 the transition states (current, next). I define and I get the transition table (vector50) like this: struct<my_state_machine_>{ (...) struct transition_table : boost::mpl::vector50< a_row < StateA ,eventAB ,StateB ,&my_machine_state_::action>, (...) > {}; }; typedef boost::msm::back::state_machine<my_state_machine_> my_fsm; typedef boost::msm::back:

What is the difference between a state machine and the implementation of the state pattern?

亡梦爱人 提交于 2020-07-28 06:02:05
问题 I wonder if a state machine is just the state pattern at work or if there is actually a difference between those two? I found this article with the bold title "the state design pattern vs state machine" but at the end of the day he only says that the state pattern makes state machines obsolete but then doesn't describe what exactly is a state machine compared to the implementation of the state pattern . 回答1: The way I describe this difference to my colleagues is that state patterns are a more

What is the difference between a state machine and the implementation of the state pattern?

久未见 提交于 2020-07-28 06:01:50
问题 I wonder if a state machine is just the state pattern at work or if there is actually a difference between those two? I found this article with the bold title "the state design pattern vs state machine" but at the end of the day he only says that the state pattern makes state machines obsolete but then doesn't describe what exactly is a state machine compared to the implementation of the state pattern . 回答1: The way I describe this difference to my colleagues is that state patterns are a more

LL top-down parser, from CST to AST

你离开我真会死。 提交于 2020-05-28 08:43:57
问题 I am currently learning about syntax analysis, and more especially, top-down parsing. I know the terminology and the difference with bottom-up LR parsers, and since top-down LL parsers are easier to implement by hand, I am looking forward to make my own. I have seen two kinds of approach: The recursive-descent one using a collection of recursive functions. The stack-based and table-driven automaton as shown here on Wikipedia. I am more interested by the latter, for its power and its