Using the Form Assignment Handler Flow Behavior
  • Updated on 31 Mar 2015
  • 3 minutes to read
  • Print
  • Dark
    Light

Using the Form Assignment Handler Flow Behavior

  • Print
  • Dark
    Light

Overview

Automated actions, such as tagging a Form assignment, can occur at the moment a form is assigned by utilizing ourForm Assignment Handler flow behavior.

Example

This example demonstrates how to tag Form assignment at the time when the Form is being assigned. We begin with creating a Main Flow with anAssigned Form . In the Designer Folder we click Create Flow button on the Folders Actions panel.
Create-Flow-991.jpg

In the resulting window we Name the Flow and click Create to proceed to the Flow Designer .
2016-12-30_135608.png

In the Flow Designer we add Show Form step from the Favorite Steps category in the Quick Add Step dialog*.*

2016-12-30_140350.png

Next, we name our Form and click Create to proceed to the Form Designer.

2016-12-30_140440.png

Our Form for this example is designed as following… It has only two Button controls from Actions category in the Toolbox .

2016-12-30_140636.png

When finished, we can save and close Form Designer to return back to the Flow Designer.
Back in the Flow Designer we connect both outcomes from our Form to the End step in our Flow . With Form step selected on the workspace we navigate to the Form setting. We change Assignment Type option from In Session to Assigned .

2016-12-30_140951.png

Because every Assigned Form has to have at least one assignee, we click [edit] Assignment . In the resulting pop up window we add All Users group to the Assign to Groups box. Then we click Done . Then, we can save and close Flow Designer for the Main Flow.

2016-12-30_141144.png

Now, we need to create an Assignment Handler for ourMain Flow . In the Designer Folder we clickCreate Flow to create a new Flow .
Create-Flow-992.jpg

In the resulting window we Name the Flow , pick Form Assignment Handler Flow Behavior Type , and click Create to proceed to the Flow Designer.

2016-12-30_141343.png

In the Flow Designer we expand Integrations > All Integrations > Internal Services > Tagging Service and add AddTag step to our Flow .

2016-12-30_141513.png

Next, we expand All Steps [Catalog] > Communications category and add Send Notification step next to our AddTag step.

2016-12-30_141643.png

We connect the outcome from Send Notification step to the End Step in our Flow . Then, we select AddTag step on the workspace and Step Information Layer pops up. We configure data mapping for this step as following…  For objectId field we use Select Value mapping type and Form_AssignmentId as a Path for the Value . For shortObjectType we use Constant mapping type with Assignment as value. For the objectType field we use Constant mapping type with DecisionsFramework.ServiceLayer.Services.Assignments value. For the tag field we choose the desirable value.

2016-12-30_142244.png

Next, we select Send Notification step on the workspace and Step Information Layer for this step pops up. In the Notify To section we add All Users Group to the NotifyGroup box. Then we use desirable values for the Subject and Message fields. For the Message field we use Text Merge.Plain data mapping type in this example.

2016-12-30_142557.png

Our Merged Text for the Message field looks as following… It will show Tag and Assignment Url information.

2016-12-30_142916.png

This completes our Assignment Handler Flow . We can Save and close Flow Designer . Back in the Designer Folder we locate the Main Flow and click Edit .

In the Flow Designer we select our Form Step on the workspace and navigate to the Step Configurations .
Then, we locate Start section and select SharedFlow option for Show Flow To Run configuration.

2016-12-30_143419.png

Next, in Flow To Run configuration we use Flow picker to pick our Assignment Handler Flow that we have created previously in this tutorial.

2016-12-30_143536.png

This completes our Main Flow.

In the Flow Designer we can click Debug Flow link from the top panel of the Flow Designer to test our Flow .

2016-12-30_143720.png

Our Assigned Form opens in the Debugger and we can see that two Notifications popped up. The First notifies us that new Form was assigned to us. The Second is a custom one and comes from the Assignment Handler Flow . As designed, it adds a tag to the Assignment and notifies us that the Tag was added.

2016-12-30_143958.png

Was this article helpful?