Transitions as Triggers Workflow Example
1 min
transitions not only move an artifact from state to state, but can also trigger actions in the above example, a linear workflow, there are four states and three connecting transitions (a) this is the basic transition we've seen in previous examples (b) the second transition also includes a triggers element that indicates the transition also triggers one or more actions in this case, there is a single trigger child element that defines the triggered action the action is to send an email notification to a specific person this could also be multiple addresses, or a group of users (c) there are validity rules when defining xml the triggers element must precede the fromstate and tostate elements you can learn more about order in the workflow xml reference docid\ c3sps 3btrus1dn2iflok article the third transition triggers three different actions, hence the three trigger child elements in this example, this is a process artifact that is being transitioned to an approved state (d) the first action in the third transition is to generate user stories for a process artifact (e) the next action is to generate test cases for the process (f) the third action is to send a message to an external application via a webhook