Event-based flows
Event-based flows are one of the three flow types in PlentyONE Flow. The other two types are time-based flows and manual flows.
In event-based flows, the occurrence of a defined event triggers the flow run for the order concerned.
Examples will be added soon. |
1. Creating a new event-based flow
-
Go to Automation » Flow Studio.
→ The Flow Studio overview opens. -
Click on Create flow (add ) in the top left of the toolbar.
→ A stepper opens and guides you through the following three steps.-
General
-
Enter a unique name and, if necessary, a description for the new flow.
-
Click on Next.
-
-
Trigger
-
Select Event-based as the trigger.
-
Click on Next.
-
-
Settings
→ The dropdown lists Flow available in and Trigger selection appear.-
If required, select a UI from the optional drop-down list Flow available in.
→ The option to manually trigger the flow directly from the selected UI is added to the group functions in that UI.
Note: UIs currently selectable from this drop-down list: Order UI. -
From the mandatory dropdown list Trigger selection, select the event that is to trigger a flow run (and perform any additional settings required for that event). Refer to the explanations in the chapter Selecting the triggering event.
Note: If the trigger event has additional settings, then these are invariably mandatory. Without performing them, you will not be able to save the flow. -
Click on Save.
→ The flow is created.
→ The Flow Studio canvas appears, on which two elements are already displayed: The trigger type and the placeholder for the next step. Note: With some event-based flows you cannot save the flow if it consists of only a trigger. In such cases, you need to add at least one further step to be able to save the flow.
-
-
-
Now configure the new flow. Refer to the explanations in section Configure event-based Flows.
2. Selecting the triggering event
When creating an event-based flow in Flow Studio, you will be asked to select the triggering event from a drop-down list. The events are divided into categories.
Click on one of the following event categories for explanations of the available events.
-
Document category: Contains all document-related events that can trigger a follow-up action in Flow.
-
Order category: Contains all order-related events that can trigger a follow-up action in Flow.
-
Order item category: Contains all order item-related events that can trigger a follow-up action in Flow.
-
Purchase order category: Contains all purchase order-related events that can trigger a follow-up action in Flow.
-
Payment category: Contains all payment-related events that can trigger a follow-up action in Flow.
Note: Only one triggering event can be selected per flow.
Using filters
Once the triggering event has been defined, filters can be set in the lower section. This allows you to limit the triggering events to specific objects with specific properties. Multiple filters can be linked with AND/OR.
2.1. Document category
Event | Explanation |
---|---|
Document created |
Select this event if a flow run is to be triggered by the creation of a document in an order. Additional settings: Note: The corresponding document template must be set up before a document can be generated. Available document types
|
Document marked as faulty |
Select this event if a flow run is to be triggered by a document being marked as faulty. Additional settings: |
Document uploaded |
Select this event if a flow run is to be triggered by an external invoice or credit note being uploaded for an order. Additional settings: Available options:
|
Return label saved |
Select this event if a flow run is to be triggered when a return label is saved for an order. Additional settings: |
2.2. Order category
Event | Explanation |
---|---|
Order address changed |
Select this event if a flow run is to be triggered by the billing or delivery address being changed in the order. Additional settings: Available address types:
|
Order created |
Select this event if a flow run is to be triggered by the creation of an order. Additional settings: Available order types
Subscription Offer Order Warranty Credit note Delivery order Reorder Repair Return Return (by customer) Multi-order Multi credit note Redistribution Incomplete order Advance order |
Order note added |
Select this event if a flow run is to be triggered by an internal note being added to an order. Additional settings: |
Order note from customer |
Select this event if a flow run is to be triggered by an end customer adding a note to an order. Additional settings: |
Order payment method changed |
Select this event if a flow run is to be triggered by a payment method change in an order.+ Additional settings: Available options:
|
Order status changed |
Select this event if a flow run is to be triggered by an order changing to one of the selected order statuses. Additional settings: Available order statuses:
Incomplete data Waiting for payment & activation Activated, waiting for payment Waiting for activation Waiting for payment In waiting position Ready for shipping; waiting for payment Dunning letter sent In preparation for shipping Cleared for shipping External processing Currently being shipped Outgoing items booked Order exported Canceled Canceled by customer Return Items are checked Waiting for return from wholesale dealer Warranty initiated Exchange initiated Credit note created Warranty Credit note Credit note disbursed Repair Multi-order Multi credit note |
Order sums updated |
Select this event if a flow run is to be triggered by a change to the order total in an order. Additional settings: |
Order type changed |
Select this event if a flow run is to be triggered by an order changing to another order type. Additional settings: Available order types:
|
Outgoing items booked |
Select this event if a flow run is to be triggered by the outgoing items being booked automatically or manually for an order. Additional settings: |
Package number changed |
Select this event if a flow run is to be triggered by changing the package number in the order. Additional settings: |
Repair status changed |
Select this event if a flow run is to be triggered by an order changing to a different repair status. Additional settings: Note: Available for selection are the self-created repair statuses. |
2.3. Order item category
Event | Explanation |
---|---|
Warehouse of order items manually changed |
Select this event if a flow run is to be triggered by a manual change to the warehouse for the items in an order item. Additional settings: |
2.4. Payment category
Event | Explanation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Payment status |
Select this event if a flow run is to be triggered when an order changes to a different payment status. Additional settings: Available options:
|
2.5. Purchase order category
Event | Explanation |
---|---|
Purchase order finished |
Select this event if a flow run is to be triggered by the completion of a reorder or a redistribution. Additional settings: |
Purchase order initiated |
A flow run is triggered when a reorder or a redistribution is initiated. Additional settings: |
Status reordered goods |
Select this event if a flow run is to be triggered by the status change of an order of the type reorder or redistribution. Additional settings: Available statuses for reorders/redistributions:
Delivered Note: Depending on your selection here, the event triggering the flow run is a complete or partial booking in (for incoming items) or booking out (for outgoing items) of reordered stock. |
3. Configuring a new event-based flow
-
In the menu Automation » Flow Studio, open the existing flow.
Note: Refer to the section Create an event-based flow for information on how to create a new flow.
→ The Flow Studio canvas appears, which contains the first two elements of the flow:-
The blue element stands for the selected trigger event Note the information about the selected trigger event in the right-hand column of the canvas view.
-
The white element is a placeholder for the next flow step.
-
-
Select the next flow step from the column on the left and add it to the flow by dragging it to the appropriate position. The following options are available:
-
Actions: Here, you select the action to be performed for the orders that reach the respective stage in the flow. Use the Flow actions.
-
Controls: Here, you select the appropriate control for the flow step. The controls apply set filters to evaluate objects before routing them to the next step. Refer to the manual page Use the Flow controls for more information.
-
-
Add more actions and controls as necessary, until the business process has been fully mapped out.
-
Save (save) the flow regularly as you create it.