State Machine

Created by akaBot Support, Modified on Fri, 4 Oct, 2024 at 2:35 PM by akaBot Support

Introduction to the "State Machine" Activity


Table of contents


Create a step-by-step guide


1. Activity program name

 

System.Activities.Statements.StateMachine 


2. Description

  • Up to Studio Version 2.0.2.0
    Quick Access: Toolbox > State Machine > State Machine 
  • From Studio Version 2.0.3.0 and later
    Quick Access: Toolbox > System > State Machine > State Machine 

This activity allows you to model the flow and structure of a workflow.

Tested on akaBot Studio versions: 2.2.0.5
Note: Terminology and wording may vary depending on the version.


3. Properties


Property item
Property name
Input field
Description
Other
Public
Check item
The variables and arguments within the activity are written to the log file and pushed to the Center. (For more details, refer to 'Public property item')
Display name
Anystring
Reflected in the activity name on the designer panel


4. Usage


Delete the 'Sequence' in advance. Right-click on the 'Sequence' and select 'Delete,' or select the 'Sequence' and press the Delete key to remove it.


 

Drag and drop System > State Machine > State Machine and place it.



[Reference] Multiple "States" can be placed within the "State Machine" as shown in the figure below.

Please also refer to the knowledge base on "State" or "Final State"


5. Additional information


In section 4. Usage, the "Sequence" was deleted before placing the "State Machine" on the designer panel, but there are several other ways to place it.

Examples of Placing the State Machine

  1. Delete the "Sequence" before placing the "State Machine"
    Refer to section 4. Usage.
  2. Place the "State Machine" inside the "Sequence"
    Instead of deleting the "Sequence" as in example ①, you can place the "State Machine" within the "Sequence" and use it accordingly.


3. Select "State Machine" from "New" at the top of akaBot Studio and place the "State Machine" as a different XAML file from the one currently being created. 



If you want to set the newly created State Machine XAML as the main workflow, right-click on the XAML displayed in the "Project Explorer" and select "Set as Main Workflow" to configure it.








Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article