System Administration
Create a Workflow
Workflow is an email notification method called from within a WebApp where an email is sent upon the execution of an event. If a workflow requires a user to log in to the Stewardship Tier in order to perform a function, a link can be included in the email to navigate directly to the relevant page in the WebApp.
Workflow is used in situations where groups, users and fields outside the context of a particular page are needed, or when the decisions to manually send an email are particularly complex.
Setting up a workflow involves:
- Create a workflow view in SQL Server.
- Register the view in the Stewardship Tier
- Configure Workflow Fields
- Configure Workflow Links
Types of Workflow
Standard
Semi-anonymous
Using semi-anonymous is convenient for the user. When the link in the email is clicked, the user is automatically signed into their account without entering credentials. To use semi-anonymous workflow authentication, design the workflow view to use a Stewardship Tier User ID in the To field instead of an email address. The Stewardship Tier looks up the user’s email address in the user’s account in order to send the workflow email. When the recipient clicks the workflow link in the email, they are automatically logged in as the specified user. The WorkflowUserID field is ignored.
If the site parameter Support Workflow Authentication is disabled, the recipient must log into the Stewardship Tier when they click the workflow link. Refer to Parameters for more information on this field.
Anonymous
When using anonymous, the email address recipient does not have or need to have their own account to log in. To use anonymous workflow authentication, specify a WorkflowUserID on the Workflow page in System Administration. The WorkflowUserID select list is populated with only anonymous users. Make sure the anonymous user selected has permissions to the page to which it is linked. The email is sent to the email address specified in the To field of the workflow view. Upon clicking the link in the email, the user is automatically logged in as the anonymous user selected.
Register Workflow Views
Once the view is created, the view must be registered in the Stewardship Tier. Each row in this view represents one email. If this view includes two rows for a specific key from the source page, two emails are sent.
To register a workflow view:
-
Select WebApps in the Navigation pane.
-
Click Pages for a WEB APP NAME.
-
Click Events for a DESCRIPTION.
NOTE: The DESCRIPTION is the name of the page.
NOTE: If no records exist, the page displays in add mode. Otherwise, click Add.
-
Select an option from the EVENT list box.
-
The ACTIVE check box is enabled by default.
-
Select an option from the EVENT PROCESS TYPE ID list box.
-
Click Save; the Vertical View displays.
-
Enter the Pre Message, Post Message and Comments for the event on the General tab.
NOTE: It is very unlikely that a user will need to change the options in the Advanced Properties tab (step #9) when setting up a workflow. Most users can skip this step and continue with step #10.
-
Click the Advanced Properties tab.
-
Select an option from the Transaction Method list box.
-
Select an option from the Function list box.
-
Select an option from the Event Level list box.
-
Click the Public check box to enable it, allowing the event to be called via a Business Rule from a page in any WebApp.
-
Select an option from the Page View Type list box.
-
-
Click Save.
-
Click Business Rules for an EVENT.
NOTE: The business rule will run when this event is executed.
NOTE: If no records exist, the page displays in add mode. Otherwise, click Add.
View the field descriptions for the Page Business Rules page.
-
Enter the value in PRIORITY field.
NOTE: If multiple business rules exist for the page, this number indicates the order in which they are run.
-
Verify ACTIVE check box is enabled.
-
Select Workflow from PROCEDURE TYPE list box.
-
Click Save; Vertical View displays.
-
Select the workflow view from the Alternate View list box.
-
Select a value from the Message Type ID list box.
-
Enter a description in Comment field.
-
Select an ID from Link User ID field.
NOTE: The Link User ID is used for anonymous users. This list box displays all Anonymous user accounts.
-
Enter a value in Link Expire Days.
NOTE: Link Expire Days controls the number of days the workflow link is active and therefore accessible.
-
Click Link Reuse check box.
NOTE: Link Reuse enables the workflow link to be used multiple times until it expires. Otherwise, the user is denied access to the workflow link after one use.
-
Select an ID from Link to Page ID list box.
NOTE: The Link to Page ID field controls the page that opens when the user clicks the link. Options in this list box display as [Component Name : Page Name], e.g., Collect : Copy Targets.
-
Click the Link To Page Restricted check box to enable it.
NOTE: The Link To Page Restricted restricts page access between two pages bound by key fields. Disable the check box to deactivate the option and allow a link from one page to another without restrictions. This property is used in conjunction with the Binding Field Names option. Normally when two pages contain shared key fields (such as Orders and Order Details), restrict the link to page by binding key. Turning this option off allows the user to link from one page to another without restriction.
-
Enter field names in Binding Field Names field, if applicable.
NOTE: Binding fields are required when the primary keys are not available or if the primary keys have different names. They are needed when the linking relationship cannot be inferred, because keys are either not defined or have different names from parent to child. Specify them here as one or more parent=child pairs, separated by commas. For example: CustomerID=CustID; or EmployeeID=EmployeeID, Department=DepartNo. (=child portion may be omitted if names are not different.)
-
Click the + next to Advanced Properties label to configure additional workflow properties.
-
Click the Run On Validate check box to execute the workflow if the corresponding validation rule returns zero records or if it returns records with a severity level less than Error.
-
Click the Run On Validate Fail check box to execute the workflow if the corresponding validation rule returns any record that fails with a severity level of Error.
-
Click the Force Foreground Execution check box to execute the workflow in the foreground.
NOTE: If the user should be notified that a workflow is being sent, then it should be set to run in the foreground. If the workflow will take a long time to send (e.g. emails are being sent to many users) than it might be better to run in the background.
-
Click the Workflow Fields button to configure the workflow fields. Refer to Configure Workflow Fields for more information about configuring the workflow email sent with this workflow.
-
Click the Workflow Links button to create custom workflow links. Refer to Configure Workflow Links for more information.
NOTE: The Workflow Links button is not accessible until Save is clicked.
-
Click Save.
Configure Workflow Fields
The workflow fields determine what is displayed in the subject line, body text, and other fields of the workflow. These fields must be added to the view and aliased correctly to be utilized in the workflow.
To configure the workflow fields:
- Select WebApps in the Navigation pane.
- Click the Pages icon for a WEB APP NAME.
- Click the Events icon for a DESCRIPTION.
- Click the Business Rules icon for an EVENT.
- Click Vertical View for a business rule with a PROCEDURE TYPE of Workflow.
- Click Workflow Fields.
- Click Edit.
-
Select a field from the From list box.
NOTE: Displays the column name from the Alternate View that contains the sender’s email address.
-
Select a field from the To list box.
NOTE: Displays the column name from the Alternate View that contains the email address(es) or userID(s) of the TO recipients.
-
Select a field from the CC list box.
NOTE: Displays the column name from the Alternate View that contains the email address(es) or userID(s) of the CC recipients. If the workflow contains a link, each recipient receives a separate notification or email.
-
Select a field from the BCC list box.
NOTE: Displays the column name from the Alternate View that contains the email address(es) or userID(s) of the BCC recipients. If the workflow contains a link, each recipient receives a separate notification or email.
-
Select a field from the Subject list box.
NOTE: Displays the column name from the Alternate View that contains the subject of the email.
-
Select a field from the Body list box.
NOTE: Displays the column name from the Alternate View that contains the content of the email. If Support Workflow Authentication is enabled (on the Parameterspage), disclaimer text (to inform the email recipient that any user who clicks the workflow link is automatically authenticated based on the email recipient’s user account) appears above the Body text.
-
Select a field from the Email Attachment list box.
NOTE: Displays the column name from the Alternate View where the paths to the file attachment(s) are specified.
-
Click Save.
NOTE: When a workflow is executed, the WorkflowedBy and WorkflowedOn fields are updated in the page table, if the table exists.
Configure Workflow Links
A workflow can contain a link that navigates a user to a specific page to then perform a function, such as viewing data or clicking a button to trigger an event. If the recipient of a workflow is to trigger an event, such as clicking an Accept button to approve a Purchase Order, the event can be invoked from within the email or notification message. If a workflow link is clicked in an email, a new browser opens prompting the user to sign in to Stewardship Tier (if the user is not anonymous or semi-anonymous).
Before the workflow links can be configured, the required workflow fields must be populated. Refer to Configure Workflow Fields for more information. The Workflow Links button is disabled until Workflow Fields have been configured.
To configure event links within a workflow:
-
Select Admin > WebApps in the Navigation pane.
-
Click Pages for a WEB APP NAME.
-
Click Events for a DESCRIPTION.
-
Click Business Rules for an EVENT.
-
Click Vertical View for a business rule with a PROCEDURE TYPE of Workflow.
-
Click Workflow Links button.
NOTE: If no records exist, the page displays in add mode. Otherwise, click Add.
-
Enter a name in LINK field.
NOTE: This text displays as the link name in the workflow email.
-
Select an event from Link to Event list box.
NOTE: The values in the Link to Event list box are events registered to the page selected for the LinkToPageID column on the Page Business Rules Vertical view.
-
Enter a priority in SORT ORDER field.
NOTE: The SORT ORDER determines the order of the links, from left to right.
-
Click Save.