Fluent Commerce Logo
Docs
Sign In

Enable the Scan to Storage Area feature

How-to Guide

Author:

Fluent Commerce

Changed on:

28 Sept 2023

Key Points

  • Enabling scan to storage area is only possible on Fluent store (not on Service Point).
  • This guide will take you through the setup and workflow changes required to enable the Storage Area Scanning feature in Fluent Store.

Steps

Step arrow right iconBefore you Begin

To access the Scan to Storage Area feature, you must first be using Fluent Store. If you are still on Fluent ServicePoint, you can follow the steps here to Enable Fluent Store.


Step arrow right iconStep 1: Add Storage Areas to your Locations

Make sure you have added your Storage Area records to your Account.

You can do this either via the 

`createStorageArea`
 mutation in the [GraphQL API] or via the [Admin Console] if you have a Storage Areas screen configured.

Storage Areas should be associated to a specific Location.

Step arrow right iconStep 2: Enable the Storage Areas

Storage Areas should be in an 

`ENABLED`
 state to be assignable in Fluent Store.

Use the 

`updateStorageArea`
 GraphQL API mutation, or the [Admin Console] to enable the Storage Areas.

Step arrow right iconStep 3: Modify your Order workflow for Article Arrival

Locate the Ruleset which acknowledges Article Arrival and moves the Article from an "Awaiting Arrival" based state to the next state in your workflow.

Add the following Rules to the top of the Arrived Ruleset:

  • [AddStorageArea][]
  • [AddEventAttributesToEntity][]

The following table provides the configuration of each rule:

AddStorageArea

This rule does not require any parameters.

AddEventAttributesToEntity

This rule requires configuration via JSON (i.e. this rule is not currently configurable via the Modeller)

Property

Type

Value

attributeNames

JSON Array

`[ { "name": "storageAreaRef", "type": "STRING" } ]`


Step arrow right iconStep 4: Add or Update the Mark as Arrived User Action

A special [Field Component][] has been added to the UX Framework, which supports automatic detection of articles relating to existing Orders and Storage Areas.

To ensure the frontend renders this Field Component, the User Action type should be set to a custom type in the workflow.

Note: The user action attribute type will be used to specify the name of the UI component that is used to scan the storage area.

Component Name: SCAN_TO_STORAGE_AREA

a. ARTICLE_ARRIVED Ruleset

1{
2            "name": "ARTICLE_ARRIVED",
3            "description": "ArticleReadyForCollection after executing this Ruleset",
4            "type": "ARTICLE",
5            "subtype": "DEFAULT",
6            "eventType": "NORMAL",
7            "rules": [
8
9                {
10                    "name": "FLUENTRETAIL.base.AddStorageArea",
11                    "props": null
12                },
13                {
14                    "name":"FLUENTRETAIL.base.AddEventAttributesToEntity",
15                    "props": {
16                        "attributeNames": [
17                            {
18                                "name": "storageAreaRef",
19                                "type": "STRING"
20                            }
21                        ]
22                    }
23                }
24            ],
25            "triggers": [
26                {
27                    "status": "AWAITING_ARRIVAL"
28                }
29            ],
30            "userActions": [
31                {
32                    "eventName": "ARTICLE_ARRIVED",
33                    "context": [
34                        {
35                            "label": "MARK AS ARRIVED",
36                            "type": "PRIMARY",
37                            "modules": [
38                                "servicepoint"
39                            ],
40                            "confirm": false
41                        }
42                    ],
43                    "attributes": [
44                        {
45                            "name": "storageAreaRef",
46                            "label": "Storage Area",
47                            "type": "SCAN_TO_STORAGE_AREA",
48                            "source": "storageAreaRef",
49                            "mandatory": true
50                        }
51                    ]
52                }
53            ]
54        }

Language: json

Name: ARTICLE_ARRIVED Ruleset

Description:

[Warning: empty required content area]

b. ARTICLE_COLLECTED Ruleset:

Add the following rules in this Ruleset:

DeleteFromStorageArea

1{
2            "name": "ARTICLE_COLLECTED",
3            "description": "ArticleReadyForCollection after executing this Ruleset",
4            "type": "ARTICLE",
5            "subtype": "DEFAULT",
6            "eventType": "NORMAL",
7            "rules": [
8                {
9                    "name": "FLUENTRETAIL.base.DeleteFromStorageArea",
10                    "props": null
11                }
12            ],
13
14
15             "triggers": [
16                {
17                    "status": "AWAITING_ARRIVAL"
18                }
19            ],
20            "userActions": [
21                 { 
22                    "eventName": "ARTICLE_COLLECTED", 
23                    "context": [
24                        {
25                            "label": "COLLECT",
26                            "type": "PRIMARY",
27                            "modules": [
28                                "servicepoint"
29                            ],
30                            "confirm": false
31                        }
32                    ],
33
34            "attributes": [] 
35        } 
36    ] 
37}

Language: json

Name: DeleteFromStorageArea

Description:

[Warning: empty required content area]

Using the Fluent Store Scan to Storage Area feature guide, you’re now ready to assign storage areas to your articles.




Fluent Commerce

Fluent Commerce

Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.

Fluent Logo