Workflows carry out your business rules when the activity changes between statuses you define. You can configure the Workflows to carry out many types of actions triggered by the status changes of a Transaction, Activity or even an Account.
Workflow Designer allows you to define flexible Workflows for Transactions, Activities and even Workflows for when Accounts are created.
Actions can be triggered for any combination of status changes (not only the three previously supported (Submitted, Revised, Awaiting approval).
Use the Workflow Designer to set different actions for Orders changing back and forth between statuses. Each of the status changes can trigger multiple actions.
This provides you with unlimited flexibility in defining exactly what happens at every point in your business process.
- Webhooks (web services)
- Conditional alerts
- Branch to another step in the workflow
- More... (full list of Workflow actions are detailed below)
You can view a live demonstration of use cases on this in depth webinar on the new Workflows here: Pepperi Product Education Webinar - New Workflows
We are also introducing Workflows for Accounts. You can now trigger actions such as notification, credit validation, Email, alerts, and more when a new Account (customer) is created by a user on the mobile device.
For example, trigger an address verification form to pop up when a user creates a new Account that verifies address fields such as City, State, Street against a predefined list.
A detailed lists of the actions available for Accounts is in the table below.
The Workflow Designer has an easy-to-follow visual flowchart representation. Workflows are still located in the same place in the Workflows tab of the Transaction, Account or Activity.
Each status change defined in the Workflow may have one or more Actions associated with it.
To Add a step, click "+Step" and give the Step a name. The step name will be used as the text on the "Submit" or "Done" button on the Transaction, Activity or Account creation form.
In the example below the name "Validate order" will appear instead of the text "Submit" on the shopping cart.
The actions defined in this step will be executed when the Transaction changes status from In creation to Submitted.
Building a workflow like the one shown in the diagram above requires you to add steps and actions for each of the required status changes, and then the diagram above will be automatically generated.
Actions are divided into "Actions and Branches" and "Post Actions"
The list of all actions shown here is explained in detail in the table below.
Actions are executed upon tapping the button on the activity that moves it to the next status in the Workflow.
|Actions (click for details)|
|Alerts and Notifications|
||This action displays an alert message in a dialog box with the option to Cancel or Continue. Cancel - dismisses the dialog and returns the user to what she was working on. Continue - continues to the next action or step in the workflow.|
||This action displays an alert message in a dialog box on the condition that the selected rule is evaluated to the indicated value (true/false). Cancel - dismisses the dialog and returns the user to what she was working on. Continue - continues to the next action or step in the workflow.|
||This action displays a notification message in a dialog box. The user clicks OK and the workflow continues to the next action or step.|
||The Workflow will be stopped on the condition that the selected rule is evaluated to the indicated value (true/false). A message will be displayed to the user, allowing them to go back and modify the order/activity accordingly.|
At the beginning of a Workflow check if there is an open Activity \ Transaction of the same type and for the same Account. If so, either ask the user if they want to continue it, and direct them to the list or force them to be directed to it, in which case it will be opened.
This action is available for the New to InCreation status transition only. This action is not available for Account Workflows (Activities and Transactions only).
||This action executes a Webhook and continues the Workflow|
||The Workflow will be stopped on the condition that the Webhook (web service) is evaluated to false. A message will be displayed to the user, allowing them to go back and modify the order/activity accordingly.|
||This action executes a Webhook and branches the workflow to another step based on the status selected in case of failure.|
|Custom Form||Open WEB customized form with any HTML code that you enter.|
|Branch Condition||This action evaluates a Boolean rule and branches the workflow to another step based on the status selected in case of failure. Select from a list of Boolean rules created in Custom Fields. Select the status in case the rule fails to evaluate.|
|Open Form||This action allows you to select a form that will be opened for the user to fill in. If the form does not contain fields marked as mandatory it will not be opened. Selecting \'Force always open\' will open the form even if does not contain mandatory fields.|
|Force Sync||This action forces the mobile app to sync. Use this action if you want the user to sync before beginning an activity to make sure they have the latest updates. For example, to make sure they have the latest item inventory before placing an order.|
|Split Order||This action splits the order among multiple locations (ie chains) and creates a separate Transaction for each location. Select the Transaction Type for the newly created orders.|
|Payment||Initiates an electronic payment via the provider configured in Pepperi. If the payment fails, you can choose an alternate status for the Transaction.|
|Capture Geolocation||Captures the Latitude and Longitude coordinates of the device (to custom fields of type Decimal value). You can capture the location not only upon submission, but during any other status change. An accuracy radius is captured as well (Decimal value).|
|Capture Date & Time||Captures the Date & Time and saves it in a custom field. This is actually a timestamp you can initiate at any point in the Transaction or Activity that allows you to capture when a specific event such as a change in status, payment, sync, or alert occurred. You can then display it on any form or report.|
|Send email||Send configurable email notification with attachment|
|Export File to FTP||This action will post a file in the format selected with the order/activity data to the Pepperi secure FTP server. This file can then be imported to any ERP/CRM or other system.|
|Distribute Activity||This action duplicates the Activity for multiple Accounts. Select the type for the newly created Activities.|
|Navigate to||After the Actions in this step are completed, the user will be redirected to the page they were on previously, an Activity List of your choice, or stay on the same page. Select from the options in the menu. The default is one screen back.|
|Update your stock on hand of the items in the Transaction by deducting the quantity from your current stock. And/or update the store's stock count of this item by adding the ordered quantity immediately upon submission. For details on this field (AccountInStockQuantity) see: Account inventory|