Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Wait On External System

Prev Next

Step Details

Introduced in Version---
Modified in Version---
LocationIntegrations 

The Wait On External System step monitors the External System (Service, External Database, etc.), for the desired condition. When this condition is met, it continues Flow execution on the Defined Outcome Path.


Properties

Assignment

PropertyDescriptionData Type
Assign ToUsed to define who (User Account, Group, or Email) the Assignment will be assigned to---
Assignment NameSets the name of the AssignmentString
Assignment Action NameSets the name of the Assignment ActionString
Assignment Reference IdUsed to reference the Assignment.String


Assignment Setup

PropertyDescriptionData Type
From Data

Accounts and GroupsAllows the user to define with Accounts and/or Groups the Assignment is sent from.List of String

Assignment RolesAllows the user to define which Roles the Assignment originates from.String

Exclude Accounts and GroupsAllows the user to specify with Accounts or Groups are excluded from the point of origin for the AssignmentList of String
Assignment Data

Assignment Folder TypeProvides options to dictate which Folder the Assignment is stored in.---

Assignment DescriptionAllows users to give the Assignment a Description value.String

Assignment Type DescriptionUsed to designate a Description for the Assignment's Type.String

Assignment PriorityUsed to assign a Priority level to the Assignment.String
Assignment Dates

Specify Start DateEstablishes the Start Date for the Assignment.---

Specify Warn DateEstablishes when to Warn the user about the Assignment's completion.---

Specify Late DateEstablishes when the Assignment is considered Late.---

Specify Escalate DateEstablishes when escalation actions will be taken against the Assignment.---

Specify Expiration DateSets when the Assignment expires.---
Assignment Events

Assignment Start Flow TypeAllows users to specify a Flow Type to run (None, SharedFlow, Private).---

Assignment Warn Flow TypeAllows users to specify a Flow Type to run (None, SharedFlow, Private).
---

Assignment Late Flow TypeAllows users to specify a Flow Type to run (None, SharedFlow, Private).
---

Assignment Escalate Flow TypeAllows users to specify a Flow Type to run (None, SharedFlow, Private).
---
Assignment Reuse

Reuse Assignment
---


NoDisables Reuse on the Assignment.
---


AlwaysAlways enables Reuse of the Assignment.
---


If Same AssigneeReuses the Assignment if it's Assigned to the same Assignee.
---



Rerun Startup FlowReruns the Startup Flow upon Reuse of the Assignment.
---



Resend EmailResends the Email upon Reuse of the Assignment.
---



Calculate New Assignment DatesAllows the ability to Calculate New Assignment Dates upon Reuse of the Assignment.
---



Keep Existing Assignment DescriptionMaintains the same Assignment Description upon Reuse of the Assignment.
---
Completed Form

Save Form Result ViewAllows the user to right-click the Form and view the completed Assignment.---
Additional Assignment Actions

Action DefinitionsAllows the user to define additional specific actions.---


Service Definition

PropertyDescriptionData Type
Generate ServiceAllows a user to define the name of a service.---

Service Name
Desired name for the service.---
Service OutcomesAllows the user to define outcome paths.---
Expose Data On ServiceAllows the data to be available to the parent Flow.---
Exclude All URL ParametersRemoves the options to set URL Parameters.---
Set Custom Callout URL Parameter NameAllows the user to set the Callback URL Parameter Name.---
URL Encode the Callback URLAllows the user to encode the Callback URL.---


Timer Settings

PropertyDescriptionData Type
Check Timespan From DataAllows the user to specify a time interval (seconds) to check for auto complete.---
Scenarios [Additional Outcomes for AutoComplete]Allows the user to set the outcome paths for auto completes.---
EDIT WAIT ON EXTERNAL SYSTEM 1 AUTO COMPLETE FLOWAllows a user to edit the Auto Complete Flow.---
Check Time SpanAllows users to specify the time span to check for changes.---


On Step Run

PropertyDescriptionData Type
Step Start Flow TypeAllows the user to choose where a SharedFlow, Private Flow or No Flow runs when the step starts.---
Specify Queue for Running the Start FlowBoolean

Queue Name for Running the Start FlowAllows the user to choose the queue for the Start Flow to run.
---


Email

PropertyDescriptionData Type
Email Notifications

Notification PolicyAllows the user to set the Notification policy when email is sent (None, Default, Custom).
Email Response Handling

Email HandlingAllows the user to select how emails are handled (None, Default, Email Response Only, Links Only).


DefaultSets notification to the Designer specified default.



NoneNo notification policy is set.



CustomSets a custom notification policy with options for subject and body entry.




Clean up HTMLRemoves unnecessary HTML in the notification email.




SubjectPrompts for the creation of a custom subject in the email.





Creates a custom email body.

Email TemplateAllows a user to choose the Email template or create a new template.



Default TemplateSets email to the default template.




Empty TemplateSets email to an empty template for quicker editing.




New Default TemplateAllows a user to create a new default template.


Outcomes

PropertyDescriptionData Type
Add Outcome for ExceptionWhen enabled, creates a new outcome path for the step. The step travels down this output path when an exception occurs.
---
Output Data ChangesWhen enabled, provides information on the state for the data passed through the step
---
Output Outcome NameWhen enabled, includes the outcome path name as an output
---
Cach OutcomesThis setting allows information to be stored on the outcome of the step, rather than creating a copy when the step finishes
---
Output Step Data As ListWhen enabled, allows all outputs from the step to be condensed into a list of DataPairs
---




