State Machines - Exit workflow and Trigger

  • What does the Exit part of a state do?
  • What does the Trigger part of the transitions do?
  • What is the difference between Exit and Trigger?
  • How do you specify multiple triggers for transition?
  • Is the trigger related to the Monitor Events activity?
  • Any example workflow of Exit or Trigger in use?
1 Like
  • What does the Exit part of a state do?
    it is just to close all the applications what we have opened in the init all application
  • What does the Trigger part of the transitions do?
    there are 2 things that transaction do one is to go to process if transaction item are there and if transaction items are not there then go to exit to kill the process
  • What is the difference between Exit and Trigger?
    Exit is like close the workflow and trigger is moving from one state to another
  • How do you specify multiple triggers for transition?
    we just need to drag and link to the next section to create a new trigger
  • Is the trigger related to the Monitor Events activity?
    No , Not specifically , it can also be for Unattended bots
  • Any example workflow of Exit or Trigger in use?
    Please check Advanced developer assignment one in Uipath academy , it has the explain of each state in detail and how we use it

Ps: Do check the Re Framework doc too:

2 Likes

Hi, my question is not regarding the REFramework, just state machines in general. I am just using REFramework to understand state machines and I want to extend this to other variations of state machines.

e.g. what does Exit part of a state do? - not referring to the Exit state in the REFramework but in the picture below

what does the Trigger part of transitions do? - not referring to specific implementation in REFramework but in the screenshot below (trigger as part of a transition). Does trigger mean that when this activity occurs then check for conditions below on where to direct the process flow?

What is difference between Exit and Trigger - not referring to Exit state in REFramework but in screenshot above, trigger is referring to the part of the transition in the screenshot above

Can we implement a Monitor Events activity to trigger the transition? Or is this redundant as per my understanding of a Trigger as an activity that the state listens to in order to trigger a transition

Example of Exit or Trigger in use - need an example which is not an REFramework, also here my question of Exit and Trigger is referring to the screenshots above, not exit as a state in REFramework and Trigger as different from the transition itself

Hi @DEATHFISH,

In statemachines we have 4 parts,

Entry,Exit,Trigger and condition.

So the major code is put in the Entry and after that the completion of the activities in the entry the next step it goes to Trigger and check whether any user events are specified in the trigger section which are used in attended automation, if there are no activities specifies then it checks the condition and comes back to the exit section of the statemachine and executes any actions you have mentioned.

For example, you are going to one state to another state and you are using some condition, if the condition is successfull you can use log message and print in exit section.

What if there are several transitions each with different trigger activities?

Hi @DEATHFISH,

If there are several transitions with different trigger activities, then the bot waits for the user to perform a particular action and after user performs an action the bot continues.

What is the query/detection order for multiple trigger actions? e.g. if all of the trigger actions are Message Box A,B,C,D

Hi,

You have to use trigger base activities, in the activities tab search for trigger.

Hey @DEATHFISH

  • What does the Exit part of a state do?
    -An activity executed when exiting the state.When a transition to another state is confirmed,the activities in the Exit action are executed, even if the state transitions back to the same state.After the exit action completes, the activities in the transition’s action execute

  • What does the Trigger part of the transitions do?
    -A trigger is an event that initiates a transition from one state to another.A trigger is an event that must occur for a transition to start.When the entry action is complete,it needs a condition(A constraint which must evaluate to true after the trigger occurs in order for the transition to complete).Typically the Trigger is an activity that waits for some type of event to occur.The trigger value can be null. If trigger is null, the transition is evaluated as soon as the entry action of the state is complete

  • What is the difference between Exit and Trigger?
    -By above 2 breif descriptions i guess You can find difference :slight_smile:

  • How do you specify multiple triggers for transition?
    -You can have multiple triggers for transition from one state to other state or same state. Just Respective to Uipath just drag connection point between states you can have triggers.

  • Any example workflow of Exit or Trigger in use?
    -How does State Machine work?

Regards…!!
Aksh

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.