As with any other Oqtane Module, select 'Add New Module' from the Oqtane Module Management screen. This will add a new Flow designer to your page. You only need one of these for your site as all Flows can be managed from the same designer.
Give your Flow a meaningful name and description.
"Requires Assigned User": This denotes whether workflows created by this Flow require an admin user to take ownership over that workflow. This can help keep the Workflow process consistent across actions, where a single admin user is responsible for managing the workflow and processing any steps that require admin input. Workflows also provide basic processing statistics, which include how many workflows are assigned to each admin user.
Note: If ANY properties exist that are required and entered during workflow processing, the 'Processed By' will default to User. The 'Processed By' system is only available if the action has all the necessary property values it needs to successfully execute the action (automated). This means that some actions can not be automated. This restriction is by design and depends on the properties for each action and whether the designer of the Flow has flagged any properties as 'For Workflow.'
When an action is 'Processed By' User, the 'Assigned to' dropdown is shown with the following options:
Admin: This item will appear in the 'Workflow Processing' module and be available for processing by users who have permissions to process workflows.
Source User: This action will appear in the 'Tasks' list for the person who triggered this workflow (usually the user logged in at the time).
Specific User: Enter the email address of a specific user to process this item.
This action sends an email to the user who triggered this Flow, with a 'Welcome.pdf' attachment. Because all of the properties were entered at Flow design time and no properties require user input, this action has been set to be processed by the system (automated).
Notice that all properties have been set in the Flow Designer; this makes this action eligible for automated system processing and because of this, we are not required to enter a prompt.
The only property of the 'User Task' action is 'Confirm.' This property is always entered when processing the workflow action. Therefore, we are unable to enter it when designing the flow.
As the 'Confirm' property is entered during workflow processing, we do not have the option to automate this action. Instead, for our onboarding, we assign this action to the source user (the user who triggered this action), and we set an appropriate prompt.
The 'Add User To Role' action has a single 'Role' property. If we know in advance what role we want to add the user to, we could set this property here and automate this action, but for our simple Onboarding example, we have specified that this will be entered when processing the workflow action.
We cannot automate this action, as it involves entering the Role property during workflow processing. Importantly, we have designated this action to be processed by an admin user, as we don't want the source user (the user who triggered this flow) to be able to add themselves to a role.