Example

  1. From a Designer Project. select the CREATE FLOW button from the Global Action Bar. Then, select Flow, provide a Name, and click CREATE. 
  2. From the Flow Designer, in the Toolbox tab, attach a Get all from dbo.entity_account step from the INTEGRATION > DATABASE > LOCAL CONNECTION (DATABASE) > DBO.ENTITY_ACCOUNT (TABLE) category, to the Start step. Connect the Failed path to the End step.
  3. Select the Get all step to navigate to its Properties tab; under INPUTS > Limit count, change the mapping to Ignore
  4. Under Toolbox > INTEGRATION, attach a Wait On External System step to the Done path of the Get all from dbo.entity_account step. 
    The Wait on External System is an Assignment that is assigned to the External System, and functions as such. 
  5. Navigate to the Wait On External System step's Properties and under ASSIGNMENT provide the desired Assignment Name and Assignment Action Name. 
  6. Under SERVICE DEFINITION, uncheck Generate Service. Then, under Expose Data On Service, click Add New
    This definition will allow the Wait On External System step to operate via data from the Flow. 


  7. From the Add Expose Data on Service window, provide the Name "Accounts" and under Type select LOCALCONNECTION_dboentity_account   [TableDefinition.Types] from the dropdown menu. Check Is List, Can Be Null, and click click OK. 
  8. Set up the TIMER SETTINGS; first, click Add New under Scenarios [Additional Outcomes for AutoComplete].
    Note on Check Time Span 
    Setting Check Time Span to any time below 5 seconds is not recommended as it may affect system performance depending on the overall system load. Establishing this will trigger a warning message and highlight the Check Time Span settings in yellow.  
  9. In the resulting Scenarios window, Name the Scenario "AccountAdded". Then, under Parameters click ADD NEW.
    Each of these Scenarios will be an End step in the AutoComplete Flow for this step.
  10. From the Add Parameters window, Name the INPUT DATA Account, then select LOCALCONNECTION_dboentity_account  [TableDefinition.Types] from the Type dropdown menu. Then click OK to save and close the window. 
    This Parameter will represent when a single Account is added to the Account database. 

  11. Back in the Wait On External System step's Properties, define Check Time Span
    For the example, set the Time Span to monitor the database every 15 seconds. 
  12. Map entity_account_Result to INPUTS > Accounts; then click EDIT WAIT ON EXTERNAL SYSTEM AUTO COMPLETE FLOW.
    This Flow will monitor the External System and evaluating which outcome path the Flow should take; AccountAdded or StepNotComplete. 
  13. From the Flow Designer for the Auto Complete Flow, attach a Get all from dbo.entity_account from step from Toolbox > INTEGRATION > DATABASE > LOCAL CONNECTION (DATABASE)> DBO.ENTITY_ACCOUNT, to the Done path of the Start step. Then, from the Get All step's Properties, set Limit count to Ignore. Then, under ADVANCED, rename the Output Variable Name "Accounts_Results_New." 
  14. Connect the Failed path to Step Not Complete, then attach a Greater Than (Number) step from Toolbox > DATA > NUMBERS to the Done path. 
  15. Navigate to the Greater Than (Number) step's Properties and map NewAccountsResults to Value1 and entity_account_Result.Count to Value2.
  16. Attach the False path to Step Not Complete; then, from Toolbox > ITERATION, attach a ForEach Step to the True path. 
  17. Navigate to the ForEach Step's Properties and under INPUTS, map NewAccountsResults to Collection
  18. Attach a String is Not in List step from Toolbox > DATA > TEXT, to the Next path, then navigate to its Properties tab. 
  19. From the Properties tab under INPUTS, Constant map Case Insensitive as True, map entity_account_Result.All account_id to List, and Item.account_id to Value
  20. On the True path for the String is Not in List step, attach Create Data step from the FAVORITE STEPS category of the Toolbox. Navigate to the step's Properties then click SHOW EDITOR. 
  21. From the Data Definitions screen, Name the data Account, select LOCALCONNECTION_dboentity_account from the Type dropdown, and map [Item] to Input. Click CLOSE to exit and save the configuration. 
  22. Connect the Done outcome from the Create Data step to AccountAdded. Then, navigate to AccountAdded's Properties and map Account to its respective Input. 
  23. Connect the rest of the Outcome paths as follows, then Save and close the Flow. 
    Connect the False path from the String is Not in List step to the ForEach step.
    Connect the Done from the ForEach step to the Account Added step.

  24. Back in the Main Flow, attach a Send Email step from Toolbox > FAVORITE STEPS, to the AccountAdded path.

  25. Select the Send Email step to navigate to its Properties and define the EMAIL values; Constant map the desired From and To addresses. Then, Constant map the value, "Account Added," to the Subject. Set the mapping for Body to Merge Plain Text then click SHOW EDITOR. 

  26.  In the Merge Text Editor, use the Properties from the Account data on the left to compose the message, then click SAVE.

    Define the message as Account: [Account_account_id][Account_account_type] was added in the Database.

  27. Connect the Sent path back to the Get all from dbo.entity_account step. Then, Save the Flow, and if desired close via X

    This configuration allows the Flow to continue monitoring the External Database. 



Debug

  1. From the Flow Designer, select the Debug link from the top action bar. 
  2. Click START DEBUGGING. 
  3. Once the Flow reaches the Wait On External System step, navigate to the External Database and add a new record Accounts Database.
    Back in the Flow Debugger, the Wait On External System step detects that the new Account was added to the Database and continues Flow Execution.

  4.  Navigate to the email address of the To Input and verify that the new Account email sent.
  5. Repeat the process again to ensure that the Wait On External System step and the Flow function as intended. 

Related Information

Forum Posts:
Help With Wait On External System Step
How To Set A Wait On External System Step To Timeo