def create(self): # x:30 y:365, x:599 y:427 _state_machine = OperatableStateMachine(outcomes=['finished', 'failed']) # Additional creation code can be added inside the following tags # [MANUAL_CREATE] # [/MANUAL_CREATE] with _state_machine: # x:378 y:183 OperatableStateMachine.add('start', InputState(request=integer, message=eeeee), transitions={'received': 'eeeeeeeeeee', 'aborted': 'failed', 'no_connection': 'eeeeeeeeeee', 'data_error': 'finished'}, autonomy={'received': Autonomy.Off, 'aborted': Autonomy.Off, 'no_connection': Autonomy.Off, 'data_error': Autonomy.Off}, remapping={'data': 'data'}) # x:1115 y:242 OperatableStateMachine.add('eeeeeeeeeee', DecisionState(outcomes="LOL", conditions=input_value > 0), transitions={'LOL': 'failed'}, autonomy={'LOL': Autonomy.Off}, remapping={'input_value': 'data'}) # x:808 y:383 OperatableStateMachine.add('lmFAOR', CalculationState(calculation=54x-5w), transitions={'done': 'finished'}, autonomy={'done': Autonomy.Off}, remapping={'input_value': 'input_value', 'output_value': 'output_value'}) return _state_machine